Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
hi, i need help how to count pending orders (active)
i tried...
int total;
total=OrdersTotal();
I just try using OrderType() and it works, but... i can't rewrite the extern price1=xxxx into extern price1=0.0 so i can stop the code....
New Problem:
How to write extern Price1 from EA code?? and it shows at the GUI Too??
extern Price1=0.0
(User input Price1=1.64000 so pending order triggered ~ so if we open the EA properties input the Price1 is no longer 0.0 default value it will set to 1.64000)
after functions completes, i need to revert back the Price1 to its default, Price1=0.0
even i used this code...
Price1=0;
I'm not too clear on your question but if you're trying to phsyically change an external variable so that it will show up in your paramenters as changed then you can't do that. However if you change the value of an external variable from within your EA it stays changed until you recall the init function by either changing time frames, re-entering your external variables by looking them and pusing SAVE etc.
Not sure what you want to achieve but maybe take a look at global variables or consider writing values to a file.