JimboDiggity: t want the moving average to be calculated on the D1 chart/time frame. How do i go about this?
Perhaps you should read the manual. What are the first two parameters in iMA?
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
William Roeder #:
Perhaps you should read the manual. What are the first two parameters in iMA?
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
Terse as your response was its actually very helpful as i wasn't sure where to start.. So to be clear the below would be correct, right? I assume none of the rest of the code needs to be changed to accommodate?
TIA
maHandle=iMA(_Symbol,PERIOD_D1,MA_Period,0,MODE_EMA,PRICE_CLOSE);
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
Hi all,
Below is the (working) code to open a buy order if the close price of the previous bar is above the 20 moving average. However, i use M15 charts but want the moving average to be calculated on the D1 chart/time frame. How do i go about this?
TIA