Conditions that should preferably be included in LONG strategies

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #64964 quote
    soulintact
    Participant
    Senior

    Whatever the strategy might be, in whatever timeframe, I am trying to focus on conditions that should always be included in the code for entering or exiting LONG. The purpose is obviously to increase the percentage of winning trades and gain without lower the number of trades. Numbers must of course be tuned in based on time interval and other factors. Here are a few. Do add other conditions as well, thank you!

    Enter: RSI[10](close)< 66 and CCI[6](close) < 190 and (TEMA[2]>low)[3] and BULL
    
    Exit: SmStoS<SmStoS[2] and BEAR

     

    // Detection of a bullish engulfing line
    Condition1 = Close[1] < Open[1]
    Condition2 = Open < Close[1]
    Condition3 = Close > Open[1]
    Condition4 = Open < Close
    BULL=Condition1[2] or Condition2[2] or Condition3[2] or Condition4[1]
    
    // Detection of a bearish engulfing line
    Condition5 = Close[1] > Open[1]
    Condition6 = Close < Open
    Condition7 = Open > Close[1]
    Condition8 = Close < Open[1]
    BEAR=Condition5[4] or  Condition6[4] or Condition7[4] or Condition8[2]
    #64965 quote
    GraHal
    Participant
    Master

    Great idea soulintact!

    If popular and plenty of snippets added by members then you could ask for the post could be moved to become a sticky!?

    I have long thought we may all be reinventing the wheel?

    This thread could become a source of existing wheel designs / snippets which evolve into  even better snippets!? 🙂

    #64968 quote
    JohnScher
    Participant
    Veteran

    What do you mean, exactly?
    SmStoS<SmStoS[2]
    I get an error message from PRT when I use this 1:1

     

    kind

    #64973 quote
    robertogozzi
    Moderator
    Master

    @GraHal, your idea of a specific topic devoted to functions/snippets of code is welcome.

    Post it a suggestion for improvement of this forum.

    GraHal thanked this post
    #64974 quote
    FREDNC
    Participant
    Senior

    Yep great idea !

    GraHal thanked this post
    #64993 quote
    GraHal
    Participant
    Master
    Thank you Roberto and Fred
    I have started a Thread, see here
    maybe you would like to add your snippets to the Thread above?
    Cheers
    GraHal
    FREDNC thanked this post
    #65020 quote
    Vonasi
    Moderator
    Master

    @GraHal, your idea of a specific topic devoted to functions/snippets of code is welcome. Post it a suggestion for improvement of this forum.

    I already posted a suggestion that we could have a searchable library of code snippets. Nicolas seemed quite keen on the idea but as we all know he is a very busy chap! Maybe a thread with code snippets could be a good starting point to see how useful or popular it is.

    #65022 quote
    GraHal
    Participant
    Master
    Yes I agree and thought the same Vonasi. I had also suggested a searchable / sortable Library, but also felt guilty putting more work onto Nicolas.
    As you say Vonasi, my Thread will serve as a trial. The google sheet may be an easy way to achieve a sortable function but does require users to enter brief details.

    Do you think the Thread I started here GraHal wrote: is logical under Trading Discussion Forum or would be better / used by more under ProOrder Support Forum?

    Cheers
    GraHal

    #65023 quote
    Vonasi
    Moderator
    Master

    Do you think the Thread I started here GraHal wrote: is logical under Trading Discussion Forum or would be better / used by more under ProOrder Support Forum?

    I think that ProOrder Support is more appropriate as they are code snippets for writing strategies more than they are general discussions.

    GraHal thanked this post
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.

Conditions that should preferably be included in LONG strategies


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
soulintact @soulintact Participant
Summary

This topic contains 8 replies,
has 6 voices, and was last updated by Vonasi
7 years, 12 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/10/2018
Status: Active
Attachments: No files
Logo Logo
Loading...