Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Joe Wu:
How to write a condition where, starting from the latest candlestick, there are at least three consecutive bullish candlesticks, followed by at least one bearish candlestick, and finally, the latest candlestick is a bullish candlestick.
How to write a condition where, starting from the latest candlestick, there are at least three consecutive bullish candlesticks, followed by at least one bearish candlestick, and finally, the latest candlestick is a bullish candlestick.
It's my code but it didin't work.
Attempting to repeatedly use a counter to reference a series of prices is a bit "hack-ish."
Consider using CopyRates() instead. Then you can reference prices as [i], [i-1], [i-2] and so on.
Documentation on MQL5: Timeseries and Indicators Access / CopyRates
- www.mql5.com
Gets history data of MqlRates structure of a specified symbol-period in specified quantity into the rates_array array. The elements ordering of the...
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
It's my code but it didin't work.