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
Ah yea my mistake.
What can I do to change around that sign mismatch if statement. Annoys me when I have warnings when compiling :)
The compiler is grumbling about the fact that StartWaitingTime is declared as an unsigned integer (it has to be a positive number) while MaxWaiting_sec is declared as a normal integer.
In order to get rid of the warning, you can declare both as 'int' or both as 'uint'.
GetTickCount() will fill up quickly. As it is always going to be a positive number, you can effectively double it's capacity by declaring it as uint.
MaxWaiting_sec will also be a positive number, so the solution is to change
to
Last question :)
As I have never used *.mqh before, I was wondering if you can tell me if I am using it correctly?
So I am creating a new "Include (*.mqh)" named "TradeContext" template and then simply copying over what the kind chap has done in that article for everyone Error 146 ("Trade context busy") and How to Deal with It and then compiling.
This then sits within C:\MT4\MQL4\Include and in order to use the newly created "Include (*.mqh)" file I must add "#include <TradeContext.mqh>" within the global scope of my actual EA so that I can call upon "TradeContext" and any relevant functions?
I assume it makes more sense using a .mqh Include over a .mq4, right? This is the include file from that article above (i swapped it over to English notes).
INCLUDE FILE: "TradeContext"
How I am using this above "Include" file is like this within my EA:
EA FILE
Here
is an ")" too much!
This mostly results in an error message of a wrong "{" or" }" !!
I've never had an issue with OpenOrdersThisPair... As I said, this entire thread is about how FXCM's servers went down and upon calling tick value and tick size after they rebooted, it was all wrong for a while. On top of this, I am OrderSending too frequently so I am now using an Include file from the article, pasted above. All EA's use this for "green light" and wait on "red lights". I use pending orders so it's no biggy as I am placing quite far above or below current market price.
deysmacro (facepalm). Righto...
None the less, I appreciate everyone else's input. Gooly, I am not entirely sure what you're talking about? I never receive an error message regarding parenthesis.