How do I skip odd numbers (or evens) in the following code:
//04.01.2021
//Grantx
//vertical offset to draw text correctly over horizontal lines
Voffset = 1.2*pipsize
DRAWTEXT(IntradayBarIndex, barindex, high+Voffset, Dialog,Standard, 20) COLOURED(255,255,255)
RETURN
Thanks for your reply. How though? How do I filter odds using MOD? documentation doesnt say much..
EvenNumber = ((Number MOD 2) =0)
OddNumber = ((Number MOD 2) =1)
only one of the two variables can be true each time.
Thanks that works.
Is there a way to be able to change the colour and size of those numbers by using the indicator settings panel? ie not having to change the code.
No, there’s no way. You can’t use variables so you’ll have to change the code.