I'm looking for code that will play the oppositely when opening price of the candle is higher than the closing price the previous candle.
This is way too basic. Code hunting is not your answer. The code you provided have nothing to-do with the question you asked. Sorry I don't think you know what Open[0] and Close[1] means. Here's the Book, and don't skip chapters. For those who don't like my answer, sorry I'm not going to re-invent the Basics [the book already does a good job of doing that].
Peace-Out.
I'm looking for code that will play the oppositely when opening price of the candle is higher than the closing price the previous candle.
Close[x+1] //for closed bar Open[x] //for price opening bar
I think you have to realize that the pricedifference is almost zero in most cases
you want to know the pricedifference of two following ticks
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I'm looking for code that will play the oppositely when opening price of the candle is higher than the closing price the previous candle.
e.