Hello all,
I try to use the function CROSSES OVER (or under, same issue).
if close CROSSES OVER Bn1Pos then
Div = 10000
else
div = 0
endif
note: in the RETURN statement I change the variable Bn1Pos and Div names :
Return Bn1Pos STYLE(dottedline,1) as"vB1Pos",div COLOURED(255,125,0) style(line,1) as "Déclenchement"
Here attached the result.As you can see, the price closes higher than vB1Pos and still it sets Div to 10 000.
Thank you 🙂
Please use the ‘Insert PRT Code’ button to make your post more readable. I have tidied up your post for you. 🙂
Your image is not very clear. Crosses over is only true if on the last candle the close was under and on this close the close was above. Your image just shows close > Bn1Pos as we can not see when the actual cross happened.
Hello,
Thank you for your action Vonasi 🙂
And what you said is interesting, and exact… The Déclenchement variable is set to 10 000 on the previous candle. I mean, the crossing happened on the previous candle.
I need to see how to handle this …
Thank you !!
(topic closed, if any admin is around)