I am not sure what’s going on at all and could use help. I am building an EA based off a custom indicator. I know the indicator is getting called properly now because it’s displaying on the chart. However, I am getting no values.
Here’s the code I’m using:
double stuff = iCustom(NULL,0,"MyIndicator","",50,true,true,true,17,12,7,false,10,1);
if(stuff > 0) {
printf("Indicator result: ",stuff," - Order to buy");
res=OrderSend(Symbol(),OP_SELL,LotsOptimized(),Bid,3,0,0,"",MAGICMA,0,Red);
return;
}
I even tried this:
printf("PipFinite: ",DoubleToStr(stuff)," - Order to buy");
I even tried this:
printf("PipFinite: ",DoubleToStr(stuff)," - Order to buy");
Still empty.
And this:
double stuff = iCustom(NULL,0,"MyIndicator","",50,true,true,true,17,12,7,false,0,1);
if(stuff > 0) {
printf("Indicator result: ",stuff," - Order to buy");
res=OrderSend(Symbol(),OP_SELL,LotsOptimized(),Bid,3,0,0,"",MAGICMA,0,Red);
return;
}
I noticed in the readme for the indicator, that it has 12 buffers, and I’m looking for # 10. Am I doing something wrong? Why am I not getting any values?
Thanks.