Say I have condition 1 and condition 2. If condition 1 was met at current close, and condition 2 was fulfilled 5 bars ago (and condition 3 was true 3 bars ago, ...), then I want to perform some action. How do I formulate that in Pine?
condition1 = ...
condition2 = ...
if condition1(close:close-5)==true and condition2(close:close-5)== true then ...
Aucun commentaire:
Enregistrer un commentaire