alot of failed orders because trade context is busy!
1Hour timeframe
ChangeTheColor EA
-
ROBST3R
- Trader
- Posts: 86
- Joined: Fri Dec 16, 2011 7:33 pm
Re: ChangeTheColor EA
You do not have the required permissions to view the files attached to this post.
Last edited by ROBST3R on Tue Jan 17, 2012 9:22 am, edited 2 times in total.
-
fxshadow
- Trader
- Posts: 61
- Joined: Tue Nov 15, 2011 11:46 pm
Re: ChangeTheColor EA
Cowboy IBFX US, 1Hr TFmagft wrote:Strange, it is programmed to retry 10 times. Which criminal are you using this on and what timeframe and settings?fxshadow wrote:I get trade context errors. Can these orders be programmed to retry?
Just a note to anyone having issues, please let me know the criminal, timeframe and attach your set file for me to check.
Regards
Mike
You do not have the required permissions to view the files attached to this post.
-
magft
- Trader
- Posts: 195
- Joined: Tue Nov 15, 2011 9:59 pm
- Location: East Midlands, UK
Re: ChangeTheColor EA
The errors are due to multiple trades being sent to broker at the same time, nothing to do with the EA, as you are running on multiple pairs. If it was a multi-pair trader this wouldnt happen, or if you run multiple copies of Empty4 to spread the number of pairs.ROBST3R wrote:alot of failed orders because trade context is busy!
1Hour timeframe
If you look some, if not all the trades will be placed, if not you can edit the code and change the max number of retries look for
Code: Select all
//Matt's O-R stuff
int O_R_Setting_max_retries = 10;Mike
-
magft
- Trader
- Posts: 195
- Joined: Tue Nov 15, 2011 9:59 pm
- Location: East Midlands, UK
Re: ChangeTheColor EA
Updated first post as George spotted a bloop in DoneForTheDay code.
Thanks George for your help.
Mike
Thanks George for your help.
Mike
-
ROBST3R
- Trader
- Posts: 86
- Joined: Fri Dec 16, 2011 7:33 pm
Re: ChangeTheColor EA
Thnx for the update Mike.
You are still working on the useopenoppositetrade function?
Thnx,
Robert
You are still working on the useopenoppositetrade function?
Thnx,
Robert
-
Smoochie88
- Trader
- Posts: 10
- Joined: Mon Jan 16, 2012 12:15 pm
Re: ChangeTheColor EA
Hi, I am new here and into the Foreign Exchange scene. It's very fun and I'm very enthusiastic about it.
Am I doing it right? Was wondering if Markets.com is the right broker. Also do you recommend 1H timeframe? Does it make a big difference in automated trading with the use of this bot?
Thanks for your response, and thank you for your work creating and designing this.
edit: possible solution for error 146?http://articles.mql4.com/141
Am I doing it right? Was wondering if Markets.com is the right broker. Also do you recommend 1H timeframe? Does it make a big difference in automated trading with the use of this bot?
Thanks for your response, and thank you for your work creating and designing this.
edit: possible solution for error 146?http://articles.mql4.com/141
You do not have the required permissions to view the files attached to this post.
-
magft
- Trader
- Posts: 195
- Joined: Tue Nov 15, 2011 9:59 pm
- Location: East Midlands, UK
Re: ChangeTheColor EA
Just noticed that i put the wrong variable for retries, you need to changemagft wrote:The errors are due to multiple trades being sent to criminal at the same time, nothing to do with the EA, as you are running on multiple pairs. If it was a multi-pair trader this wouldnt happen, or if you run multiple copies of Empty4 to spread the number of pairs.ROBST3R wrote:alot of failed orders because trade context is busy!
1Hour timeframe
If you look some, if not all the trades will be placed, if not you can edit the code and change the max number of retries look for
Hope this helpsCode: Select all
//Matt's O-R stuff int O_R_Setting_max_retries = 10;
Mike
Code: Select all
int RetryCount = 10;//Will make this number of attempts to get around the trade context busy error.BTW currently have 53pips after 1 hr from M5 trade, M15 still going at 34pips and H1 trade at 6pips. The M30 was giving the trade context error so never entered, H4 and D1 no trades yet. I started test at 14:30 GMT today using OOTB but with candle TS and ATR filter on.
Mike
-
reinier
- Posts: 2
- Joined: Wed Dec 21, 2011 12:04 pm
Re: ChangeTheColor EA
I am facing many times error 130 stop can not be set.
As a result the trade is openen without a stop loss.
But I am using default settings and not set any figures for the stop.
Can you please advise
2012.01.17 15:52:04 ChangeTheColor EURNZD,M5: Alert: EURNZD SL/TP order modify failed with error(130): invalid stops
2012.01.17 15:52:04 ChangeTheColor EURNZD,M5: EURNZD SL/TP order modify failed with error(130): invalid stops
2012.01.17 15:52:04 stdlib EURNZD,M5: loaded successfully
2012.01.17 15:52:04 ChangeTheColor EURNZD,M5: open #5639604 sell 0.01 EURNZD at 1.5915 ok
As a result the trade is openen without a stop loss.
But I am using default settings and not set any figures for the stop.
Can you please advise
2012.01.17 15:52:04 ChangeTheColor EURNZD,M5: Alert: EURNZD SL/TP order modify failed with error(130): invalid stops
2012.01.17 15:52:04 ChangeTheColor EURNZD,M5: EURNZD SL/TP order modify failed with error(130): invalid stops
2012.01.17 15:52:04 stdlib EURNZD,M5: loaded successfully
2012.01.17 15:52:04 ChangeTheColor EURNZD,M5: open #5639604 sell 0.01 EURNZD at 1.5915 ok
-
magft
- Trader
- Posts: 195
- Joined: Tue Nov 15, 2011 9:59 pm
- Location: East Midlands, UK
Re: ChangeTheColor EA
That will be that the last colour change is the SL by default and this is too close to price, i am looking into using freeze level to stop the error and i might make it an option to add freezelevel on to price to make sure a SL is set. This will be in next release.reinier wrote:I am facing many times error 130 stop can not be set.
As a result the trade is openen without a stop loss.
But I am using default settings and not set any figures for the stop.
Can you please advise
2012.01.17 15:52:04 ChangeTheColor EURNZD,M5: Alert: EURNZD SL/TP order modify failed with error(130): invalid stops
2012.01.17 15:52:04 ChangeTheColor EURNZD,M5: EURNZD SL/TP order modify failed with error(130): invalid stops
2012.01.17 15:52:04 stdlib EURNZD,M5: loaded successfully
2012.01.17 15:52:04 ChangeTheColor EURNZD,M5: open #5639604 sell 0.01 EURNZD at 1.5915 ok
In the meantime you could set a SL to the min stop of broker and turn off UseLastColorChangeSL.
Hope this helps
Mike
-
magft
- Trader
- Posts: 195
- Joined: Tue Nov 15, 2011 9:59 pm
- Location: East Midlands, UK
Re: ChangeTheColor EA
Any other requests for next release?
Rob, i will look into the opening a new trade in opposite direction function.
Anyone opposed to me removing the Stoch filter? I personally find the ATR a better filter from tests but if anyone is using it i will leave it in, just trying to remove extra bits i added during testing with Rob.
I am looking into reducing cpu overhead by adding synergy into EA, i need to do thorough testing to make sure i dont break anything in the process so this will be a major release.
Regards
Mike
Rob, i will look into the opening a new trade in opposite direction function.
Anyone opposed to me removing the Stoch filter? I personally find the ATR a better filter from tests but if anyone is using it i will leave it in, just trying to remove extra bits i added during testing with Rob.
I am looking into reducing cpu overhead by adding synergy into EA, i need to do thorough testing to make sure i dont break anything in the process so this will be a major release.
Regards
Mike