Bonjour, je souhaite créer un screener qui m’affiche toutes les valeurs où il y au minimum un twist future et au minimum un twist passé. Voici mon code mais je ne sais pas si c’est correcte ou pas:
Hi! I want to create a screener which shows me all configurations with min 1 future twist AND min 1 past twist. There is my code, but I don’t know if it works or not:
SSPanA = senkouspana[9,26,52]
SSpanB = senkouspanb[9,26,52]
countPastTwist = 0
FOR index1 = barindex TO barindex-pastPeriod DO
//Je sais pas si c'est autorisé de faire comme ça - I don't know if I can to like that
IF SSpanA[index1] CROSSES OVER SSpanB[index1] OR SSpanA[index1] CROSSES UNDER SSpanB[index1] THEN
countPastTwist = countPastTwist + 1
ENDIF
NEXT
countFutureTwist = 0
FOR index2 = 0 TO futurePeriod DO
//Je sais pas si c'est autorisé de faire comme ça - I don't know if I can to like that
IF (SSpanA[index2] CROSSES OVER SSpanB[index2]) OR (SSpanA[index2] crosses under SSpanB[index2]) THEN
countFutureTwist = countFutureTwist + 1
ENDIF
NEXT
c1 = countPastTwist >= 1
c2 = countFutureTwist >= 1
SCREENER[c1 AND c2]
Merci de votre aide!