Help Please! on Candlestick coding.

 
 Op = iOpen(NULL,1440,1);
   Cl = iClose(NULL,1440,1);
   Hg = iHigh(NULL,1440,1);
   Lw = iLow(NULL,1440,1);
   Bd = MathAbs(Op-Cl);
   Ush = Cl>=Op&&Hg-Cl&&Hg-Op;
   Lsh = Cl>=Op&&Op-Lw&&Cl-Lw;
   Ma=iMA(NULL,1440,8,0,MODE_EMA,PRICE_CLOSE,1);

Please is anything wrong in this?

Op = open price;

Cl = close price;

Hg = High price;

Lw = Low Price;

Bd = Candle body;

Ush = Upper shadow;

Lsh = Lower shadow;

I want to us the value of the shadows.

I need your help.

Thanks.


 
oladapolaleye:


Ush = Upper shadow;

Lsh = Lower shadow;

Please explain what these bools are ? are they bools ? if not why the && ?

Ush = Cl >= Op && Hg - Cl && Hg - Op;
Lsh = Cl> = Op && Op - Lw && Cl - Lw;
 
Ah you want the candle wicks . . .
 
oladapolaleye: Please is anything wrong in this?
Ush = Cl >= Op     && Hg - Cl && Hg - Op;
    = bool(T or F) &&  number &&   number
What does: True    &&  0.0051 && 0.0062 mean?
 
RaptorUK:
Ah you want the candle wicks . . .
Yes, I want the candle wicks and to my knowledge and research, that's what I got but didn't work. I appreciates your responses and helps. Thanks.
 
WHRoeder:

Please how do I put it to get the value of the wicks of the candlestick?
 
oladapolaleye:
Please how do I put it to get the value of the wicks of the candlestick?

upper: High[i]-MathMax(Open[i],Close[i])

lower: MathMin(Open[i],Close[i])-Low[i]

 
szgy74:

upper: High[i]-MathMax(Open[i],Close[i])

lower: MathMin(Open[i],Close[i])-Low[i]


Thanks a lot.