MQL - Drawing Trend Line segments
I'm writing up an indicator based on TDMovingAverage (a moving average which hides during ranged markets and shows during trending markets). Could anyone give me some hints on how best to draw this?
Is there some constant I can use when setting the indicator value so it doesn't get drawn? I was toying around with DRAW_LINE using Dot objects and just setting the dots to 0 when in ranging markets. This effectively hides them but I'd still like to investigate using lines.
Thanks in advance.
|