barindex trouble

Viewing 2 posts - 16 through 17 (of 17 total)
  • #54978
    Leo

    WOW !

    Now I noticed that your will never work beacuse a moving avearage never intersect a previous highest high!

    how would you rewrite my code in post 1, to make it actually trade if the close[0] > highest high in past 20 candles?

    Here’s your code

     

    #55043

    @Leo,  thanks, makes much more sense now. Im not pushing anything out in live hehe just trying to understand 🙂 

Viewing 2 posts - 16 through 17 (of 17 total)

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