I need to insert in this formula screen the comand to show just the cross if it happens in the day.
I ve a cross of SMA, or better a Sma with Composite Momementum, (I use this indicator), but I want see just it happens in the day.
My formula show all cross also of previous day.
thanks for the help Alessandro
1
2
3
4
5
6
7
8
// Il codice seguente si rivolge al timeframe daily
I’m sorry but are you sure that your ‘Composite Momentum’ indicator is not crossing very often and on the last bar? Because a weighted average of 2 periods is very close to the price.
Also a weighted average is set on price value .. Does your composite momentum indicator too?
This indicator is an oscillator, right. But in your screener you are trying to test a cross of this indicator with a moving average weighted close of the price.. So that’s where is the mistake I believe.
I think you want your oscillator to cross its own value averaged. If yes, your screener code should look like this instead:
1
2
3
4
5
6
7
8
// Il codice seguente si rivolge al timeframe daily