please assist me correct to this trendline code
i am to to draw a static trendline starting from 00:01 gmt and get deleted at 23:55 gmt
the trendline will have two point:
the upper and lower trend line will start from current candle of 00:01 to 48 previous candle and the second point will be from 00:01 to 24 previous candle
when the time get to 23:55 gmt. it should delete all trend line.
when i first posted this appeal, i laughed at, but i did not give up. i have made some effort though still having some challenges.
1. at some point in some pair either online the upper line will be drawn and the lower trendline will just have a dot, sometime it will be the lower trend line drawn and the upper trend line will be a dot.
2. while at times in some pairs both lines will be drawn.
my request for assistance is fixing number one above. so both line will be drawn when it time to create them.
thank you as you assist.
see my effort below
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Please I am trying to write a code in mt4 or mql5 that will:
Have a static line of high and low TrendLine
These lines will only be drawn when TimeCurrent is > 00:01gmt
And will be deleted at midnight when TimeCurrent > 23:55gmt
The upper line will have two anchor point
1. it will pick out the highest high of 48 previous candles starting from 0
2. it will pick out the highest high of 24 previous candles starting from 0
the same applies to the lower line
Attach is my effort, but it is not giving me what I want:
it sometimes produces errors 4200, and 4202.
Also at time, it will draw the upper trend line leaving the lower trend liver, while other times on
different pairs or time frames it will be the lower line drawn not the upper.
see an example with various errors in the screeenshot below
<ex4 file deleted>