|
I need help with iCustom for Histogram
Anyone can help me here? I am trying to do an object create of a uptrend or downtrend using iCustom and a indicator that displays Histogram bars above 0 and below 0.
How do i make use of the iCustom function to call on it that when its above 0, it a uptrend and when its below 0 its a downtrend?
It goes something like this for now:
string Trigger="";
color colt6;
double trigger1 = iCustom(NULL, 0,"Trigger",24, ??????? , 0);
if ((trigger1 > 0)) { Trigger="UP"; colt6=Lime; }
if ((trigger1 < 0)) { Trigger="DOWN"; colt6=Red; }
ObjectCreate("MA00", OBJ_LABEL, 0, 0, 0);
ObjectSetText("MA00",Trigger,28, "Arial", colt6);
ObjectSet("MA00", OBJPROP_CORNER, 0);
ObjectSet("MA00", OBJPROP_XDISTANCE, 0);
ObjectSet("MA00", OBJPROP_YDISTANCE, 0);
|