To get a previous value(s) from indicators do you use shfit and (if so) how?
- Comments in Backtest
- Custom Indicator Variables from an EA
- Check Indicator Value on a different timeframe
mixtermind:
To get a previous value(s) from indicators do you use shfit and (if so) how?
To get a previous value(s) from indicators do you use shfit and (if so) how?
The last one:
Buffer[i]=iMA(NULL,0,13,8,MODE_SMMA,PRICE_MEDIAN,0);
The previous one:
Buffer[i]=iMA(NULL,0,13,8,MODE_SMMA,PRICE_MEDIAN,1);
Cheers
So, 8 back would be ?
Buffer[i]=iMA(NULL,0,13,8,MODE_SMMA,PRICE_MEDIAN,8);
mixtermind:
So, 8 back would be ?
So, 8 back would be ?
That is the 9. from the last one (last is 0).
Great, thanks ggekko !
Any idea how far back the 8th buffer would be on a 5-minute chart?
Hi Kenneth,
Bar 8 would be the 8th previous candle (9 if you count the current candle), which would span the 5-minute time beginning 8*5 minutes back + how ever many minutes you are into the current candle. So if the current candle just opened then bar 8 would open 40 minutes ago and close 35 minutes ago.
----
BTW, I just sent you a PM message about your EA. Don't know how often you check those so I though I'd let you know.
- Tovan

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