Before asking why don't you make some effort to find out for yourself ? add some print statements do you can see the values held by your variables, or simply take the values from any 2 adjacent bars off any chart and calculate the values that your code calculates . . . then you should understand what is going on.
Coding is about problem solving, if you have zero aptitude for that you shouldn't bother trying to code . . . or if you just can't be bothered trying to solve your coding issues then give up already.
Before asking why don't you make some effort to find out for yourself ? add some print statements do you can see the values held by your variables, or simply take the values from any 2 adjacent bars off any chart and calculate the values that your code calculates . . . then you should understand what is going on.
Coding is about problem solving, if you have zero aptitude for that you shouldn't bother trying to code . . . or if you just can't be bothered trying to solve your coding issues then give up already.
yea... i should add print statement to see what's wrong with that.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
You can introduce this:
Hope it will help you.@@。。。
it doesnt open any trade even i use 1 pip as size wanted.
i simplified it like this...
no error on coding,
but why didnt open any trades ??
i simplified it like this...
no error on coding,
but why didnt open any trades ??
Before asking why don't you make some effort to find out for yourself ? add some print statements do you can see the values held by your variables, or simply take the values from any 2 adjacent bars off any chart and calculate the values that your code calculates . . . then you should understand what is going on.
Coding is about problem solving, if you have zero aptitude for that you shouldn't bother trying to code . . . or if you just can't be bothered trying to solve your coding issues then give up already.
Before asking why don't you make some effort to find out for yourself ? add some print statements do you can see the values held by your variables, or simply take the values from any 2 adjacent bars off any chart and calculate the values that your code calculates . . . then you should understand what is going on.
Coding is about problem solving, if you have zero aptitude for that you shouldn't bother trying to code . . . or if you just can't be bothered trying to solve your coding issues then give up already.
yea... i should add print statement to see what's wrong with that.
thanks. RaptorUK