Of course the close price of the last candle (candle 0 ) will be ever moving until the candle closes.
Then it becomes the close price of candle 1 and a new candle 0 will start forming.
So if you shift all of your bars +1 to the left you should have fixed close price only.
- www.mql5.com
I'm writing 2 bool functions that check if certain conditions are met before executing a trade.
The first function checks the previous candle.
The 2nd function is meant to check conditions of the next 2 candles that form after the 1st confirmation candle. Only when both functions return True, the trade will execute. Otherwise, the second function will return False and set the 1st function to False again
When the first function returns True I want it to signal the next function to monitor the next 2 candles. How can I do this?
Problem is that it seems like we can only get data on previous candles. Help pls
In that case your first function just have to check candle 3, and the second function checks candles 2 and 1... every start of a new bar 0, if both functions return true, you have your trade execution condition.
- 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 writing 2 bool functions that check if certain conditions are met before executing a trade.
The first function checks the previous candle.
The 2nd function is meant to check conditions of the next 2 candles that form after the 1st confirmation candle. Only when both functions return True, the trade will execute. Otherwise, the second function will return False and set the 1st function to False again
When the first function returns True I want it to signal the next function to monitor the next 2 candles. How can I do this?
Problem is that it seems like we can only get data on previous candles. Help pls