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
|