I've been writing strategies and having problems getting them to trigger any trades using the simulation engine. So I used the strategy wizard to create a strategy where I attempt to force the trade using a boolean variable set to true as default (code below). I'm connected to the simulated data feed, and I'm able to trade manually from the Control Center and from Chart Trader. In Chart Trader, I can manually execute the trades, but there's no data being plotted. I tried multiple time frames: tick, second, and minute. Nothing.
Stuck. Need help.

Thanks!
-Ben
protected override void Initialize()
{
SetProfitTarget("", CalculationMode.Ticks, 2);
SetStopLoss("", CalculationMode.Ticks, 2, false);
CalculateOnBarClose = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Condition set 1
if (ForceTrade == true)
{
EnterLong(1, "");
PrintWithTimeStamp("Trade triggered.");
}
}


Comment