View Single Post
  #396 (permalink)  
Old 12-03-2008, 02:45 PM
Brazenmichael's Avatar
Brazenmichael Brazenmichael is offline
Member
 
Join Date: Jul 2007
Location: Florida
Posts: 86
Brazenmichael is on a distinguished road
Wink thoughts.....

Quote:
Originally Posted by nirvaman View Post
to tell you the truth, there is a problem when coding MTF indicators when constructing an EA. seems that drew dealed with that kind of problem too in the past. is something about the buffer. the error occurs when you attach thos EA to the charts . I will try again to code it this weekend. May be I can resolve that problem.
im not looking for mtf. i love 5min i have been playing with the code that was posted earlier....

ExtMapBuffer1[i] = EMPTY_VALUE;
ExtMapBuffer2[i] = EMPTY_VALUE;

to no avail...but my thoughts on the value i took from apa.mod...something simple like....

val1 = ExtMapBuffer1[0];
val2 = ExtMapBuffer2[0];
if (val1 > val2) Comment(" buy ",val1);

if (val1 < val2) Comment(" sell ",val2);

the only issue i have with this line of code is that it post the comment where my forextsd calendar posts and overwrites it.

but as i have said many times...i can think of the idea...just not make it work in code.

~michael
__________________
Wanna know how to trade? K.I.S.S.
Reply With Quote