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

AllPairTradeManager(APTM)
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3482
Page 2 of 65
Author:  putusernamehere [ Tue Mar 11, 2014 6:14 pm ]
Post subject:  an other AllPairTradeManager

putusernamehere » Sun Mar 09, 2014 9:34 pm wrote:thanks Tommaso for your work. :hi: next week I will test it and write you the result. :good:
cheers Gunter
as promised, here's an example of how the AllPairTradeManager works.
edit: now the right screenshot (first i posted a wrong trade sorry)
Author:  fxozgirl [ Wed Mar 12, 2014 10:47 am ]
Post subject:  an other AllPairTradeManager

Thanks Tommaso, another fabulous contribution :clap:

is it possible to code the EA to manage trades by ticket number?

Cheers Shelley
Author:  milanese [ Wed Mar 12, 2014 12:54 pm ]
Post subject:  an other AllPairTradeManager

fxozgirl » Wed Mar 12, 2014 10:47 am wrote:Thanks Tommaso, another fabulous contribution :clap:

is it possible to code the EA to manage trades by ticket number?

Cheers Shelley
Thanks Shelley , I will take a look ..

Cheers :)

Tommaso
Author:  milanese [ Wed Mar 12, 2014 2:09 pm ]
Post subject:  [New]MAPTM Shelley Version

milanese » Wed Mar 12, 2014 12:54 pm wrote:
fxozgirl » Wed Mar 12, 2014 10:47 am wrote:Thanks Tommaso, another fabulous contribution :clap:

is it possible to code the EA to manage trades by ticket number?

Cheers Shelley
Thanks Shelley , I will take a look ..

Cheers :)

Tommaso
Ok here you go Shelley really a great idea :) This one handels trade by ticketnumber and knows after the part closes automatic the new ticketnumer.
It is OOTB set to manage trades with the ticket number setting isManageByTickeNumber=true TicketNumber here you must input your ticketnumber you wish to manage(after partclose the trademanager knows automatic the new one and will use this automatic)
Attention make sure you have set ManageAllOpenTrades to false if you want to use other management options, as ManageAllOpenTrades overwrites all other settings !!
This version is OOTB set to ManageByTicketNumber with all partcose options activ, like Shelley wanted.
You can too select new ManageByOrderComment and give an OrderComment CommentOfOrder
for orders you want to manage, too in this case the trademanager will know after partclose(s) what order to manage.

A attach this version to to the first post as it is thanks to Shelley more functional!! :!!:

See first post for explaining all other functions :)
Cheers :)

Tommaso
Author:  fxozgirl [ Wed Mar 12, 2014 8:04 pm ]
Post subject:  [New]MAPTM Shelley Version

milanese » Thu Mar 13, 2014 1:09 am wrote:
milanese » Wed Mar 12, 2014 12:54 pm wrote:
fxozgirl » Wed Mar 12, 2014 10:47 am wrote:Thanks Tommaso, another fabulous contribution :clap:

is it possible to code the EA to manage trades by ticket number?

Cheers Shelley
Thanks Shelley , I will take a look ..

Cheers :)

Tommaso
Ok here you go Shelley really a great idea :) This one handels trade by ticketnumber and knows after the part closes automatic the new ticketnumer.
It is OOTB set to manage trades with the ticket number setting isManageByTickeNumber=true TicketNumber here you must input your ticketnumber you wish to manage(after partclose the trademanager knows automatic the new one and will use this automatic)
Attention make sure you have set ManageAllOpenTrades to false if you want to use other management options, as ManageAllOpenTrades overwrites all other settings !!
This version is OOTB set to ManageByTicketNumber with all partcose options activ, like Shelley wanted.
You can too select new ManageByOrderComment and give an OrderComment CommentOfOrder
for orders you want to manage, too in this case the trademanager will know after partclose(s) what order to manage.

A attach this version to to the first post as it is thanks to Shelley more functional!! :!!:

See first post for explaining all other functions :)
Cheers :)

Tommaso
You are simply awesome Tommaso :hi:

thanks so much...I will set it up tonight once I'm home from work/cricket etc :)

Cheers
Shelley
Author:  Aussiedoc [ Thu Mar 13, 2014 2:45 am ]
Post subject:  [New]MAPTM Shelley Version

Ok here you go Shelley really a great idea ........Tommaso
Mate, my thanks also for this!. :good: :good: I keep saying that you are an absolute LEGEND!! :cheer: :cheer: :cheer: :yahoo: :yahoo: :yahoo:

Cheers!
Doc
Author:  putusernamehere [ Thu Mar 13, 2014 8:30 pm ]
Post subject:  an other AllPairTradeManager

I have a question. can I activate the part close only for the BE ?
Thank
Author:  milanese [ Thu Mar 13, 2014 8:37 pm ]
Post subject:  an other AllPairTradeManager

putusernamehere » Thu Mar 13, 2014 8:30 pm wrote:I have a question. can I activate the part close only for the BE ?
Thank
Sure see first pot too, just set PartCloseEnabled = true; and PartCloseJumpEnabled=false
PartCloseJumpPlusEnabled = false;
please note too that you should set MinSetSLDistanceFirst=50; and MinSetSLDistancePlus=75;, to higher values as OOTB if you have great SL distance, as it could happen that if the trademanager sets BE after 100 pips and you use it OOTB with all partcloses activated, the trademanager will immediately move the sl two times or more and close the entire position...

Cheers :)

Tommaso
Author:  putusernamehere [ Thu Mar 13, 2014 9:15 pm ]
Post subject:  an other AllPairTradeManager

milanese » Thu Mar 13, 2014 9:37 pm wrote:
putusernamehere » Thu Mar 13, 2014 8:30 pm wrote:I have a question. can I activate the part close only for the BE ?
Thank
Sure see first pot too, just set PartCloseEnabled = true; and PartCloseJumpEnabled=false
PartCloseJumpPlusEnabled = false;
please note too that you should set MinSetSLDistanceFirst=50; and MinSetSLDistancePlus=75;, to higher values as OOTB if you have great SL distance, as it could happen that if the Trademanger sets BE after 100 pips and you use it OOTB with all partcloses activated, the trademanger will immediately move the sl two times or more and close the entire position...

Cheers :)

Tommaso
thank you Tommaso for the quickly answer :hi:
cheers
Gunter
Author:  milanese [ Sat Mar 15, 2014 2:43 pm ]
Post subject:  [New version]MAPTM Shelley

putusernamehere » Thu Mar 13, 2014 9:15 pm wrote:
milanese » Thu Mar 13, 2014 9:37 pm wrote:
putusernamehere » Thu Mar 13, 2014 8:30 pm wrote:I have a question. can I activate the part close only for the BE ?
Thank
Sure see first pot too, just set PartCloseEnabled = true; and PartCloseJumpEnabled=false
PartCloseJumpPlusEnabled = false;
please note too that you should set MinSetSLDistanceFirst=50; and MinSetSLDistancePlus=75;, to higher values as OOTB if you have great SL distance, as it could happen that if the Trademanger sets BE after 100 pips and you use it OOTB with all partcloses activated, the trademanger will immediately move the sl two times or more and close the entire position...

Cheers :)

Tommaso
thank you Tommaso for the quickly answer :hi:
cheers
Gunter
For in future avoiding problems Gunter described, I have added new funtionality:
UseHighLowForMovingSteps=True if this is set true the trademanager will use the distance form h/l of the last five candles to move the SL this for a better managing of open positions in win, so the SL jumps in profit will be analog to the price movement, here is too used BEPercentSLIncrement for the % calculation of the high/low distance. Now the trademanager has a certain "intelligence" in moving the SL.
Note that this will be overide you settings in MinSetSLDistanceFirst=50; MinSetSLDistancePlus=75 JumpPipsFirst=25; JumpPipsPlus=37;
BufferPips=1.7 is used to add this pips to the calculated SL.
JumpPipsFirst=25 sets the pips for first SL move
JumpPipsPlus=37; sets the pips for all further SL moves
as always the EA is too attached in the first post.
please use the deactivate EA button of your Empty4 before attaching the alltrademanager, and activate after attaching the alltrademanager, as the alltrademanager could freeze for some seconds yor Empty4 , do the same if you want remove the alltrademanager (the alltrademanager uses an endless loop)

As always let me know all bugs you find, ask all questions you might have, and if you want some other functions embedded feel free to post your proposes here :)
Cheers and a great weekend to all :)

Tommaso
All times are UTC Page 2 of 65