Parameter1 is to test for sufficient price movement (trend) over a minimum amount of bars.
Parameter2 is to verify a retracement move of the previous move such that there are decreasing lows (or increasing highs) from the high (or low) of the Parameter1 range. I need only test on bar values and not tick data.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I need to test two parameters 8 or more bars before taking a trade which trade then must meet certain conditions
First If Parameter1[range of bars] is True and Parameter2[another range of bars] Is True
Then If Close[i] < iMA_Custom[i]
OpenOrder() ....
Is anyone familiar with an example of such an advisor that I may reference and study? (perhaps at http://www.lightpatch.com/forex/mt_yahoo/ ) ?
Or perhaps some code snippet can be given?
Parameter1 is to test for sufficient price movement (trend) over a minimum amount of bars.
Parameter2 is to verify a retracement move of the previous move such that there are decreasing lows (or increasing highs) from the high (or low) of the Parameter1 range. I need only test on bar values and not tick data.
Thank you for your help!
nipperdj