EMA shift
2件の返信
こんにちは,
I just did the EMA cross example in the EA wizard guide and would like to clarify the following:
With these EMA settings,
Period:10
Apply to: Close
Shift:1
Does shift =1 mean that the lookback period starts from the previous candle? So the lookback period is from close[1] to close[10]?
If I set shift=0, does this mean the current price = close price?
ありがとうございます!
0
こんにちは,
yes, you are right. With shift = 1, the situation is evaluated at that bar so lookback is 10 bars back from it.
Shift = 0 references the very last “unfinished only” bar. You can work with Shift = 0 only when using “every tick” testing precision in MetaTrader backtester. It won’t work properly with “open prices” backtesting mode
0
こんにちは,
yes, you are right. With shift = 1, the situation is evaluated at that bar so lookback is 10 bars back from it.
Shift = 0 references the very last “unfinished only” bar. You can work with Shift = 0 only when using “every tick” testing precision in MetaTrader backtester. It won’t work properly with “open prices” backtesting mode
Thanks Tomas!
0
2件の返信を表示中 - 1 - 2件目 (全2件中)