need coding help

Back to topics list To post a new topic, please log in or register
avatar
1
gkintl66 2016.08.04 16: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.
avatar
164
rod178 2016.08.05 09: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

avatar
13001
WHRoeder 2016.08.05 15: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.
Back to topics list  

To add comments, please log in or register