StockFetcher Forums · General Discussion · Code help on Linear Regression needed!<< >>Post Follow-up
styliten
294 posts
msg #144400
Ignore styliten
8/13/2018 2:02:38 PM

Recently added 2 linear regression channels into the result graphs

1. draw linear regression(60)
2. draw linear regression(15)

To use an analogy, LR(60) is like the HOUR hand while the shorter LR(15) is the minute hand on the clock dial.

Just wonder if there is a way to code the progression of HOURLY and MINUTE hands to provide the sense of direction move over time. Each hand can move either clockwise [down cycle] or counterclockwise [up cycle] and they can move in the same direction or opposite direction. Perfect timing then means the moment when both start to move in unison counterclockwise; when both start to move clockwise at the same time, it's time to get out. When they move in opposite direction, it means the down cycle within a bigger up cycle or vice versa.

Expect the successful code to portray these moves over time in SIN or COS waves. Appreciate your help!

StockFetcher Forums · General Discussion · Code help on Linear Regression needed!<< >>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.