StockFetcher Forums · General Discussion · Set syntax from old thread<< >>Post Follow-up
15minoffame
131 posts
msg #133239
Ignore 15minoffame
12/15/2016 2:09:01 AM

I copied this Set syntax from an old thread but unfortunately I can't find that thread anymore. Does anyone remember what this syntax is used for? I thought the thread showed the line crossing above/below 0 but I haven't been able to figure out how to do this.

set{trigger, macd fast line, macd slow line}

Kevin_in_GA
4,599 posts
msg #133241
Ignore Kevin_in_GA
12/15/2016 8:33:54 AM

This syntax makes no sense - are you trying to use a crossover as the trigger?

If so it would look more like this -

set{trigger, count(macd fast line crossed above macd slow line, 1)}

to trigger only on the day of the cross, or

set{trigger, count(macd fast line above macd slow line, 1)}

to trigger any day where that criterion is met.

15minoffame
131 posts
msg #133253
Ignore 15minoffame
12/15/2016 11:12:00 PM

Hi Kevin,
I wish I had copied the entire filter, not just this snippet from that old thread. The person was able to add another syntax showing the trigger line crossing 0. If you leave that syntax as is and click on the chart you'll see the trigger line, but now how to have it just crossing above 0? Oh well, I really appreciate your help!

four
5,087 posts
msg #133254
Ignore four
12/15/2016 11:40:37 PM



Kevin_in_GA
4,599 posts
msg #133255
Ignore Kevin_in_GA
12/16/2016 8:44:13 AM

set{trigger, count(macd fast line crossed above 0, 1)}
draw trigger line at 0


and, if you want only those stocks where the trigger has crossed today, then just add the following as a selection criterion

trigger above 0.5


15minoffame
131 posts
msg #133262
Ignore 15minoffame
12/16/2016 3:43:47 PM

You're the best Kevin! I'm adding you to my SF Hall of Fame! :-)

StockFetcher Forums · General Discussion · Set syntax from old thread<< >>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.