Quote:
|
Originally Posted by homicida
tj for answering
oh you missunderstund me
its my crapy english ...sorry!
normally i know how to call a indicator with icustom(),
but when i try to call LSMA trendindicator then it gives me back the value "1" all the time ,no madder what the trend really is now it returns allways one value.... "1".
so i thought that the 1 it returns is some kind of errorcheck that returns true or false.
but i need to know what the trend is and have to add some code to the indicator that gives me back the trendvalue not the errorcheckvalue.
and my question above means :what code to add to the indicator to get the trendvalue instead of errorcheck value back when i call it with icustom().
greets homi
|
Hi homi,
I didn't misunderstand you. I gave you working example of iCustom.
Anyway. this is a line of code which will get the value of
LSMA using iCustom.
Note: I used
LSMA in color (
http://www.forex-tsd.com/showpost.ph...71&postcount=1)
Code:
Alert(iCustom(NULL,0,"LSMA in Color",14,1500,0,0));
parmeter 1 :the symbol -
NULL for current symbol.
parmeter 2 : time frame -
0 for current time frame.
parmeter 3 : indicator name - here it's "
LSMA in Color".
parmeter 4 : this is a setting for LSMA -
Rperiod = 14.
parmeter 5 : this is a setting for LSMA -
Draw4HowLongg = 1500.
parmeter 6 : the line number (range from 0 to 7) - usually used 0.
parmeter 7 : the working bar -
0 for the current bar.
Please try this line of code and tell me

.