Candle help

  • This topic has 1 reply, 1 voice, and was last updated 8 years ago by avatarAbz.
Viewing 2 posts - 1 through 2 (of 2 total)
  • #14988
    Abz

    im looking for programming help for this scenario

    if the bar closes in RED i want to enter short position once the first green bar appear after this bar and vice versa. I also want to check how big the bar is , for example open price is 10$ close price 11$ . i only want to star looking for the next bar if the price difference betwen open and close is minimum 3$ or -3$

    is this correct?

    // Conditions to enter Long positions

    c1 = open < close and close – open > 5
    c2 = open > close and open – close > 5

    // Conditions to enter Short positions

    c3 = open > close and open – close > 5
    c4 = open < close and close – open > 5

    thanks for any help

    #15137
    Abz

    anyone have any idea ?

Viewing 2 posts - 1 through 2 (of 2 total)

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