[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

time series code



PureBytes Links

Trading Reference Links

Could anyone show me how to replace the plot statements in this
indicator to turn it into a signall? to create a strategy?  I would
greatly appreciate it! 
thanks  john

Inputs: Length(5), BarsPlus(7);

Plot1(TimeSeriesForecast(Length, BarsPlus), "TSForecast");

{Alert Criteria}
If Close < Plot1 AND Plot1 < Plot1[1] AND Plot1[1] > Plot1[2] Then
	Alert("Forecast is Bullish!")
Else
	If Close > Plot1 AND Plot1 > Plot1[1] AND Plot1[1] < Plot1[2] Then
		Alert("Forecast is Bearish!");

{Time Series Forecast Expert Commentary}
#BeginCmtry
	Commentary(ExpertTimeSerForcast(Plot1, Length, BarsPlus));
#End;