I want to write an EA but I need to know how to analyze the 3 previous bars every time a new bar opens...I just need to know if the 3 bars are all bullish...I can add the code I need from there...Any examples would be great...Thanks
- When MetaTrader 5 Web Terminal is indispensable
- MetaTrader 5 Built-in Trading Strategy Tester
- Copilot coding assistant - Developing programs
SugarLandFX:
I want to write an EA but I need to know how to analyze the 3 previous bars every time a new bar opens...I just need to know if the 3 bars are all bullish...I can add the code I need from there...Any examples would be great...Thanks
if(Open[1]<Close[1]&&Open[2]<Close[2]&&Open[3]<Close[3]) bool bullis =true;
I want to write an EA but I need to know how to analyze the 3 previous bars every time a new bar opens...I just need to know if the 3 bars are all bullish...I can add the code I need from there...Any examples would be great...Thanks

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register