Have the lenght of a candle to insert TP. - page 2

 
RaptorUK:

No,  you are doing something wrong,  take any candle at random and do the maths . . .  for example,  EURUSD H1  Open = 1.30861    Close = 1.30641

My code  NormalizeDouble(MathAbs(C - O) * (25.0 / 100.0), Digits)   would be  1.30641 - 1.30861 = -0.0022   MathAbs() of that = 0.0022   multiply that by (25.0/100.0)  = 0.00055  

 

Remove the Point and the "big divide"  and as you can see the code will work . . . . 


Yes, you're right. It's perfect !
Reason: