attempted a simple short ATM Strategy:
{
Add(HeikenAshi_Smoothed());
SetProfitTarget("", CalculationMode.Ticks, 20);
SetStopLoss("", CalculationMode.Ticks, 20, false);
CalculateOnBarClose = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Condition set 1
if (HeikenAshi_Smoothed().HAOpen[0] > HeikenAshi_Smoothed().HAClose[0]
&& HeikenAshi_Smoothed().HAOpen[1] < HeikenAshi_Smoothed().HAClose[1])
{
EnterShort(DefaultQuantity, "");
}
}
It didn't produce any trades...
I then tried to import RHeikenAshi.zip
but I got an error:
“Import Failed. The Ninjascript Archive file may contain duplicate method names that already exist on your PC or there is a required file missing on either your PC or in the input archive.”
Now I'm stuck. Any guidance is much appreciated.

Comment