View Single Post
  #2 (permalink)  
Old 12-07-2007, 06:44 AM
oilfxpro's Avatar
oilfxpro oilfxpro is online now
Forex Warrior
 
Join Date: Nov 2007
Posts: 441
Thanks: 15
Thanked 24 Times in 18 Posts
oilfxpro is on a distinguished road
Default

Hi

There were many other functions I expected to be included in this EA .There is room for improvement and additional coding

ea saves and maintains a file on the

>> computer which will contain instructions /do's and don't for all slaves.

>> I will code the slave to consult this file before making any trade.

>>> 1)The master will be created with maximum emphasis on safety and

>>> security.The master will monitor all orders sent and prevent duplicate

>>> orders and multiple orders created by ordersend functions.The master

>>> will log all orders sent and wait 10 mins before resending order. And

>>> before resending it will check orders filled and open positions , it

>>> will do the same everytime the metatrader programme reboots and will

>>> never allow orders above the maximum to be sent.

>>>

>>> 2)Sometimes, when several EAs start trading at the same time, trading

>>> functions may fail because the trading context is busy and only one EA

>>> is allowed to trade at the moment. So, other EAs will not open

>>> positions/modify orders etc. and the signal will be missed. To avoid

>>> this, you can either use WaitUntilTradingIsAllowed() function or

>>> StartTrading()/StopTrading() functions.We only had one EA.Please take

>>> care of this.

>>>

>>> 3)Your code will ensure the EA performs robustly and EA is coded to

>>> deal with situations where MT > feed is interrupted in some way. For

>>> instance, many/most EA's take no > account of MT simply being closed

>>> down and restarted - one of the most > basic requirements - and lose

>>> all their trade stats....The master will also not allow duplicate

>>> trades created by requotes in times of high volatility

>>>

>>> 4)A lot of EAS are not able to deal with requotes and platforms

>>> freezing during high volatility.The order send functions often send

>>> multiiple orders whilst the platforms are frozen.Please advise how you

>>> will code this.

>>>

>>> 5)The master will override the functions of the slave on the following

>>> commands.
>>> extern int RangeDeviation = 1; // Allowable pips +/- offset for entries


>>>> b)If EA incurs losses of more than 1% of account size in a 24 hour

>>>>

>>>> period ,disable E A. If EA incurs losses of more than 3% of account

>>>>

>>>> size in a 72 hour period ,disable E A

>>>>

>>>> The EAS can place more than the desired number of trades .I was using

>>>> How can the order send function be tightened and the code improved to

>>>>

>>>> prevent more than the required number of orders being placed?

>>>> Should every order sent be checked on log and should resending should

>>>>

>>>> be frozen for 10 minutes and should resending only be valid only after

>>>>

>>>> checking filled orders(total open trades) show trade as not executed?

>>>>

>>>> A lot of EAS are not able to deal with requotes and platforms freezing

>>>>

>>>> during high volatility.The order send functions often send multiiple

>>>>

>>>> orders whilst the platforms are frozen





>>>>

>>>> * *

>>>>


>>>> *He also gave you a couple of advices: *

>>>>

>>>> * *

>>>>

>>>> * *

>>>>

>>>> * *

>>>>

>>>> *Sometimes in the source code (for example, in the CloseAllOrders

>>>>

>>>> function) the return value of the trading functions (OrderModify,

>>>>

>>>> OrderSend etc.) is not checked. So, if an error occurs, there will be

>>>>

>>>> no error messages in the log file and it could be difficult to

>>>>

>>>> understand why the trading operation has failed. *

>>>>

>>>> * *

>>>>

>>>> * *

>>>>

>>>> * *

>>>>

>>>> *Sometimes, when several EAs start trading at the same time, trading

>>>>

>>>> functions may fail because the trading context is busy and only one EA

>>>>

>>>> is allowed to trade at the moment. So, other EAs will not open

>>>>

>>>> positions/modify orders etc. and the signal will be missed. To avoid

>>>>

>>>> this, you can either use WaitUntilTradingIsAllowed() function or

>>>>

>>>> StartTrading()/StopTrading() functions. *

>>>>







__________________
__________________
pro-expert-advisors,com
Reply With Quote

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now