please, look into my code

 

Hello everyone,

i attached this code to my account but it refused to work, i don't know what was wrong in the code.

Can anybody look into it?

Files:
 

Mistake is

strend_down_1 == 0

in your conditions. Usually double var never equal zero.
 
Roger wrote >>

Mistake is

thanks Roger,

what do i do now? should i delete this conditon from the code?

waiting for your reply.

 

You can try this:

if(MathAbs(strend_down_1)<0.0001)....

or this

if(NormalizeDouble(strend_down_1,Digits)==0)...

 
Roger wrote >>

You can try this:

if(MathAbs(strend_down_1)<0.0001)....

or this

if(NormalizeDouble(strend_down_1,Digits)==0)...

thanks Roger once again,

kindly include the conditions you stated above in my code, i can't do it on my own,it was a friend of mine that helped me to code it .

You can send it to my e-mail willyjan11@yahoo.co.uk . thank you very much

 
11011980 wrote >>

thanks Roger once again,

kindly include the conditions you stated above in my code, i can't do it on my own,it was a friend of mine that helped me to code it .

You can send it to my e-mail willyjan11@yahoo.co.uk . thank you very much

some body please help me finish this code. thank you .