You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
hello, I have a very simple code. i do not know why it dose not work.
the " ResistanceOnexmt " and " ResistanceOnexpt " are prices and they are 5 points above and under one of the Resistance Lines, and " PriceBID " is SYMBOL_BID.
all these variables are global in client terminal and refreshed just before this pert comes.
I have 12 of this code fragment in my EA. I want every time that " PriceBID " is in between of these prices " AllowSell "(also global) becomes true and control goes to " Criterion() "
for the other trading conditions.
problem is the control NEVER goes inside the second "if" even when the Price is right and it should go in.
i have put "Alert" functions everywhere in this code. and i am sure the control goes in the first "if" but it never goes in the second "if".
any Ideas? am i missing something?
<Deleted>