Thread: MQL4 Learning
View Single Post
  #49 (permalink)  
Old 01-02-2007, 05:56 PM
Oiler Oiler is offline
Junior Member
 
Join Date: Jan 2007
Posts: 1
Oiler is on a distinguished road
Question 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.
Reply With Quote