Heikin Ashi Strategy

Forums ProRealTime English forum ProOrder support Heikin Ashi Strategy

  • This topic has 7 replies, 4 voices, and was last updated 1 month ago by avatarJS.
Viewing 8 posts - 1 through 8 (of 8 total)
  • #244728

    Hi everyone,

    I’m having trouble getting this Heikin Ashi Strategy to work. It’s supposed to enter long when heikin ashi drops below lower Bollinger band but only on the next green heikin candle. Also doing the reverse for short positions. Can anyone help with my code please?:

    #244735
    JS

    Hi,

    Try this one:

    3 users thanked author for this post.
    #244824

    Thank-you very much. This works well.

    1 user thanked author for this post.
    avatar JS
    #244851

    Thank-you very much. This works well.

    I tried it in various underluyings and different timeframes. The results are bad. In which one do you tried it?

    #244973

    It was designed for GBP/USD on a 30 min chart. It’s by no means a final strategy and would reply on other confirmations.

    #244974

    Hi everyone,

    So I’ve been playing around with this Heikin Ashi Strategy and made a few adjustments. The strategy is to run on a 30 min GBP/USD chart but I’ve attempted to change the code to exit using the 5 min TF to get more precise exits.

    I’m trying to get it to add orders if the price moves against and the initial conditions are met again. I’ve been somewhat successful but it seems to add several positions 5 mins apart and not when the original conditions are met again.

    Can anyone adjust the code to get this to work, I’m struggling.

    Thanks
    Jim

    #244979

    If you have CUMULATEORDERS = true it will keep adding to your order when conditions are true.

    Shuld add “not onmarket” to your first buy/sell short Conditions on row 34 and 40.

    Also, what are you trying to do on the block starting on row 77?

    COUNTOFSHORTSHARES is the comand for short postions, and COUNTOFPOSITION cant be a negative value.

    #244982
    JS

    The strategy can open positions every 5 minutes because the different conditions are out of sync…

    Try these…

    (CountOfPosition can be both positive and negative)

     

    1 user thanked author for this post.
Viewing 8 posts - 1 through 8 (of 8 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login