Dears, please help me with correct coding to combine the crossover with minimum capital.
This one has an error in the last line:
mm7 = AVERAGE[7]
mm23 = AVERAGE[23]
dynamique = MOMENTUM(mm7-mm23) * 100 / CLOSE
KapitalMini = 50000 // Capital minimal (in K)
Kapital = Volume * WeightedClose / 1000
KapitalOK = ( Kapital > KapitalMini )
IF mm7 CROSSES UNDER mm23 THEN
SCREENER(dynamique AS "Force")
ENDIF
SCREENER ["Force" AND KapitalOK]
Replace “Force” with your variable, you should be ok
SCREENER [dynamique AND KapitalOK]
PhilippulusBlog – Welcome to the forums. I see that this is your first post. Please use the ‘Insert PRT Code’ button when posting code in your future posts as it makes it so much easier for others to read. I have tidied up your post for you. 🙂
Sorry, that’s because I posted via mobile device.
SCREENER [dynamique AND KapitalOK]
Thanks, I changed it according to and it works now:
mm7 = AVERAGE[7]
mm23 = AVERAGE[23]
dynamic = MOMENTUM(mm7-mm23) * 100 / CLOSE
KapitalMini = 50000000 // Minimum Capital (in K)
Kapital = Volume * WeightedClose / 1000
KapitalOK = ( Kapital > KapitalMini )
IF mm7 CROSSES UNDER mm23 THEN
SCREENER(dynamic AS "Force")
ENDIF
SCREENER [dynamic AND KapitalOK]
But whatever ‘KapitalMini’ value I used, I tried 50,000, 500,000, 5,000,000, I never get less than 114 hits for US NYSE Stocks.
What could the issue be?