MACD screener to code
Forums › ProRealTime English forum › ProScreener support › MACD screener to code
- This topic has 5 replies, 2 voices, and was last updated 7 years ago by Nicolas.
-
-
02/10/2017 at 12:50 AM #2458802/10/2017 at 9:23 AM #24605
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:
1234m = summation[6](macd[12,26,9]>0)=6b = close crosses over highest[10](high)[1]screener [m and b]Not tested, please tell us if it’s working ok for you.
02/13/2017 at 6:56 PM #24992Hi 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 conditionmacd[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!!
12345678910a = macd[12,26,9]c1= a crosses over 0if c1 thenm = summation[6](a>0)=6b = close crosses over highest[10](high)[1]endifscreener [m and b]02/13/2017 at 8:20 PM #2499602/15/2017 at 3:15 PM #25152Dear Nicolas, so work very good!! It’s just that I needed!!
I wrote a screener (long or Short)123456789101112131415161718once direction =0a = macd[12,26,9]c1= a crosses over 0c2 = a crosses under 0m = summation[6](c1)>0n = summation[6](c2)>0b1 = close crosses over highest[10](high)[1]b2 = close crosses under Lowest[10](low)[1]if m and b1 thendirection=1endifif n and b2 thendirection=-1endifscreener [(m and b1) or (n and b2)](direction)Could I make a new library screener?
02/15/2017 at 7:42 PM #25202 -
AuthorPosts
Find exclusive trading pro-tools on