here whats going on:
this simple strategy crerated in Wizard works in Strategy Analyzer, there is no problem, everything is ok. However, when I want to use it with live data - it just refuses to do anything.
In a Log tab there is nothing about this startegy.
Any idea why its happening?
Regards
protectedoverridevoid Initialize()
{
SetProfitTarget("", CalculationMode.Ticks, 20);
SetStopLoss("", CalculationMode.Ticks, 20, false);
TraceOrders = true;
CalculateOnBarClose = false;
}
protectedoverridevoid OnBarUpdate()
{if (ToTime(Time[0]) >= 94500 && ToTime(Time[0]) <= 160000)
{if (CrossAbove(CyberCycle(0.07).CyclePlot, CyberCycle(0.07).TriggerPlot, 1))
{
EnterLong(1, "");
}
if (CrossBelow(CyberCycle(0.07).CyclePlot, CyberCycle(0.07).TriggerPlot, 1))
{
EnterShort(1, "");
}}}
P.S. In case you want to check it on your end I attach zip file.
Comment