DislikedMain = iCustom(NULL, 0, "TrendMagic",ParamATR,ParamATR,ModeMain,0);
Val2 = iCustom(NULL, 0,"TrendMagic",ParamCCI,ParamCCI,ModeValue2,0);
with ModeMain=0 and ModeValue2=1.
Anything wrong?Ignored
bufferUp = iCustom(NULL,0,"Trend Magic",ParamCCI,ParamATR,0,0);
bufferDn = iCustom(NULL,0,"Trend Magic",ParamCCI,ParamATR,1,0);
Make sure your indy executable is named "Trend Magic.ex4", or change the above lines to match the actual name (without the extension). Also, this would access the currently open bar. To access past bars change the last parameter to 1,2,3,etc... Not sure why you would call one "Main" and the other "val2" though. Make sure you look at the indy code to know what you're getting out of it: bufferUp is the blue line, bufferDn is the red line. That's it. Have fun.