stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Manager for 10.3 trades
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=937
Page 2 of 2
Author:  fxozgirl [ Wed Nov 07, 2012 9:19 am ]
Post subject:  Re: Manager for 10.3 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.
Author:  SteveHopwood [ Wed Nov 07, 2012 10:02 am ]
Post subject:  Re: Manager for 10.3 trades

fxozgirl wrote:
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. :lol:

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.

:D
Author:  fxozgirl [ Wed Nov 07, 2012 11:12 am ]
Post subject:  Re: Manager for 10.3 trades

SteveHopwood wrote:
fxozgirl wrote:
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. :lol:

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.

:D

Well, that explains sooooo many things :oops:


:lol: :lol: :lol: :lol: :lol:

thanks Steve ;)
Author:  vishal29982 [ Tue Apr 22, 2014 4:19 pm ]
Post subject:  Re: Manager for 10.3 trades

You are just running it on one chart, right?
Author:  milanese [ Tue Apr 22, 2014 4:58 pm ]
Post subject:  Manager for 10.3 trades

vishal29982 ยป Tue Apr 22, 2014 4:19 pm wrote:You are just running it on one chart, right?
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.

Cheers :)

Tommaso
All times are UTC Page 2 of 2