gaheitman wrote:
The code only manages trades with a matching MagicNumber (the default is 0) that are in profit. I wouldn't think a pending order would have a profit, but I don't know that I've ever called OrderProfit() to see.
You are just running it on one chart, right?
Steve should probably add the standard "while trade context busy" check prior to the OrderModify() function to make sure this doesn't happen.
George
I have attached the EA to each chart that I was setting a pending order for. It managed all the jumps properly once the trade is opened, just keeps displaying this error on the pending trades.
gaheitman wrote:
The code only manages trades with a matching MagicNumber (the default is 0) that are in profit. I wouldn't think a pending order would have a profit, but I don't know that I've ever called OrderProfit() to see.
You are just running it on one chart, right?
Steve should probably add the standard "while trade context busy" check prior to the OrderModify() function to make sure this doesn't happen.
George
I have attached the EA to each chart that I was setting a pending order for. It managed all the jumps properly once the trade is opened, just keeps displaying this error on the pending trades.
Is your cpu screaming and emitting blue smoke, perchance? It should be, especially if you have AlwaysOn at its default of true.
This is a multi-pair manager, Shelley. Each instance of the bot you had running was trying to manage every open trade. When the stops needed moving, each instance tried to move the stop at the same time.
You only need one bot running.
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
gaheitman wrote:
The code only manages trades with a matching MagicNumber (the default is 0) that are in profit. I wouldn't think a pending order would have a profit, but I don't know that I've ever called OrderProfit() to see.
You are just running it on one chart, right?
Steve should probably add the standard "while trade context busy" check prior to the OrderModify() function to make sure this doesn't happen.
George
I have attached the EA to each chart that I was setting a pending order for. It managed all the jumps properly once the trade is opened, just keeps displaying this error on the pending trades.
Is your cpu screaming and emitting blue smoke, perchance. It should be, especially if you have AlwaysOn at its default of true.
This is a multi-pair manager, Shelley. Each instance of the bot you had running was trying to manage every open trade. When the stops needed moving, each instance tried to move the stop at the same time.
Yes it is supposed to set to only one chart because it is a multi-pair manager, so it will manage all trades so long as they have the same magic number as in the MagicNumber input.