jauhar » Sun Feb 08, 2015 8:35 am wrote:
Hi Tommaso,
Thanks for the reply. Let me explain the trailing of PendingPrice I need. Suppose the current trend is up and I expect the price will go up. I set HP to put pending buystop 50 pips above the current price (using DistancePendingToPrice). If the price actually goes up and my pending is filled then fine. But if there is a retrace and the price goes down by 100 pips, I would like the pending buy price should also come down by 100 pips so that when the price starts going up, my pending buy is filled after 50 pips (DistancePendingToPrice). With no trailing, the price will need to go up by 150 pips (after the retrace) for the pending buystop to be filled. With trailing, because the order will be filled early, it can win more pips with same price move.
Jauhar
I like your idea and as it was time for an update to the new info box and some fixes I added the function in the latest version Z.
feb. 8, 2015
NewVersion with a new option to "trail" the automatic with
DistancePendingToPrice calculated Buy/Sell Stop prices. If you have at exp initial a PendingBuyPrice 1,54000 DistancePendingToPrice is selected with 50 pip (so Price by setting the initial Pending was 1,53500) the PendingBuyPrice will be moved if Price goes down to 1,53000 to 1,53500. This gives the EA again more flessibility.
The inputs for this new option are:
Code: Select all
extern string dyn="----Dynamic Initial Pending Move Options----";
extern string dyn1="----This is only working with AutoBuySellStop----";
extern bool movePendingBuyDownIfPriceMovesDown=false;
extern bool movePendingSellUpIfPriceMovesUp=false;
Analog to the APTM and all newer EA coded by me the UserDisplay is updated.
new input
showDisplayBox=true if you set this to false, you see the user-display in the "old" way, without box and transperency, so tou have now three possibilities:
-NewBoxDisplay Design
-Old fashion style with transperency UserDisplay
-Display will not be shown
The display is too more informativ, to make the use of this EA a little bit easier.
This version includes too some fixes and update to property strict code.
As always you will find latest version Z attached to the first post, not that I do not update the light version, as there is really no big request for this version..
Cheers
Tommaso