StockFetcher Forums · General Discussion · max() seems not to work with variables from set{}?<< >>Post Follow-up
aristid73
7 posts
msg #161157
Ignore aristid73
6/22/2024 9:37:30 AM

hi all, this should be working but it doesn't, is there something I am missing?
the final line should be to have the maximum of his and lows, but doesnt function...
thanks in advance..

/* Awesome Oscillator */
set{a.1, high + low}
set{middle, a.1 / 2}
set{awesome, cma(middle,5) - cma(middle,34)}

set{hiawe, awesome 300 day high}
set{loawe, awesome 300 day low}
set{loaweabs,abs(loawe)}
set(awemax,max(hiawe,loaweabs)}

wantonellis
161 posts
msg #161158
Ignore wantonellis
6/22/2024 2:56:54 PM

Your set command has an ( vs { causing a bug.

Fetcher[
/* Awesome Oscillator */
set{a.1, high + low}
set{middle, a.1 / 2}
set{awesome, cma(middle,5) - cma(middle,34)}

set{hiawe, awesome 300 day high}
set{loawe, awesome 300 day low}
set{loaweabs,abs(loawe)}
set{awemax,max(hiawe,loaweabs)}
add column awemax
]



StockFetcher Forums · General Discussion · max() seems not to work with variables from set{}?<< >>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.