'NinjaTrader.Indicator.FluxTimeCycleMarkers' is a 'type' but is used like a 'variable' CS0118 - click for info 162 9
This message appeared on lines 162, 163,165, and 166
I tried substituting square brackets for the round brackets per the instructions in CS0118 but still get the errors.
Any help on what can fix this error would be greatly appreciated.
Here is the section of the program that the error refers to:
// Variables
private double BuyMarkerPrice;
private double SellMarkerPrice;
private FluxTimeCycleMarkers flux=null;
private FluxTimeCycleMarkers fluxPZ=null;
#endregion
protected override void Initialize()
{
Print(Time[0].ToString()+"...Initialize ESstoplight");
int BaseTimeframeInMinutes = 1;
162 FluxTimeCycleMarkers(Flux_AnalysisType.AMACD, pDperiod, pKperiod).PredictionMsgLoc = FluxTimeCycleMarkers_PredictionLocType.BottomCente r;
163 Add(FluxTimeCycleMarkers(Flux_AnalysisType.AMACD, pDperiod, pKperiod));
165 FluxTimeCycleMarkers(Flux_AnalysisType.PowerZone, Dperiod, pKperiod).PredictionMsgLoc = FluxTimeCycleMarkers_PredictionLocType.TopCenter;
166 Add(FluxTimeCycleMarkers(Flux_AnalysisType.PowerZo ne, pDperiod, pKperiod));
//}
Comment