Page 1 of 1

How to do weekly and monthly SMA or EMA price crossing

Posted: Tue Nov 07, 2017 10:25 am
by donkrob12
I am trying to write a script to look at when the closing price of a stock or ETF crosses above the weekly or monthly moving average as an entry signal and exit when the closing price crossed below that average. I can see how it works with daily prices but not weekly or monthly.

Re: How to do weekly and monthly SMA or EMA price crossing

Posted: Thu Nov 09, 2017 9:54 am
by nibor200
The old post , "How to specify time frame for chart script formulas?" from Dec 2010, might help.

Ed S.

Re: How to do weekly and monthly SMA or EMA price crossing

Posted: Fri Nov 17, 2017 12:55 pm
by donkrob12
Thanks, I will look that up.