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

The Hidden Pending EA
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3573
Page 6 of 49
Author:  milanese [ Fri Oct 10, 2014 5:08 pm ]
Post subject:  TheHiddenPendingEA

dydynamic » Fri Oct 10, 2014 4:44 pm wrote:hi Milanese,
please can you assist in coding your multi-purpose trade manager_ATR_BE&JS to manage more than one magic number and trade comment for those EA that have multiple magic numbers and trade comments.
Also, the hedging part sends multiple orders when used.please check the hedging to see if there is any bug that can be fixed.
Thanks. :hi: :) :) :) :xm:
the hedging part should work as I did in this part some changes for a user time ago and tested this and it worked..(ok maybe there is some problem with the latest crap build)
about the multiple magic number feature, we do you not let MPTM let manage simply all trades? This would be the easiest way imo..

Cheers :)

Tommaso
Author:  dydynamic [ Fri Oct 10, 2014 6:20 pm ]
Post subject:  TheHiddenPendingEA

hi Mlanese,
in the hedging ordersend code it uses magic no of the trade manager
to send the trade,i enabled manage all trades,is it not suppose to indicate on screen that manage all trades have been activated?
i will still prefer you add mutiple magic nos and trade comments because of the hedging ordersend.
please what does hedge increment do and how can one use it?
thanks. :hi: :good: :) :xm:
Author:  milanese [ Fri Oct 10, 2014 6:37 pm ]
Post subject:  TheHiddenPendingEA

dydynamic » Fri Oct 10, 2014 6:20 pm wrote:hi Mlanese,
in the hedging ordersend code it uses magic no of the trade manager
to send the trade,i enabled manage all trades,is it not suppose to indicate on screen that manage all trades have been activated?
i will still prefer you add mutiple magic nos and trade comments because of the hedging ordersend.
please what does hedge increment do and how can one use it?
thanks. :hi: :good: :) :xm:
best solution is to use manage all trades, the hedge increment sets the distance between the hedge trades, best is if you will try on different demos some different settings in forward testing for better understanding how this functions work.., too you should read the pdf file (attached in first post of the MPTM thread) that explains verys good the functions of MPTM...

Cheers :)

Tommaso
Author:  dydynamic [ Sat Oct 11, 2014 6:39 am ]
Post subject:  TheHiddenPendingEA

please if anyone has a trade manger that manages multiple magic numbers,and has hedging feature pls post.
thanks.
Author:  Over60 [ Sat Oct 11, 2014 2:38 pm ]
Post subject:  TheHiddenPendingEA

Time to talk about some experiences and just a few words in advance, why and how I test and use the pending-EA.

It is part of my strategy to “scale in” and “scale out” applying multiple orders, depending on the performance of any pair.
If there is any profit generated, I harvest or protect in profit. My trades, orders and pendings, I manage them in an excel worksheet using the interactive data feed transferred from Empty4 via the provided excel- template "DDE-sample" in the main Directory of Empty4.
For followers, make DDE-server accessable in the option-menue.
The actual data from the terminal I transfer via copy and paste (html) from the detailled report.

If price arrives a certain expected level, I get an alarm by alert (live) or via email (absent) to my smartphone, so I can decide in time and in advance, what to do.
The advantage for me is, that I can simulate with such a custom spreadsheet different scenarios in advance, e.g. what will happen if price will move into profit or loss, considering e.g. the daily expected and even unexpected price-movements. I.e. I can consider what will happen, if pendings would open...
That makes decisions and life for me easier, using only “Yes or No” and I have the risks under control.

If I´m convinced that price will move in a designated direction and range, I position there pendings (grid). Now I can use the pending-EA, which does this work for me, by using the stacking order feature.
I decide only, when to start. That´s a great help, when I´m not live.

By experimenting with the pending-EA,
I found some criteria to have a glance:

1. What I miss similar to the “alltrademanager”, that is to attach the EA to an already existing order by ticket number. For the orders protected in the swing or longterm
I don´t have any stress, only patience.

BTW: There might be recently some misunderstandings among traders concerning the use of magicnumbers. As far as I know, only EAs provide magicnumbers. Although it is out of topic here, please find attached a link, which explains it in more details.

http://expert-advisor-builder.com/metat ... ic-number/


2. I would request to switch off hidden functions.
I did already mention that most of the serious brokers did reduce the spreads and the stop-loss-levels, such as i.e. Global Prime and others.
So there is no real need to use hidden functionality. Don´t ask for slippage, because even serious brokers did not have sometimes any influence.
If the pendings and stops would be not hidden and visible, only minor coding for the switch true/false option might be necessary.

3. Statement: The pendings are fixed by the time and levels the EA has been attached. Using a bidirectional grid trading (buy and sell pendings simultaneously) the triggered pendings at the starting level still remain in their origin position.
Now assume, that price will move in a designated direction… by stacking trades. This will not work all the time, when unexpected spikes occurs. Therefore I `d like to suggest, that the opposite triggered pending position should move step by step according to the price movement, if the first pending will be triggered.
Afterwards the opposite pending should move (triggered by the option true or false) similar like a trailing-stop by the defined pending distance. BTW: that is not a new issue, trading discrete, we would do the same operation to protect trades. That feature should not lead to collisions. If price will turn/retrace, the trailed pending will remain at the latest moved and trailed position and stacking trades might perform in the opposite direction. Having in mind that the pending on the opposite, which might be most of the time inactive, depends on trader’s skill and experience and will serve similar as a hedge trade, if sometimes being absent.
Be aware and try it first on demo. The EAs does not have intelligence and is only a tool.
I use the EA on two charts of the same symbol, because it seems to me more flexible, transparent and useful to operate different in the opposite direction.

In reference to trailing. Might be a never ending story.

I´m not a follower of trading basket with an EA and with multiple orders using different symbols/pairs simultaneously. Each pair has different criteria, such as price-movement (vola) and different performance in regard to the trading hours. That is fact. Therefore I prefer to manage each pair separately, especially what trailing considers.
That should not mean, that I disregard basket-trading at all.
It needs years of experience to get a glance, i.e. how correlations will work (i.e. arbitrage-trading ….).
I wonder that only very few traders and coders did bother with trailing instruments, because from my point of view it is being a much underestimated issue and in contrast a powerful tool.

Any questions or comments?
Stay tuned … the journey continues

Trade well my friends and have a nice weekend
Over60

PS:
@Milanese, sorry, I did taken into account and don´t disregard it,
that you have a lot of work and projects.
Author:  milanese [ Sat Oct 11, 2014 5:17 pm ]
Post subject:  TheHiddenPendingEA

Hi Over60,

could you more specify what exactly is your idea for having the possibility to use the HiddenPendingEA with an specific ordernumber, is it for a kind of hedging from one trade ?
I ask because I must admit that I so far not really have understood your intention.

Cheers :)

Tommaso
Author:  Over60 [ Sun Oct 12, 2014 6:31 am ]
Post subject:  TheHiddenPendingEA

Hi Milanese,

Thanks for your attention.

My request did not refer to hedging or using multiple magicnumbers as mentioned by “dydynamic”.

If the pending-EA has been attached to a symbol, the EA creates automatically one or two pendings (depends on the settings) for a buy- and/or sell-pending with a defined distance in pips above or below the current price. In addition we can define manually the price-level(s), when the EA should perform an order at predefined price-levels. That works fine…and I like it.

To enter an order initially, I tried to use a very small distance to the current price to use afterwards especially the stacking feature of the EA.
But during fast price fluctuations (because of spread-control ???, slippage, spikes), it is sometimes difficult to get a fill. So I enter initially with a market-order.
That’s the reason for my previous request concerning an option to enter initially.

There are also the further possibility, that a manually entered order is already working as mentioned above, but without a magicnumber or comment. Now I intend to connect the EA with this order, similar to the functionality provided by the AllPairTM.
But I do not have a comment or magicnumber for that purpose, resp. I cannot access or create a conjunction between the EA and the trade.
Therefore I did ask for the use of the ticketnumber.

Maybe there is another possibility, I did not yet taken into consideration?

Kind regards
Over60
Author:  milanese [ Sun Oct 12, 2014 6:44 am ]
Post subject:  TheHiddenPendingEA

Over60 » Sun Oct 12, 2014 6:31 am wrote:Hi Milanese,

Thanks for your attention.

My request did not refer to hedging or using multiple magicnumbers as mentioned by “dydynamic”.

If the pending-EA has been attached to a symbol, the EA creates automatically one or two pendings (depends on the settings) for a buy- and/or sell-pending with a defined distance in pips above or below the current price. In addition we can define manually the price-level(s), when the EA should perform an order at predefined price-levels. That works fine…and I like it.

To enter an order initially, I tried to use a very small distance to the current price to use afterwards especially the stacking feature of the EA.
But during fast price fluctuations (because of spread-control ???, slippage, spikes), it is sometimes difficult to get a fill. So I enter initially with a market-order.
That’s the reason for my previous request concerning an option to enter initially.

There are also the further possibility, that a manually entered order is already working as mentioned above, but without a magicnumber or comment. Now I intend to connect the EA with this order, similar to the functionality provided by the AllPairTM.
But I do not have a comment or magicnumber for that purpose, resp. I cannot access or create a conjunction between the EA and the trade.
Therefore I did ask for the use of the ticketnumber.

Maybe there is another possibility, I did not yet taken into consideration?

Kind regards
Over60
If you want to use in your exampel for the next stack trade, there would be no problem you should only enter your next wished entry level .. if you would want only managing functions I would recommend to use the allPairTradeManager. As this EA is really only thought for setting hidden pending orders and controlling that they will never filled at prices you had not previsted...

Cheers :)

Tommaso
Author:  Haggadah [ Sun Oct 12, 2014 12:01 pm ]
Post subject:  TheHiddenPendingEA

milanese » Sun Oct 12, 2014 6:44 am wrote: If you want to use in your exampel for the next stack trade, there would be no problem you should only enter your next wished entry level .. if you would want only managing functions I would recommend to use the allPairTradeManager. As this EA is really only thought for setting hidden pending orders and controlling that they will never filled at prices you had not previsted...

Cheers :)

Tommaso

Think we are mixed up here with the allPairTradeManager and with that of hedging - creeping into this thread.

Would appreciate if you could incorporate an option for a different/higher lot for Stacking Trades.


Haggadah :youknow:
Author:  milanese [ Sun Oct 12, 2014 1:56 pm ]
Post subject:  [NewVersion]TheHiddenPendingEA

Haggadah » Sun Oct 12, 2014 12:01 pm wrote:


Would appreciate if you could incorporate an option for a different/higher lot for Stacking Trades.

Haggadah :youknow:
Here you go, you will find in post 1 the latest one attached, useLotForStackPositions for setting the wished Lotsize for stackposition this will have effect if there is more than one buy/sell trade found with the same magicnumber and UseStacking is activated.

Cheers :)

Tommaso
All times are UTC Page 6 of 49