Here is v1_3.
This version should hopefully prove to be more stable.
v1_3 MUST have TFX_Include_v1_2.mqh saved to your include folder to operate.
v1_3 also uses stdlib.mqh which should already be in your libraries folder.
I have only let this run live for about 3 hours. So far I haven't had any problems. It will take much longer testing to work out any potential bugs in the code.
One thing I noticed is that if a bar runs away VERY fast, your next trade will probably not get hit where you set Next_Trade to activate. This may be a limitation in mq4. The only way around this that I can think of is setting pending orders. I never liked pending orders because they let the broker know exactly what you're up to. Next_Trade is coded to activate at >= or <= your pip parameter.
Please make sure to read ALL external variable comments in the code.
If you want to see the stored Global Variable info for the last order placed press f3, or go to tools/Global Variables.
Happy testing.
