Mladen Rakic
197820
Mladen Rakic  
Abhinav:
Hi mladen,

As you can see from the screenshots, On 23/9/15 on 30 min chart the upreversal came at 3:15 7827 was the value at the end of bar, but when seen on 1min chart(with time frame as 30min) we see the reversal starting on the bar at 3:15 but this makes it confusing bcoz here the value at start of bar is 7793. So can a delay equivalent to time frame be added to this mtf version.

Regards,

Abhinav

Abhinav

No idea how you got 3:15 on a 30 minute chart (that is not possible). There are no bars on 30 minute charts that have time like nn:15 or nn:45

Abhinav
35
Abhinav  
mladen:
Abhinav No idea how you got 3:15 on a 30 minute chart (that is not possible). There are no bars on 30 minute charts that have time like nn:15 or nn:45

No mladen actually time starts here on GCI demo at 23:45, thats why it is comming on 3:15 , that is not the issue. The main thing is can color change be delayed by 30minutes on a 30minute chart so that when we plot it on 1min chart it does not repaint.

Regards,

Abhinav

Mladen Rakic
197820
Mladen Rakic  
Abhinav:
No mladen actually time starts here on GCI demo at 23:45, thats why it is comming on 3:15 , that is not the issue. The main thing is can color change be delayed by 30minutes on a 30minute chart so that when we plot it on 1min chart it does not repaint.

Regards,

Abhinav

Abhinav

Lets assume this (using regular 30 minute chart times) : a new 30 minute bars starts at nn:00 and lasts till nn:29. At nn:30 a new 30 minute bars starts and lasts till nn:59. So, on a lower time frame bar, the higher 30 minute bars must start and end at those same times - all 1 minute bars from nn:00 to nn:29 belong to one 30 minute bar while all 1 minute bars from nn:30 to nn:59 belong to another 30 minute bars

Abhinav
35
Abhinav  
mladen:
Abhinav Lets assume this (using regular 30 minute chart times) : a new 30 minute bars starts at nn:00 and lasts till nn:29. At nn:30 a new 30 minute bars starts and lasts till nn:59. So, on a lower time frame bar, the higher 30 minute bars must start and end at those same times - all 1 minute bars from nn:00 to nn:29 belong to one 30 minute bar while all 1 minute bars from nn:30 to nn:59 belong to another 30 minute bars

Thats right mladen the higher 30 minute bars must start and end at those same times on the 1min chart, but can we add an intentional delay of 30min in the coding algo so as to make it look non repainting for the 1min chart. This kind of indicator may not look good in higher time frames but it will then look much exact on 1min chart with no repainting

Mladen Rakic
197820
Mladen Rakic  
Abhinav:
Thats right mladen the higher 30 minute bars must start and end at those same times on the 1min chart, but can we add an intentional delay of 30min in the coding algo so as to make it look non repainting for the 1min chart. This kind of indicator may not look good in higher time frames but it will then look much exact on 1min chart with no repainting

You can (just add "-1" to the index part of any iCustom() call to higher time frame - but then you shall never see the higher time frame current bars state until it is closed)

Mladen Rakic
197820
Mladen Rakic  

Upgraded Gann T3 high low activator (histogram version, multi time frame with alerts) : gann_t3_high-low_activator_histo_alerts_2.mq4

William Snyder
9541
William Snyder  

Upgraded, simplified the code, made it more user friendly and corrected some possible errors in the alerts on Fiji Trend_alerts mtf.

William Snyder
9541
William Snyder  

Upgraded version of dpo T3 cross histo_mtf+alerts.

Abhinav
35
Abhinav  
mladen:
You can (just add "-1" to the index part of any iCustom() call to higher time frame - but then you shall never see the higher time frame current bars state until it is closed)

mladen thankyou very much for your guidance. As adviced by you and after some hit and trial i changed the following peice of code :

for (i=limit; i>=0; i--) macd = iMA(NULL,0,FastMa,0,FastMaMode,FastMaPrice,i) - iMA(NULL,0,SlowMa,0,SlowMaMode,SlowMaPrice,i);

for (i=limit; i>=0; i--) sign = iMAOnArray(macd,0,SignMa,0,SignMaMode,i);

to this:

for (i=limit; i>=0; i--) macd = iMA(NULL,0,FastMa,0,FastMaMode,FastMaPrice,i+1) - iMA(NULL,0,SlowMa,0,SlowMaMode,SlowMaPrice,i+1);

for (i=limit; i>=0; i--) sign = iMAOnArray(macd,0,SignMa,0,SignMaMode,i+1);

Can you please check it bcoz i m not at all a coder.

Regards,

Abhinav

Mladen Rakic
197820
Mladen Rakic  
Abhinav:
mladen thankyou very much for your guidance. As adviced by you and after some hit and trial i changed the following peice of code :

for (i=limit; i>=0; i--) macd = iMA(NULL,0,FastMa,0,FastMaMode,FastMaPrice,i) - iMA(NULL,0,SlowMa,0,SlowMaMode,SlowMaPrice,i);

for (i=limit; i>=0; i--) sign = iMAOnArray(macd,0,SignMa,0,SignMaMode,i);

to this:

for (i=limit; i>=0; i--) macd = iMA(NULL,0,FastMa,0,FastMaMode,FastMaPrice,i+1) - iMA(NULL,0,SlowMa,0,SlowMaMode,SlowMaPrice,i+1);

for (i=limit; i>=0; i--) sign = iMAOnArray(macd,0,SignMa,0,SignMaMode,i+1);

Can you please check it bcoz i m not at all a coder.

Regards,

Abhinav

Abhinav

The way you wrote, even in a current time frame, instead of showing current value on a currently opened bar it will show the value of the first closed bar. If that is what your intention is, than the code is OK