StockFetcher Forums · Filter Exchange · Stock Pair trading<< 1 2 >>Post Follow-up
dtatu
143 posts
msg #157329
Ignore dtatu
8/4/2021 3:11:47 PM

I managed to fix it by using daily MA multiplied by 5 in order to have the equivalent weekly MA.
Anybody could help if it's possible , to transform this into one single buy or sell filter instead of a separate buy and sell filters? They will light up at the new buys/sells.
Thanks

symlist(spy)
set{ratio, ind(spy,close)/ ind(eem,close)}
set{ratiowkWma20,cwma(ratio,100)}
draw ratiowkWma20

set{ratiowkWma8,cwma(ratio,40)}
draw ratiowkWma8

chart-display is weekly
add column ratio
add column ratiowkwma8
add column ratiowkwma20

set{buy,count(ratio crossed above ratiowkWMA20,1)}
set{sell,count(ratio crossed below ratiowkWMA20,1)}

add column separator
add column buy above 0
add column buy 1 day ago below 1
add column separator
add column sell
add column sell 1 day ago

draw buy
draw sell



snappyfrog
731 posts
msg #157379
Ignore snappyfrog
8/12/2021 9:53:09 PM

Making it clickable.

Fetcher[

symlist(spy)
set{ratio, ind(spy,close)/ ind(eem,close)}
set{ratiowkWma20,cwma(ratio,100)}
draw ratiowkWma20

set{ratiowkWma8,cwma(ratio,40)}
draw ratiowkWma8

chart-display is weekly
add column ratio
add column ratiowkwma8
add column ratiowkwma20

set{buy,count(ratio crossed above ratiowkWMA20,1)}
set{sell,count(ratio crossed below ratiowkWMA20,1)}

add column separator
add column buy above 0
add column buy 1 day ago below 1
add column separator
add column sell
add column sell 1 day ago

draw buy
draw sell
]



StockFetcher Forums · Filter Exchange · Stock Pair trading<< 1 2 >>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.