sorry for the inconvince...
Cheers
Tommaso
Hi Peter,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,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
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...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.
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;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 havejauhar » 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
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.