Sonny 3 posts msg #51538 - Ignore Sonny |
5/11/2007 7:46:38 PM
I'm trying to build a basic momentum function but having trouble defining simple moving avg syntax from a prior bar. Here is the TS code.
Value1 = ((close-close[5])/average(close,5)[1])*100 ;
Plot1( Value1, "StockfetcherHelp" ) ;
So current bar close minus close 5 bars ago divided by 5 period sma starting with the prior bar, not current one. That value * 100.
Any help would be most appreciated. Pulling my hair out with set functions that are not working.
TIA
|