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

The Hidden Pending EA
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3573
Page 22 of 49
Author:  milanese [ Wed Feb 18, 2015 8:15 pm ]
Post subject:  [fixed version]TheHiddenPendingEA

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
Author:  FxFoil [ Sat Feb 21, 2015 3:11 am ]
Post subject:  TheHiddenPendingEA

.
Author:  FxFoil [ Sat Feb 21, 2015 3:58 am ]
Post subject:  TheHiddenPendingEA

.
Author:  milanese [ Sat Feb 21, 2015 7:27 am ]
Post subject:  TheHiddenPendingEA

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
Author:  milanese [ Sat Feb 21, 2015 7:42 am ]
Post subject:  TheHiddenPendingEA

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
Author:  milanese [ Sat Feb 21, 2015 8:58 am ]
Post subject:  [Update!!]TheHiddenPendingEA

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
Author:  jauhar [ Sat Feb 21, 2015 9:32 am ]
Post subject:  TheHiddenPendingEA

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
Author:  milanese [ Sat Feb 21, 2015 11:15 am ]
Post subject:  TheHiddenPendingEA

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
Author:  FxFoil [ Mon Feb 23, 2015 7:50 am ]
Post subject:  [Update!!]TheHiddenPendingEA

.
Author:  Over60 [ Mon Feb 23, 2015 9:58 am ]
Post subject:  TheHiddenPendingEA

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
All times are UTC Page 22 of 49