Hi every one
Would you have more beautiful or ergonomic solutions to activate or deactivate drawings, I add one Boolen button as a condition
// # Drawing ON/OFF
MA20 = Average[20](Close)
MA50 = Average[50](Close)
C1 = MA20 Crosses Over MA50
IF C1 AND Drawing Then
DRAWARROWUP(barindex,MA50) COLOURED(255,0,0)
ENDIF
Return MA20, MA50
also if it’s possible for MA20 and MA50 if possible
MA20 = Average[20](Close)
MA50 = Average[50](Close)
C1 = MA20 Crosses Over MA50
IF C1 Then
DRAWARROWUP(barindex,MA50) COLOURED(255,0,0)
ENDIF
if drawing=0 then
ma20=undefined
ma50=undefined
endif
Return MA20, MA50
Hoop, tks you too much for your help, so like that you answered to my other questions, tks again, I will try tomorrow on my computer 🙂