Murrey Math Line - Line Drawing Problem

 

Hello fellow traders,

I want to modify an existing Murrey Math Line indicator (https://www.mql5.com/en/code/8570) on how it drawth the lines.

Right now it draws the Line as a Horizontal line on the charts but I want to change it so the line will be only displayed from the current candle (start) to two candles into the future (end). 

See image:

I tried to do it myself and change the code myself but I can not make it as wanted.

I need help to change this. Could anybody show me how to do this?

kind regards,

salexes

Murrey Math Lines (Support and Resistance)
Murrey Math Lines (Support and Resistance)
  • votes: 10
  • 2008.11.20
  • FXIA
  • www.mql5.com
MM Lines are drawn where support and resistance is.
Files:
mmlStilios.mq4  23 kb
 
salexes: I tried to do it myself and change the code myself but I can not make it as wanted.
Help you with what? You haven't stated a problem. You have only four choices:
We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using SRC) and the nature of your problem. No free help
urgent help.
 

Salexes,

please do not post multiple times. Post once in a relevant thread or open a topic with a relevant title. Does your enquiry have anything to do with Murray Math? Not really, it is how to modify a horizontal line.

You probably don't realise how selfish you are being by posting multiple times.

Have you any idea how frustrating it is when someone uses their free time to answer a query and then opens another thread and finds a duplicate query that has already been answered? That means that the time spent on answering was completely wasted! Time that could have been used to help somebody else.


You will need to draw a trendline instead of a horizontal line.

Use Time[0] for the first time co-ordinate and Time[0] + n * PeriodSeconds() for the 2nd

Note that you may need to check and modify at a new bar in case of missing bars 



Your duplicated posts have been deleted.

Reason: