Hi, I tested trading strategys with simulation accounts (two very simple strategys):
First only long trades, second only short trades (sample SHORT)
protected override void OnBarUpdate()
{
// Condition set 1 EXIT SHORT
if (CrossAbove(SMA(Fast), SMA(Slow), 1))
{
if (Position.MarketPosition != MarketPosition.Flat)
{
ExitLong("30secL_Exit", "");
}
}
// Condition set 2 SHORT
if (CrossBelow(SMA(Fast), SMA(Slow), 1))
{
EnterShort(1000, "30secS_Start");
}
}
If I enable the strategys (tab -> strategy) with a simulation account (each with a separate account) I can see the cell in yellow status.
But never (no matter how often crosses the ema) the strategy is green and never work.
I use two accounts (Sim103S=Short trades and Sim103L=Long trades).First of all I killed the old history of the sim accounts via tools->options->simulator->reset an tryed a restart.
But after that it is the same problem, cell is yellow, strategy is not working. (I use wait until flat bevor executing live).
Torso
Torso

Comment