StockFetcher Forums · General Discussion · Help with using variable inside SET statement<< >>Post Follow-up
paweltrader
2 posts
msg #158065
Ignore paweltrader
11/20/2021 3:08:22 PM

Does anyone know how to use variable inside SET statement? Here is an example which does not work:

set {d1, 4}
set {d2, d1 - 1}
set {d1h, high d2 days ago}

nibor100
1,031 posts
msg #158072
Ignore nibor100
11/20/2021 9:02:13 PM

If you add columns for d1 and d2 you'll see variables do work inside SF set statements.

However, in SF for most commands like "days ago" you can't use variables instead of integers, whether or not that command is inside a set statement or not; which is why your third line doesn't work.

Hope this helps,
Ed S.

StockFetcher Forums · General Discussion · Help with using variable inside SET statement<< >>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.