Page 1 of 1

Indictor that plots a vertical line prev to live candel

Posted: Wed Nov 18, 2009 2:02 pm
by MarketSlayer
I use a vertical line on the previous candle to get a read on indicators. It is very helpful. The current candle is drawing so you don't know where it will end up. I am struggling to draw the vertical line and whatever chart you change to, the vertical line should always be on the previous to current live candle....When a candle ends, it should move to the right one candle and trail the current live candle by just one candle. Hope this makes sense

Posted: Thu Nov 19, 2009 6:14 am
by snscott
Oh oh oh, this one was easy. :-)

Here is SNS_PREVCANDLE_VLINE, which does what you describe.

Inputs allow you to specify line width, style, and color (but keep in mind that styles other than "solid" are only available im MT4 when the line width is "1".

Not sure exactly what this line helps you "do" or how it helps you trade though.

Posted: Thu Nov 19, 2009 1:27 pm
by MarketSlayer
Steven, perfect, I love this.
I make my decisions from CLOSED Candles..the previous candle and its indicators...NOT the current candle. So this line helps me to see are the indicators rising/falling...as we all know you can't analyze the current candle, as it is NOT done, so the indicators have not been plotted etc..So thank you I read through your code and learned a great deal. Nice work..