Here is the code you are requested, the MACD was at least 6 bars above 0 and the Close of the current candlestick is breaking the highest high of the last 10 bars:
1
2
3
4
m=summation[6](macd[12,26,9]>0)=6
b=closecrosses overhighest[10](high)[1]
screener[mandb]
Not tested, please tell us if it’s working ok for you.
Hi Nicolas, sorry for the delay.. Thanks very much for your answer… and for your time!!
I tried your code and work verygood!!
But my mistake, I actually wanted to ask that the condition “b” is verified within 6 bar since when macd[12,26,9] crosses over 0. (Not only >0)
This code with the condition macd[12,26,9]>0 finds a many shares.
I tried to write a code, but not work good… could you help me? Thank very much!!
Of course you can! Please do it! 🙂 I’m happy to know it suits your needs. Please add a little description of the screener when you’ll post it into the code library. Thanks in advance.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok