Error in Comparison That Should Never Happen
-
Hi' Guys,
I am trying to edit some of my EA here but got stuck for almost a day with some stupid misscalculation.So, as you can see on the screenshot(SS1) i have a block that compare if distancePerc > TP_Percentage. This block never get executed as TRUE. It always falls into FALSE result.
I am surely have some moment that it should turn into TRUE. I do the LogMessage to check and make sure that some times the distancePerc > TP_Percentage is TRUE.
However, if i reverse the logic to distancePerc<TP_Percentage, sometimes it executed as TRUE and sometimes as FALSE. Like what it should be. It's also match with the LogMessage from those 2 value.
The data type of both value is the same (double). Also i attach Screenshot (SS2 and SS3) so you can see my variable and constant list.
Really hope someone can point me out to some stupidity i made. Or perhaps this is a bug?
SS1

SS2

SS3

-
Hi' Guys,
Here i share the EA project links which hopefully will get you better sense of what i am doing
https://fxdreema.com/shared/N4acCy3bdAlso, here's a youtube video i made explaining what i am aiming for and the issue i had
https://youtu.be/2YwjV1d9d70Thanks in advance
-
@everjn17 Hello
I did your project but no trade was made -
Yes since you'll need a custom indicator for it to run. However i can't share the custom indies as i have a copyright with the programmer of that indicator. You can replace the custom indicator with simple moving average crossover condition to test the EA.
-
Still doesn't have any clear solution for this Bug.
-
@everjn17 Please share the indicator link