Previous bar low from highest bar achieved !

Forums ProRealTime English forum ProOrder support Previous bar low from highest bar achieved !

Viewing 8 posts - 1 through 8 (of 8 total)
  • #138016

    Hi

    how would you code wanting a break of the previous bar low  On the bar prior to the highest bar since the code was activated ? And if a new highest bar was achieved it then moves to recognise the new bar as the highest so targets the bar previous low ?

    #138106

    A picture / screen shot tells a thousand words?

    I’ve read it 4 times and it still isn’t forming a picture in my mind … I might be tired!? 🙂

    #138109

    This is what I coded, provided I could correctly understand what you meant:

     

    1 user thanked author for this post.
    #138110

    Try adding this indicator to your chart, to display a histogram whenever a new HIGH is found (start with 200 units, to make sure you don’t have to scroll backwards too far):

     

    1 user thanked author for this post.
    #138113

    Thanks GRAHAL, good idea I’ve now uploaded screen shots – first shows initial set up it takes the highest new bar SINCE code activated. and would trigger a sell when the low of the previous bar is hit . If a new higher bar is achieved it ignores the previous and resets with this new bar and takes the previous bar low as the trigger.

    2 users thanked author for this post.
    #138218

    Roberto

     

    Is it also possible that if the previous bar close is NOT lower than the current bar close nothing is triggered and it looks back to find a previous bar close that is lower than the current bar to activate on ?

    #138271

    There you go:

     

    #138386

    Roberto

     

    The code just enters on the first bar close from when the code is activated, every time – seems to be no relation to your code just added a c1 and c2 ?

     

    ?? am i doing something wrong ?

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