StockFetcher Forums · Filter Exchange · Syntax Help<< >>Post Follow-up
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




Sonny
3 posts
msg #51645
Ignore Sonny
5/16/2007 8:19:58 PM

Figured it out.

StockFetcher Forums · Filter Exchange · Syntax Help<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.