Jump to content

Trendline on the close of 2 specific candles


Recommended Posts

Hello,

 

Does anybody know an indicator which can draw a trendline on the chart from the close of a candle to the close of another candle? (by selecting the time of the correct candles in the input tab of the indicator for example 02:45 candle close to 07:45 candle close).

 

Thanks for your help.

Gringoh

Link to comment
Share on other sites

Here is it! I had a little break and this seemed simple :) so I coded it for you.

http://www.4shared.com/file/duWxI7fX/TO2CLS.html

 

If the 2nd time is later than current time, it will calculate on previous day.

 

Modified version:

you can now change the properties of the line.

 

Someone asked this:

(2 horizontal line: 1st at an open of a bar, 2nd at a close of a bar, it can be the same bar)

http://www.4shared.com/file/t4-EcKh5/OCHor.html

 

Though I am not doing this for "Thanks", but if you like it, you are welcome to do it. Also if you use it someway I would really be happy if you share any knowledge with us. I dont use these indicators nor know anything about the system it was reffered to so I may not be interested to improve it (unless proof of long term live history). sorry.

Edited by konorti
Link to comment
Share on other sites

@ Konorti,

 

Really, thank you very much for your help my friend.

 

Just an addition if it is not too much asked and too hard to code.

 

Would it be possible to display the 5 previous days but to limit those trendlines at the time chosen in the input tab. The extension on the current day trendline is perfect.

 

Thank again for your help,

Gringoh

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...