my EA doesn't take profit in time

 

hello , 

my EA is supposed to have a take profit of 50 points , as you see in the pic , the bar was up over 130 points and it didn't take any profits !! 

i'm controlling the spread to 15 points using " SymbolInfoInteger(_Symbol,SYMBOL_SPREAD) "

https://imgur.com/a/CbtaDPo

Imgur
Imgur
  • 2020.07.09
  • imgur.com
Post with 0 views.
 
Check the prices  bid and ask and not the chart. This is only an approximation the real numbers.
 
Carl Schreiber:
Check the prices  bid and ask and not the chart. This is only an approximation the real numbers.

does that means i can'r rely on those numbers on strategy tester !! and how can i fix that ?!! since the difference is quite large

 
andrw11: my EA is supposed …
  1. Useless image

  2. "Doesn't work" is meaningless — just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires — meaningless.
    How To Ask Questions The Smart Way. 2004
              When asking about code

    Do you really expect an answer? There are no mind readers here and our crystal balls are cracked.

    We can't see your broken code.
    How To Ask Questions The Smart Way. 2004
              Be precise and informative about your problem

    Fix your broken code.

    With the information you've provided — we can only guess. And you haven't provided any information for that.

Reason: