dimanche 5 décembre 2021

Pine Script Multiple Condition / if statement or for-loop

I have multiple conditions like;

Buy1 Buy2 Buy3 Buy4 Buy5 . . . Buy10

I want to change bar colors due to TRUE condition numbers Example: only buy1 true If 1 Condition True barcolor(color.red) Example: only buy1, buy3, buy5 true If 3 Condition True barcolor(color.blue) If 9 Condition True barcolor(color.green) . .

how can i code, thanks for your help

Aucun commentaire:

Enregistrer un commentaire