The Hidden Pending EA

MPTM's new home
Post Reply
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

[fixed version]TheHiddenPendingEA

Post by milanese »

New version attached to the first post build155, there were cases the hiddenpendig line was not correct shown (trade were always filled correct), this is now in all cases fixed, so please load all the fixed version down..

sorry for the inconvince...

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
FxFoil
Trader
Posts: 42
Joined: Wed Dec 07, 2011 5:40 am

TheHiddenPendingEA

Post by FxFoil »

.
Last edited by FxFoil on Mon Apr 30, 2018 9:24 pm, edited 1 time in total.
FxFoil
Trader
Posts: 42
Joined: Wed Dec 07, 2011 5:40 am

TheHiddenPendingEA

Post by FxFoil »

.
Last edited by FxFoil on Mon Apr 30, 2018 9:24 pm, edited 1 time in total.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

TheHiddenPendingEA

Post by milanese »

FxFoil » Sat Feb 21, 2015 3:58 am wrote:Hi Tommaso

In the situation where first trade is in drawdown, and MoveOppositeOrderWithPrice has opened a hedge, a stack trade will then open another trade in either direction. When these 3 trades reach BE+5 pips profit, I would like to be able to close this XXXYYY mini basket immediately. To keep a hedged basket open in hope to gain more pips is also allowing possibility of many negative complications.

Is there a basket manager that works on just the pair symbol? MPTM require magic# or comment to isolate a single pair basket. If not, could you consider changing trade comment from 'PendingEA' to "XXXYYY" of chart.
I want to avoid manually changing the M# for every pair, also I understand that partclose trades could not be used as they have different comment.

Ideally if a routine CloseHedgeBasketWhenWin =5 (pips or $) could be included in EA this would be great, but I do not know if this is difficult or not to code. My personal view, if I have a losing trade of 50 pips that is then hedged to prevent drawdown, then as a basket is turned into a small profit and automatically closed and EA removed, that is a very happy outcome.

Peter
Hi Peter,

this is a good idea I will later add this function to the HPEA...

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

TheHiddenPendingEA

Post by milanese »

FxFoil » Sat Feb 21, 2015 3:11 am wrote:Hi Tommaso

Question about 'movePendingBuyDownIfPriceMovesDown' and 'movePendingSellUpIfPriceMovesUp".
Default = False. If =True then over time the distance between buy and sell lines decrease and a trade will happen even in very low volatility. Trades in low vola often sit around for a long time with no direction and use margin.

Could you explain more about the purpose of this feature and how it might be used to advantage.

Thanks
Peter
Hi Peter,

this feature was added after this user request
..My question is will the PendingPrice trail when the market price goes away from the PendingPrice? Like, if the current market price is 1.5000 and I set SetAutoPendingStopBuy=true; DistancePendingToPrice=50; MoveOppositeOrderWithPrice=true; and OppositeMoveLevel=10. So the PendingPriceBuy will be 1.5050. Now if the market price goes down to 1.4900, will the PendingPriceBuy be now 1.4950? If yes, then this is what I need.
It can be usefull with some strategies, and it will only be used, if the HPEA will detect no other trades with it's magicnumber.

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

[Update!!]TheHiddenPendingEA

Post by milanese »

Feb. 21,2015
new version, new the HPEA as PairBasket functions embedded.
The new inputs were:

Code: Select all

extern string   pBasketSet="---PairBasket Management inputs----";
extern string   pBasketSet1="---Values are in AccountCurrency----";
extern bool   UseCloseAllOfPairInProfit=true;
extern double CloseAllOfPairInProfit=75;
extern bool   UseCloseAllOfPairInLoss=true;
extern double CloseAllOfPairInLoss=50;
As always the new version build 157 is attached on the first post, thanks to Peter (FxFoil) for the idea!
As always asks if you have problems to understand some functions, ask here. Too you can post here if you have new ideas for the EA..

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
jauhar
Trader
Posts: 24
Joined: Wed Apr 17, 2013 6:08 pm

TheHiddenPendingEA

Post by jauhar »

Hi Tommaso,

Thanks for the new update. Is there any role of magic number in the new feature added in build 157? I mean to calculate the total profit/loss for a particular pair, does HP check also the magic numbers of the open positions? Also, does the function work for stacked positions as well when there is no hedged position opened?

Cheers,
Jauhar
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

TheHiddenPendingEA

Post by milanese »

jauhar » Sat Feb 21, 2015 9:32 am wrote:Hi Tommaso,

Thanks for the new update. Is there any role of magic number in the new feature added in build 157? I mean to calculate the total profit/loss for a particular pair, does HP check also the magic numbers of the open positions? Also, does the function work for stacked positions as well when there is no hedged position opened?

Cheers,
Jauhar
The new BasketPairFeature calculates all positions of a pair, there is no MagicNumberCheck. If all positions of a pair reach the profit or the loss predefined from the user, all positions will be closed and the EA will, if you have RemoveEAAfterClosingLastEAPos set to true, be removed. You can use this as PairBasketTP and SL both can be seperat activated or disactivated. The inputs are in account currency.

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
FxFoil
Trader
Posts: 42
Joined: Wed Dec 07, 2011 5:40 am

[Update!!]TheHiddenPendingEA

Post by FxFoil »

.
Last edited by FxFoil on Tue Feb 24, 2015 12:13 pm, edited 2 times in total.
Over60
Trader
Posts: 153
Joined: Thu Sep 13, 2012 12:58 pm

TheHiddenPendingEA

Post by Over60 »

Hi Peter,

Be not disappointed, but 28 pairs simultaneously, that does not make any sense, whether in theory, even by testing and by demo-trading.

Due to this, do not expect to receive a serious response, concerning the HP.
In demo you can try what you want, without risks … with a live account, you will run very fast into huge troubles.

Anyway, human brain by psychology can only manage 6 to 8 events simultaneously.
Beginners normally will start only with one symbol to master.

That’s the message.

Trade well my friend
Over60
Post Reply

Return to “Utilities Indicators and Scripts”