issue with double order, mysterious bug or something else?

Amirfarhangy
16
Amirfarhangy  

Hi All, 

I have the code below to find the fibonacci and entry point and tp and sl on the chart and start trading based on the data on the chart. 

it suppose to monotor the market and if the market reaches the entry point (that can be moving entry point like Psar indicator) then start the trade. 

(Trade is in three position as you can see)

PROBLEM:

for some reason wometimes the code opend 2 series of trades. it is very strange as I put a Trade=false order when the triger happens and I expected that next tick it know that the Trade is now false and should not trade again. unfortunately this has happened three times last week and made me frustrated. I really do not know where is the problem . 

I appreciate if you can help me, or if you have some problem similar to the issue above. What did you do?

MAny Thanks Guys

Amir

Files:
zone.mq4  15 kb
Keith Watford
Moderator
29959
Keith Watford  
Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.