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.
|