Cross Over Strategy HELP please

Forums ProRealTime English forum ProOrder support Cross Over Strategy HELP please

Viewing 8 posts - 16 through 23 (of 23 total)
  • #61765

    sorry Im keep coming back.. soo after so many attempts i came up with this..

    which give me the entry as the topline or the bottomline as per the indicator.. but only issue is its only trigger on the 5th candle..  5th bar didn’t get triggered, it doesn’t continue as a stop order? is there a way to sort it out.. please help!

    Thanks

    Ro

     

    #61813

    In lines 10 and 21 you only check the fifth previous bar, if it’s true the pending order is placed, but the next bar the fifth previous bar will become the sixth previous bar and your condition will obviously be false!

    Since a pending order only lasts one bar…. it’ll never be triggered.

    How many bars do you want the pending order to be kept in place, after the fifth one?

     

    #61819

    oh ok.. lets say once we get the Entryprice and confirmed then we get a pending order for that price for next 10 bars and probably cancel after 10 bars??

    thanks Roberto.

    #61860

    Line 21 should read

     

    #61861

    I modified your code to accomodate for counting elapsed bars since the crossing occurrs. I did not test it, give me some feedback.

     

    1 user thanked author for this post.
    #61936

    hi Roberto.. thanks..

    This is actually given better result.. but some of the entry prices isnt right.. i think its only take the 5th candles high and  5pips above..

    Entry price should be.. once the cross over happen and wait for 5 bars and enter the highest high within that 5 bars and 5 pips above!! lets say cross over and the highest high is the 3rd candle with that 5 bars and it should be 5 pips above on that 3rd candle… indicator works perfectly fine as it say below.. if its long we get the TOPLINE perfectly!!

     

     

    #61940

    Try this one, I moved lines 30 and 41 inside a prior IF…ENDIF block.

     

    #62450

    Thanks very much Roberto.. i think this is pretty much gives the right entry.. i will test this and let you know!!!!

     

Viewing 8 posts - 16 through 23 (of 23 total)

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