View Single Post
  #633 (permalink)  
Old 05-04-2007, 04:16 PM
ValeoFX's Avatar
ValeoFX ValeoFX is offline
Senior Member
 
Join Date: Jan 2006
Location: Johannesburg, South Africa
Posts: 1,357
ValeoFX is on a distinguished road
Quote:
Originally Posted by raff1410
I found small problem with MTF indicators, with paiting:
Attachment 12751
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
Raff, does this apply to ALL MTFs or just the 2 mentioned and attached here? Thanks in advance.
__________________
"Risk comes from not knowing what you are doing" The Tao of Warren Buffett.

"Avoiding mistakes, makes people STUPID and having to be RIGHT, makes you OBSOLETE." Robert Kiyosaki.
Reply With Quote