my strategy works well with backtesting.
History shows the results I am seeking.
But, when I forward test, the strategy buys multiple entries when it shouldn't.
This is a grid-based strategy, where the price of the first entry is stored.
For example, I want 2 separate entries:
if (Position.MarketPosition != MarketPosition.Long) { EnterLong(Quantity, "Buy"); FirstPrice = SMA(1)[0]; } if (Position.MarketPosition == MarketPosition.Long && SMA(1)[0] < FirstPrice - 10 * TickSize ) { EnterLong(Quantity, "Entry2"); }
Comment