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

The Hidden Pending EA
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3573
Page 5 of 49
Author:  Haggadah [ Sat Sep 20, 2014 10:51 am ]
Post subject:  TheHiddenPendingEA

milanese » Wed Sep 17, 2014 10:27 am wrote:
Over60 » Wed Sep 17, 2014 8:22 am wrote:Hi Milanese,

Sorry by the way from an battle-scarred veteran.

The problem with RR has been solved for stop-orders.

Different price-distances for Risk-Reward (RR) works, if SetAutopendingStopBuy or SetAutoPendingStopSell is set to false, with input of manual price by PendingPriceBuy or PendingPriceSell.
But for the limitpendings-buy and -sell, there is no variable for the price-input like with the stop pendings available.
Might be solved by a switch, 1 = stop-orders, 2 = limit orders or by additional variables, to avoid misunderstandings in reference to the definition and function of limit-pendings.
Furthermore I miss a visual indication for TP and SL (hidden), actually not visible in the chart,
resp. only defined in the settings.

Trade well my friend
Over60
Hi Over60,

yes TP/Sl are not shown in the chart as I use the hidden pending EA always with the allPairTradeManager and as I wrote before I myself do not use hidden SL/TP.., but I have noticed all your inputs and they are considered for a new version, thank you for your inputs and your testing! Maybe others here will too have some ideas to implant in further versions..

Cheers and good trades :)

Tommaso

Hi Milanese,

Here is another input for consideration - a different lot for add-on trades.

Thank you,

Haggadah
Author:  milanese [ Sat Sep 20, 2014 10:58 am ]
Post subject:  TheHiddenPendingEA

What I don´t know and could not trail yet, what will happen, when an order was rejected (by reqoute). Does the TM tries to open (or close) an order (…how many times) or does the “spread control” prevent completely further ordering?
if the spread is higher than the allowed spread then the EA will not open a position this is exactly used fro not entering orders with much differences to the price defined by the user, what can happen with Empty4 pending orders.

Cheers :)

Tommaso
Author:  Over60 [ Tue Sep 23, 2014 7:21 am ]
Post subject:  TheHiddenPendingEA

Hi Milanese, Hi Traders,

In one of my previous posts I did pronounce to pick up something about trailing.

The common used trailing stops are the:

TSL = Trailing stop loss
JSL = Jumping stop loss

Many traders prefer to use the JSL instead of a straight automatic trailing stop similar provided in the terminal of Empty4. But we have to consider that the Empty4 build in standard trailing stop is usually limited to 15 pips distance to the actual price by the criminals, which might be a big handicap in certain scenarios, so there is a need for an EA.
Furthermore trailing is also used, to dispense the use of TPs, to remain in the market as long as possible (with open end).

Concerning Steve´s MPTM, it provides already some additional trailing features e.g. to start trailing instantly or after hitting BE and so on…

Please refer to Steve’s instructions in detail

http://www.stevehopwoodforex.com/phpBB3 ... =MPTM#p516

BTW: In the meantime “Steve” did pronounced a revised version of the MPTM.

Experienced traders, who are bother with trailing issues will confirm, that advanced trailing technics in conjunction with order- and trade-management might become very complex and complicated by:

- managing and stacking multiple orders by different conditions
- considering risk-and money-management
- using partial-profit
- using hedge-pendings or recovering features
- trailing by using different conditions in the sense of using certain kind of intelligence as recently introduced by Milanese for the “Allpairtrademanager”.

Refering trailing, there are a lot of possibilities to consider.

Most of the TM´s do not provide e.g. a dynamic function in reference to the already performed price-/pip-movements.
E.G, does it makes sense, to stack e.g. further orders with equal distances also using equal trailing stops, if e.g. the hourly or daily move, resp. volatility has been already performed at the hourly or daily volatility maximum?
That was one of the reason I asked for variable distances by stacking orders and adapting the trailing.
“Bob” (11.0) did also request a similar TM-feature to manage the trailing of a single order, by using trailing-conditions in reference to the pip-movement. Maybe he will have a glance at the “HiddenpendingEA”.

Only for Inspiration...

Trade well my friends
Over60
Author:  Over60 [ Sat Oct 04, 2014 7:00 am ]
Post subject:  TheHiddenPendingEA

In addition to the previous post, I hope it is not boring?

I talk about trailing, to communicate experiences and inspirations for engaged coders.

Most of the most successful senior traders (e.g. traders world-championship) did bother themselves very intensive with money- and order- management.

Traders can use stops (SL, BE, TP) for protect orders, running into loss or profit.

The common known methods are:

- pyramiding or scale in and out, stacking trades, when a trade run into profit
- take BE and partial profit contemporary
- trail trades as long as possible (with open end)

But considering, most of the money-management-theories did develop in the area of trading Shares. Please refer e.g.to the “Kelly-criterion” or the “fixed-ratio-method”. One other method was the famous “turtle-experiment”.

Basically FX is a 50:50 game, because in comparison to the stock market, there are only few fundamental data to predict the very fast market movements with an edge. On the other side, we should consider the high leverage, used by the small traders trading FX.
In comparison: The commercial hedgers and large traders are not focused to trade 4 or 5 digit-movements with high leverage.

The big guys buy and sell futures (options) for international companies to compensate currency fluctuations. With simple words, they do not have the high risks, concerning price oscillations on the 4th digit. We should that keep in mind.

In the field of FX, there are experiments with random entries and exclusive money management.
These methods were profitable, but did work with sometimes very big drawdowns.
Therefore in summary, it might be worth to bother with the a.m. issues.

I did already mentioned, that some kind of automatic trailing might be complex and needs dynamic processing. E.g. if price will move at the daily maximum price-movement, the SL-levels, the volatility and momentum will slow down or vice versa accelerate. In consequence the trailing stop-distances has to be adapt dynamically.
Have a glance to the functionality and description of the “TrailingRunningKnot”-EA in the b.m. link.

For additional information about trailing EA´s please refer to:

http://forex-strategies-revealed.com/mt ... g-stop-eas

Below you will find attached a collection of some trailing EA´s, but take care before use, due to build 6XXX malfunctions, I did not checked.

http://www.forexfactory.com/showthread.php?p=4618597

Anyway, in most of the trade-manager, we still miss some conditions-tasks or call it artificial intelligence.

For example…

Quoting Milanese:

“ UseHighLowForMovingSteps=True if this is set true the trademanager will use the distance form H/L of the last five candles to move the SL this for a better managing of open positions in win, so the SL jumps in profit will be analog to the price movement, here is too used BEPercentSLIncrement for the % calculation of the high/low distance.
Now the trademanager has a certain "intelligence" in moving the SL.”
Milanese (also “Steve” MPTM) did implement the a.m. trailing module (algo), considering the market move (HL-candle-control for a defined 5 candle period) and in addition supervising the main trend with the LWMA240.

For myself, for supervising trends during daytrading and for scalping, I`d prefer in almost every timeframe the SMA20 up to SMA60. These MA´s are reliable, depending on the appropriate volatility of the appropriate pair and timeframe, especially during the starting period after entering an order.

BTW: Followers of Heikin-Ashi-candles prefer two MA´s (SMA5 high and SMA5 low) in the faster timeframes (e.g. M15). As long as the HA-candles moves with the trend, resp.in accordance with the SMA-direction, not touching the opposite MA with the body, the trend will be still stable and continued. In conjunction with a volatility-channel indicator (for locating turning points), such as Bollinger or TMA and considering support/resistance-levels in the upper timeframes, it might be worth a try.

For order-management and especially trailing we basically have to consider further basic indications (conditions) for decision making:

- TrendFilter (e.g. Moving averages, CSS)
- TimeFilter (by trading-hour, duration- or expiration-time)
- Money-Management Control
- Volatility-Filter (such as ATR, Bollinger, TMA …)
- Volatility control by hourly maximum volatility or maximum volatility per weekday
- Momentum
- Volume-Filter*
- Oscillators like Stoch, RSI, Williams%, CCI, MACD or whatever choice
- Candle-pattern and/or formation-signals
- Fibonacci- and /or pivot-levels
- levels of support and resistance

*Volume: amount of transactions, not real traded volume.
For volume please refer to the future-market.
The a.m. list is only a short briefing of indications and used for example.
Some of the features are already realized in TM´s, but sometimes not easy to handle.

BTW: Please take into account, that there exists a general misunderstanding referring independent events in the field of probability calculations resp. future predictions.
To assume that more indications used, the success-rate in reference to the probability would increase, is erroneous.
With simple words, independent probabilities have to be multiplied, instead of adding.

An alternative might be a decision model maker, like a todo-list.
Interested traders please google for decision-making models and details, because it goes beyond the scope of the issue.
With other words, we can use any criteria, we can evaluate for e.g. a long- or short-move with “1”.
It is even not mandatory to ask exclusively for measurable values.

Examples:

E.g., we ask if the price is above the SMA20.
If it is, than count = 1 for long and vice versa for short = 1, using two global variables. Any oscillator indicates short, than count = 1 for short. If the price-movement did arrived long an expected maximum value (turning point), than Count = 1 for long. Analog procedures, whatever events we like to consider for long or short.

In the next step by considering the success-/hit- rate concerning different conditions, we can weight differently each criteria, instead of “1” use “2” or “3” by the amount of recorded hits, any event did perform in the past (like the fuzzy-logic method).
An advanced operation might be to weight the criteria by percent (after empirical data analysis).
We even can recognize certain relationships, which maybe occurs with a certain probability in combination.

Unfortunately Empty4 does not provide a data-recorder and data-output for certain statistical purposes and Analysis. To misuse the strategy tester for similar tasks will not supply valuable results.

In reference to the MPTM-, the hidingpending- and allpairtradingmanager-EA, one of the question remains, if it might be an advantage, to use TM-EA´s separately for special purposes (KISS).

A further question, I´d like to ask: Is there any Empty4-build-in-function to open resp. to access to a further EA or script automatically (to interact each other), if a defined condition will match?

Have a nice weekend
Over60
Author:  milanese [ Sat Oct 04, 2014 7:59 am ]
Post subject:  TheHiddenPendingEA

Hi Over60,

thanks for your post, showing many interesting points of the problematic, how to move the SL right in relation to the dynamic of the movement. The allPairTradeManger http://www.stevehopwoodforex.com/phpBB3 ... =21&t=3482 is a project trying im implent a certain dynamic in the movement of SL and too in the intial setting of SL and TP. New there are too th first basket mangement options integrated for giving again more flessibility.
I personally think that using the volatilty as base for the movements is the best, maybe some combination with a stochastic could give too interesting and maybe better results I am working on this, and happy about all input from experienced users to make this trademanager always better.

Cheers :)

Tommaso
Author:  Over60 [ Sat Oct 04, 2014 1:53 pm ]
Post subject:  TheHiddenPendingEA

Hi Milanese,

Thanks for your reply.

Sorry, I did overlook the new allpairtrademanager version plus.

Thanks that the previous version is still remaining in the thread, to compare and trail the improvements.
The amount of useful indicators used for decision-making might be incredible and depends also partly on traders philosophie.
Your statement to trail the volatility I highly confirm.
But the mql-problems to interact in addition with different criteria are obvisiouly.
Please find attached a simple decision-matrix to demonstrate about what I talk.

For further vola-information, I will give once again a link for the hourly- and daily-volatilities, resp. price-action.

http://www.forex-tribe.com/Forex-Volatility.php

But don´t adhere only in reference to the vola, as long it is not used dynamically and in conjunction with further criteria. That’s the point, where problems initiate.

As far as I know as a “none coder”, mql has huge handicaps to manage to many settings for variables by managing tables (arrays).
On the other side, the variables has to be adapted continuously time by time, because the vola will change permanently (FYI: find below a pdf-link).
For the hourly volatility we would need still 24 settings for the hourly variable and five for the weekdays.

Attached further links in addition to provide more insight-experience:

http://www.forexfacile.it/wp-content/up ... oTrade.pdf

http://www.forexmt4.com/_Empty4_Systems%20 ... Action.pdf

Whether we talk about the term volatility or price-action, from my point of view it is almost the same.
What I still miss is an indication to measure the momentum real-time applying different criteria.
The accelerator introduced by “Williams” and used by “Bob” (11.0) does not work very viable in the faster timeframes, because the calculation is not very accurate using …

SMA — Simple Moving Average and
AO — Awesome Oscillator

Might be time for a new indicator, to consider further criteria with more intelligence.
But I´m afraid, that mql will not manage and provide such advanced requirements.
Anyway this is another issue.

Years ago, the coder “7Bit” at FF did mention, that he prefer to code with classic “PASCAL”, but don´t ask me, how he implemented such external coded routines.

https://sites.google.com/site/prof7bit/snowball

It´s the same issue as I asked for corresponding resp. interacting EA´s.
Seems to me a long way to go.

I assume coders will understand what I mean.
Stay tuned.

Cheers
Over60
Author:  Haggadah [ Mon Oct 06, 2014 2:57 pm ]
Post subject:  TheHiddenPendingEA

Hi! Melanese,

Just want to confirm if the creteria: DeleteOppositeAfterFill=false will trigger a trade in the opposite direction which I supposed it will if prize turn around after initial fill from the other side. I never encounter it is trading in the opposite direction.

Haggadah
Author:  milanese [ Mon Oct 06, 2014 4:59 pm ]
Post subject:  TheHiddenPendingEA

Haggadah » Mon Oct 06, 2014 2:57 pm wrote:Hi! Melanese,

Just want to confirm if the creteria: DeleteOppositeAfterFill=false will trigger a trade in the opposite direction which I supposed it will if prize turn around after initial fill from the other side. I never encounter it is trading in the opposite direction.

Haggadah
Yes this is right, it can trade too in the opposite direction, depends on your settings.

Cheers :)

Tommaso
Author:  Haggadah [ Tue Oct 07, 2014 7:36 pm ]
Post subject:  TheHiddenPendingEA

milanese » Mon Oct 06, 2014 5:59 pm wrote: Yes this is right, it can trade too in the opposite direction, depends on your settings.

Cheers :)

Tommaso
Thank you.
Author:  dydynamic [ Fri Oct 10, 2014 4:44 pm ]
Post subject:  TheHiddenPendingEA

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