- Joined
- 24 October 2005
- Posts
- 1,302
- Reactions
- 834
Why would I be getting varying results for backtests depending on the date range i select?
For example trades that should be taken this week are taken if i set the start date to 1/1/12, but not if i set it to 1/1/11. I can't work out why this would be.
Its also very frustrating that the backtest window just seems to dissapear when i minimize it! Am i doing something wrong?
Why would I be getting varying results for backtests depending on the date range i select?
Why would I be getting varying results for backtests depending on the date range i select?
For example trades that should be taken this week are taken if i set the start date to 1/1/12, but not if i set it to 1/1/11. I can't work out why this would be.
Its also very frustrating that the backtest window just seems to dissapear when i minimize it! Am i doing something wrong?
Why would I be getting varying results for backtests depending on the date range i select?
For example trades that should be taken this week are taken if i set the start date to 1/1/12, but not if i set it to 1/1/11. I can't work out why this would be.
Its also very frustrating that the backtest window just seems to dissapear when i minimize it! Am i doing something wrong?
Obviously any test date range change will show different results. All to do with funds available to trade, open trades, index bullish/bearish and other possible variables.Why would I be getting varying results for backtests depending on the date range i select?
For example trades that should be taken this week are taken if i set the start date to 1/1/12, but not if i set it to 1/1/11. I can't work out why this would be.
Mine appears in the lower left hand side of the Amibroker window when I minimise it.Its also very frustrating that the backtest window just seems to dissapear when i minimize it! Am i doing something wrong?
EMA = (Previous Close - Previous EMA) * Constant + Previous EMA.
for the initial EMA value, where there is no previous EMA, I use:
MA(Ref(C,-1),6);
PreviousEMA = MA(Ref(C, -1), 6);
CustomEMA = (Ref(C, -1) - PreviousEMA) * (0.025 + PreviousEMA);
PHP:PreviousEMA = MA(Ref(C, -1), 6); CustomEMA = (Ref(C, -1) - PreviousEMA) * (0.025 + PreviousEMA);
Okay Synergy, what is the condition to determine the initial EMA, is it ref(C, -1)?Hey Wysi,
The MA(ref(c, -1), 6) should only be used once to get it started. From then on, the previous custom EMA is used. It's easy in excel, but I can't work it out.
Okay Synergy, what is the condition to determine the initial EMA, is it ref(C, -1)?
PreviousEMA = IIf(Condition, True Array, False Array);
CustomEMA = (Ref(C, -1) - PreviousEMA) * (0.025 + PreviousEMA);
Yes that is the correct logic, but the issue is that the PreviousEMA must reference the Previous CustomEMA to be calculated. That's ok once it's up and running, because there will be a value for CustomEMA, but initially there isn't.
It is confusing.
I think i need to use a loop, which i'm struggling to get my head around. I've managed to avoid them so far.
Buy = Cross( C, Peak( MA( C, 50 ), 5, 1) );
Adjust the 2nd parameter of Peak() to what you want - see Peak() syntax in Help.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?