protected override void OnBarUpdate()
{
if(CalcMethod ==1)
{
Calculations.....
}
if(CalcMethod ==2)
{
Calculations.....
} if(CalcMethod ==3)
{
Calculations.....
}
}
Right now I have it set up so that user can enter 1, 2 or 3 when adding the strategy to the chart (using Ninjascript properties - see below) but if they mistakenly put a value greater than 3 then the strategy doesn't execute.
[NinjaScriptProperty]
[Display(ResourceType = typeof(Custom.Resource), Name = "Select Calc Method", GroupName = "NinjaScriptStrategyParameters", Order = 0)]
public int CalcMethod
{ get; set; }
Comment