private CCI CCITop;
private CCI CCIButtom;
private CCI CCIPeriod;
region CCI Indicator settings
CCITopLine = 100;
CCIButtomLine = -80;
CCIPeriodUsed = 7;
#endregion
CCITop = CCI(Close,(CCITopLine));
CCIButtom = CCI(Close,(CCIButtomLine));
CCIPeriod = CCI(Close,(CCIPeriodUsed));
region Properties
[NinjaScriptProperty]
[Range(1, int.MaxValue)]
[Display(Name="CCI100TopLine", Order=1, GroupName="Parameters")]
public int CCITopLine
{ get; set; }
[NinjaScriptProperty]
[Range(-100, double.MaxValue)]
[Display(Name="CCI100ButtomLine", Order=2, GroupName="Parameters")]
public int CCIButtomLine
{ get; set; }
[NinjaScriptProperty]
[Range(1, int.MaxValue)]
[Display(Name="CCIPeriod", Order=3, GroupName="Parameters")]
public int CCIPeriodUsed
{ get; set; }
[NinjaScriptProperty]
[Display(Name="Use CCI", Order=0, GroupName="Parameters")]
public bool UseCCI
{ get; set; }
#endregion
Comment