AllPairTradeManager(APTM)

MPTM's new home
Post Reply
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

an other AllPairTradeManager

Post by SteveHopwood »

falanca » Tue Sep 30, 2014 6:44 pm wrote:I havent understood why you coders think a lways in complexity.İf ı will code trade managerı will prefer the least options.
To be brutally honest, I doubt whether anyone cares what you think. If you want a manager with just a few options, then code a manager with just a few options.
Manage by magic number;true or false
Magic number;(if 0 manages all trades)
SL pips;100 pip
Trail stop start;100pip
Trail width;20pip
Partial close;true or false
Partial close%;50
**These managing rules will Start again on every partial closing till it closes the unit lot.
Basket management;true or false
Basket equity TP;30 dollars
BasketSL;40 dollars
Basket partial closing;if true closes the part of all the open orders
Basket partial close%;50
**Basket equity PL and the opened orders must seen on graphic
That is what you want. Others may well want a shed-load more.
Simple must be best ı think isnt it
Carry on thinking my friend. Just stop 'contributing' ok? And if you think I am a little rough, just wait until Tommaso reads your post. It is one of the dafter ones to appear here for some considerable time. You are in trouble, feller.

:xm:
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.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

[NEW Version]an other AllPairTradeManager

Post by milanese »

In the first post you will new find a "plus" version of the allPairTradeManager.
This new version has too the possibility for some BasketManagement options. You can use Indivualtrade & BasketManagement together or just only one of them. Just use these inputs:
UseIndividualTradeManagement=false;
UseBasektmanagement=true;

With the following settings you can set Basket-TP/SL and BE using percentage of the balance:

Code: Select all

extern double  RiskPercentageStopLoss=1; //Percent of balance to use as sl. Zero to disable
extern double  RewardPercentageTakeProfit=1.5; //Percent of balance to use as cash tp. Zero to disable
extern double  RiskPercentageMoveToBE=0.5;//Percent of balance used for setting BE
extern double  RiskPercentageMinDistanceSL=0.1;//Percent of balance cash added to BE
BTW: any unqualified posting I will here in future remove, any substantial input and all new ideas as always very welcome!!
Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
falanca
Trader
Posts: 31
Joined: Tue Mar 04, 2014 2:23 pm

an other AllPairTradeManager

Post by falanca »

Thanks Milanese for your interest to my idea.But its again complex.İ think Steve must open a new topic which is named 'How can we make our coded Ea s more simple' :oops:
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

an other AllPairTradeManager

Post by milanese »

falanca » Tue Sep 30, 2014 7:31 pm wrote:Thanks Milanese for your interest to my idea.But its again complex.İ think Steve must open a new topic which is named 'How can we make our coded Ea s more simple' :oops:
There is no need for a new topic, if you read the first post and the entire thread you will easy understand how to use this trademanger, the new basketfunctions are added to give the allPairTrademanager more flessibility, adding some general basket mangement functions.

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
falanca
Trader
Posts: 31
Joined: Tue Mar 04, 2014 2:23 pm

an other AllPairTradeManager

Post by falanca »

İ am shamed becouse of thinking just simple.Please dont be angry to me for that
falanca
Trader
Posts: 31
Joined: Tue Mar 04, 2014 2:23 pm

an other AllPairTradeManager

Post by falanca »

And I am really grateful for your sincere interst M illanese.New topic subject was just a joke for Steve.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

an other AllPairTradeManager

Post by milanese »

falanca » Tue Sep 30, 2014 7:42 pm wrote:And I am really grateful for your sincere interst M illanese.New topic subject was just a joke for Steve.
I would, if I would be you, not be joking, as Steve is 100% right, if you want a simple one just code it yourself, this will be my last warning if you don't have any substantial input to contribute here so just remain silent, or you are risking your membership here, capito???

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
BobbyT
Trader
Posts: 232
Joined: Thu Aug 21, 2014 1:34 am
Location: Seattle

an other AllPairTradeManager

Post by BobbyT »

Hi Tomamaso,

Thanks for pointing me over, I will definitely be taking this for a spin on Monday.
I was wondering if you could clarify something for me that hopefully isn't too daft :oops:

What is the difference between

Code: Select all

MinSetSLDistanceFirst=50; MinSetSLDistancePlus=75
and

Code: Select all

JumpPipsFirst=25; JumpPipsPlus=37
These are both jumping SL settings right? Would I be right in guessing that

Code: Select all

MinSetSLDistanceFirst=50; MinSetSLDistancePlus=75
are a distance that price must move past the jumping SL trigger price? And that

Code: Select all

JumpPipsFirst=25; JumpPipsPlus=37
are for jumping stop movement

eg: for

Code: Select all

JumpPipsFirst=25
and

Code: Select all

MinSetSLDistanceFirst=50
price must move 50pips in the green before the SL moves 25 pips? With each 50 pip movement in price there is a 25 pip movement in SL (just pretend the 'Plus' settings are set to the same values for arguments sake) therefore making it a widening SL?

Sorry to bother you with such drivel but I can't really test it out to check these functions (with this no weekend trading rubbish) and would like to have everything set ready to run Monday morning :good:


Thanks Tommaso. Keep up the great work :!!:

PS I read the thread but couldn't work out the above without a market to test it on :arrrg:
Procrastination provides exponentially negative returns - BobbyT
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

an other AllPairTradeManager

Post by milanese »

BobbyT » Sat Dec 06, 2014 11:50 pm wrote:Hi Tomamaso,

Thanks for pointing me over, I will definitely be taking this for a spin on Monday.
I was wondering if you could clarify something for me that hopefully isn't too daft :oops:

What is the difference between

Code: Select all

MinSetSLDistanceFirst=50; MinSetSLDistancePlus=75
and

Code: Select all

JumpPipsFirst=25; JumpPipsPlus=37
These are both jumping SL settings right? Would I be right in guessing that

Code: Select all

MinSetSLDistanceFirst=50; MinSetSLDistancePlus=75
are a distance that price must move past the jumping SL trigger price? And that

Code: Select all

JumpPipsFirst=25; JumpPipsPlus=37
are for jumping stop movement

eg: for

Code: Select all

JumpPipsFirst=25
and

Code: Select all

MinSetSLDistanceFirst=50
price must move 50pips in the green before the SL moves 25 pips? With each 50 pip movement in price there is a 25 pip movement in SL (just pretend the 'Plus' settings are set to the same values for arguments sake) therefore making it a widening SL?

Sorry to bother you with such drivel but I can't really test it out to check these functions (with this no weekend trading rubbish) and would like to have everything set ready to run Monday morning :good:


Thanks Tommaso. Keep up the great work :!!:

PS I read the thread but couldn't work out the above without a market to test it on :arrrg:
Thanks for your questions:
JumpPipsFirst this is the first jump step in pips, means the with the first move, after the BE is set, the SL is moved the given value (OOTB 25 pips) , JumpPipsPlus is the value for all next steps,
anlog works the MinSetSLDistanceFirst/Plus, the new SL must have this distance to the actual price in the OOTB exampel so 75 pips (50+25) as the price is moved 25 pips and the minDistance must be 50 pips (for the first move), note this are the manual settings, only used if UseHighLowForMovingSteps is set to false, as the allPairTradeManager is concepted to do all this steps dynamicly according to the volatility of the price moviments. I hope this gives answer to your questions..

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
BobbyT
Trader
Posts: 232
Joined: Thu Aug 21, 2014 1:34 am
Location: Seattle

an other AllPairTradeManager

Post by BobbyT »

So they are two sides of the same coin. Cool.
Thanks Tommaso
Procrastination provides exponentially negative returns - BobbyT
Post Reply

Return to “Utilities Indicators and Scripts”