if you were using the parabolic SAR, you might code something like this:
sar1 = iSAR(Symbol(),5,SARS1,SARM1,0); sar2 = iSAR(Symbol(),15,SARS2,SARM2,0); sar3 = iSAR(Symbol(),30,SARS3,SARM3,0); sar4 = iSAR(Symbol(),60,SARS4,SARM4,0);where the 5, 15, 30, 60 would be the time frame. Idealy you should used PERIOD_M5 rather than 5, for example.
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
how can i use different time period charts in a code?
Ex: I want to test M1,M5,M15,M30 in one code, how can i do that? Thanks