Developing EA using Trend Lord

 

Has anybody tried to develop an EA using Trend Lord?

I am calling

Print("Index 0:", iCustom(NULL,0,"TrendLord",0,0,1));
Print("Index 1:", iCustom(NULL,0,"TrendLord",0,1,1));
Print("Index 2:", iCustom(NULL,0,"TrendLord",0,2,1));

and they return

Index 0: 0.0

Indev 1: EMPTY_VALUE

Index 2: EMPTY_VALUE

I am expecting values for Index 1 & Index 2, but nothing.

Two questions:

1) If I am doing something wrong, assuming Trend Lord do pass values, what am I doing wrong here?

2) If the values are not passed, does anybody have access to the source so that I can modify it?

Appreciate it if anybody can comment on this.

 

Would be nice if you explained what Trend Lord is, give us some link to it, or better yet source code.

I can google it up, but why would I do your work? AS it seems you don't have the source code, to help you we'd need the executable to test the buffers. Are all buffers empty (max 8 afaik)? Test them all and give feedback :)

EDIT. also, if you use the Trend Lord on the chart, does it do anything?

 
Are all buffers empty (max 8 afaik)? Test them all and give feedback :)
 

I found the fix:

needed to pass some parameter values(in this case '50') to get chart values as below:

Print("Index 1:", iCustom(NULL,0,"TrendLord",50,1,1));
Print("Index 2:", iCustom(NULL,0,"TrendLord",50,2,1));

ForexCode - Thanks for your help ^^

 
Parameters are important :P
Reason: