Download MetaTrader 5
To add comments, please log in or register
Are you accustomed to using the standard library? MQL5 has one!
gkintl66
6
gkintl66 2016.08.04 14:59 
Hi, I trade in the NSE (National stock exchange of India) and use MT4 for charting. I have developed a strategy to find out good entries and exits in the derivatives market, based on calculations using the day high/lows. However, the lines show up only the next day morning when the market opens up. I have missed real good chances because of this.

What I am looking for is that the lines should be drawn at the end of today's close instead of tomorrow morning. The Indian stock market opens at 9.15am and closes at 3.30 pm (GMT+5.30). Everything else works perfectly. As of now, I use excel sheet to input the data to receive the values, which is really frustrating. The indicator should consider 3.30 as day's close, calculate the lines and draw it on the chart.
rod178
276
rod178 2016.08.05 07:46  

1) not being mind readers we are unable to interpret your code

2) possibly the EOD lines require a tick (??), which is not occurring until the next day's Open

whroeder1
13597
whroeder1 2016.08.05 13:34  
gkintl66 However, the lines show up only the next day morning when the market opens up. I have missed real good chances because of this.
  1. If the market is closed, how do you miss anything?
  2. If you know the market is closed, why do you need the line?
  3. There is no way in code to know which tick is the last tick, so there is no way to draw a line until the time changes or you always draw the line in the future.
/
To add comments, please log in or register