View Single Post
  #246 (permalink)  
Old 08-03-2006, 06:50 AM
raff1410's Avatar
raff1410 raff1410 is offline
Senior Member
 
Join Date: May 2006
Location: 24°10' E 54°24' N
Posts: 201
raff1410 is on a distinguished road
MTF indicators UPGRADE

I found small problem with MTF indicators, with paiting:
mtf_repaint.gif
It should be flat line...

You can upgrade with this code, to remove problems...
Code:
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   if (TimeFrame>Period()) {
     int PerINT=TimeFrame/Period()+1;
     datetime TimeArr[]; ArrayResize(TimeArr,PerINT);
     ArrayCopySeries(TimeArr,MODE_TIME,Symbol(),Period()); 
     for(i=0;i<PerINT+1;i++) {if (TimeArr[i]>=TimeArray[0]) {
//----
 /************************************************ by Raff   
    Refresh buffers:         buffer[i] = buffer[0];
 ********************************************************/  

      ExtMapBuffer1[i]=ExtMapBuffer1[0]; 

//----
   } } }
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Raff
Attached Files
File Type: mq4 #MTF_MovingAverage_Ugrade_Example.mq4 (5.0 KB, 337 views)
File Type: mq4 #MTF_MACD-2.mq4 (5.4 KB, 308 views)
__________________
http://www.gummy-stuff.org/raff-regression.htm

http://www.try-your-luck.com/

Lost in action ;-)... just_raff1410[at]yahoo.com

Last edited by raff1410; 08-03-2006 at 07:39 AM.
Reply With Quote