New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.
This is a two part question. Apologies, but I have not found this info searching through the online doc.
1) What does the UPTREND mean as coded? Peak to trough direction, I hope. which also begs the sidebar, when does it trigger as a broken trend? across what timeframe? Timeframe is hugely important. Hours? Months? How is that controlled in scan parameters?
2) OK, I'm happy to simply with an upward price slope. I want to scan for stocks, for example, that are in a 5 year uptrend and are still in an uptrend for the most recent year, but are now turned down in for some period of time, e.g. 1 month. How can I code for that? I might assume you could diff an average value like an SMA from 5 years ago and the same SMA recently. How do I get the the SMA(50,close) from 1250 days ago?