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

The Hidden Pending EA
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3573
Page 12 of 49
Author:  Over60 [ Tue Dec 02, 2014 3:39 pm ]
Post subject:  TheHiddenPendingEA

Hi Fibotrend,

If you use the option move opposite order and the trailing function or bidirectional trading by default, you have what you requested.
It is more advanced and dynamical, than applying a fixed resp. static OCO-level, where you close in loss, if price turns.
Anyway you can define the price in the settings, where long or short should start.

Hi Milanese,

I´d like to ask some question concerning the below mentioned settings for clarification.
Maybe these functions are explained elsewhere.

1. TicksToCount (OOTB = 5) For what does it serves?

2. RequiredMarginPercentile (OOTB = 1.000)
Does it mean Margin-Level = 1000%?

I assume, that the parameter serves for security purposes in that way, if margin-level (margin call level) will be <= 1000%, the EA will stop to enter new orders?

3.Further on, I tried the JSL-function with small distances to trail and watch this new function.

BEProfit = 5 Pips

JumpStep = 5 Pips

SLMinDistanceToPrice = 35 Pips

(this SL-setting should be only serve as an emergency SL in the starting period, if price turns the directions before hit BE = 5 Pips > Entry).

But it seems to me, that the JSL (> 5 pips in profit) did not move by this example to the entry-level.
Maybe there are a conflict with the emergency stop in the example.
If BE-Level > entry is hit, the JSL should positioned at the entry-position and simultaneously the emergency-stop has to be erased.

This condition and loop should work also and always, as Long and if a new pending in price-direction were opened long or short.

If the price performs, the JSL has to jump in reference and according to the previous order, depending on the defined distance at the same level, and if the new order e.g. moves also 5 Pips into profit (at BE-level of the new order) and if the condition hit, both orders now should be protected at the same JSL-level.

With other words, if the JSL in order-direction is triggered and already working, as a condition, there is no need for the emergency-stop for further triggered orders and for new entries, because the JLS has to work and move for all new open orders (open end) in that direction.

Might be, that my settings are wrong?

Moving on…

Trade well my friends
Over60
Author:  milanese [ Tue Dec 02, 2014 4:08 pm ]
Post subject:  TheHiddenPendingEA

Hi Over60,

thanks for your questions!
TicksToCount (OOTB = 5) this is used for the automatic allowed spread calculation, it means the allowed spread will all five ticks be new calculated, here is better a higher value if you want to avoid high spread phases to trade like 200 or 300..

RequiredMarginPercentile (OOTB = 1.000) this is the need min marginlevel for opening positions, OOTB it as set to 1000% what imo is a good setting
Further on, I tried the JSL-function with small distances to trail and watch this new function.

BEProfit = 5 Pips

JumpStep = 5 Pips

SLMinDistanceToPrice = 35 Pips
The jumpingSL function with your setting will work like this exp.:

entry is 1.25000 SELL
BE will be set when price is 1.24690 BE will be 1.24950.


next jump step will be at 35+5 pips so with a price 1.24290 new SL will be 1,24900

I hope this answers your questions.

Cheers :)

Tommaso
Author:  Fibotrend [ Tue Dec 02, 2014 10:49 pm ]
Post subject:  TheHiddenPendingEA

Over60 » Tue Dec 02, 2014 3:39 pm wrote:Hi Fibotrend,

If you use the option move opposite order and the trailing function or bidirectional trading by default, you have what you requested.
It is more advanced and dynamical, than applying a fixed resp. static OCO-level, where you close in loss, if price turns.
Anyway you can define the price in the settings, where long or short should start.
Hi Over60,

thank you for your reply, however I don't think that answers my request. I wasn't referring to opposite orders.

Hi Tommaso,

would it be possible to have a summary of all inputs with some more description.

Cheers
Author:  milanese [ Wed Dec 03, 2014 12:06 am ]
Post subject:  TheHiddenPendingEA

Fibotrend » Tue Dec 02, 2014 10:49 pm wrote:
Over60 » Tue Dec 02, 2014 3:39 pm wrote:Hi Fibotrend,

If you use the option move opposite order and the trailing function or bidirectional trading by default, you have what you requested.
It is more advanced and dynamical, than applying a fixed resp. static OCO-level, where you close in loss, if price turns.
Anyway you can define the price in the settings, where long or short should start.
Hi Over60,

thank you for your reply, however I don't think that answers my request. I wasn't referring to opposite orders.

Hi Tommaso,

would it be possible to have a summary of all inputs with some more description.

Cheers
if you read the first post and follow all links you should have an idea about the inputs (if not ask what input is not clear for you). And maybe explain better the function you want added, best with some exampel, than I can understand what you want..
Cheers :)

Tommaso
Author:  Fibotrend [ Wed Dec 03, 2014 12:54 pm ]
Post subject:  TheHiddenPendingEA

if you read the first post and follow all links you should have an idea about the inputs (if not ask what input is not clear for you). And maybe explain better the function you want added, best with some exampel, than I can understand what you want..
Cheers :)
That's right, let's say for example you set your long order at 1.250; however you miss the trade because the order isn't filled due to a spike/gap/spread too big. In this case it would be useful to have an option to set a second order in the same direction at a higher level, let's say 1.300. The second order would be xxl if the original is filled. I hope it does make sense :smile:

Cheers
Author:  milanese [ Wed Dec 03, 2014 1:00 pm ]
Post subject:  TheHiddenPendingEA

Fibotrend » Wed Dec 03, 2014 12:54 pm wrote:
That's right, let's say for example you set your long order at 1.250; however you miss the trade because the order isn't filled due to a spike/gap/spread too big. In this case it would be useful to have an option to set a second order in the same direction at a higher level, let's say 1.300. The second order would be xxl if the original is filled. I hope it does make sense :smile:

Cheers
I see now your point, I am curious what other thing about this optional..

Cheers :)

Tommaso
Author:  Fibotrend [ Wed Dec 03, 2014 1:50 pm ]
Post subject:  TheHiddenPendingEA

I see now your point, I am curious what other thing about this optional..
I think the EA should have an extra input to enter the distance in pips from the primary order; TP/SL can stay the same I guess. Just trying to keep things simple :) Thank you
Author:  Over60 [ Thu Dec 04, 2014 10:28 am ]
Post subject:  TheHiddenPendingEA

Hi Milanese,

Thanks for explanation, but sorry, I´m still a little bit confused, concerning testing the JSL-feature-settings. In advance, there are a lot of possibilities and misunderstandings in the way a JSL or trailing-stop should work.

Given the standard-SL is already defined and will positioned, let me say e.g. 30 pips away in reference to any entry.
This SL-setting is indicated by the EA in the terminal and in the chart, if the pending is entered.

The first question, if this primary SL will be substituted by activating the JSL-setting?

The already defined standard SL (not that one in the JSL-setting defined as “SLMinDistanceToPrice”) has been placed first 30 Pips away from entry.
If price moves 5 pips > entry into profit as a condition to jump, the JSL by definition now should jump + 5 pips to 25 pips closer to entry. It’s the classic version used with single-orders.
Now the SL has to be located 25 pips from entry, if the parameter SLMinDistanceToPrice is not used and set =”0”.

By a second test, I defined the SLMinDistanceToPrice = 10 Pips and I expected,
that the SL should jump < 10 Pips in regard to BE, if price move > Entry + 5 Pips.
Now the SL should be located at 5 pips < entry by definition.
The SL jumped, but was also located 10 pips < entry.

I used also stacking and furtheron the second pending did enter and moved also > 5 pips to BE.
The JSL for the second/new order did work in the same manner, but the SL of the first order remains locked in the latest moved position, it did not jump/trail together with the new order to the new common SL-position, triggered by the second order, although the conditions did match.

With other words and referring e.g. two orders performing in profit and hitting BE, the SL-positions for both orders should be equal at the same position, but they differ.

Maybe you can check this.

Thanks in advance

Kind regards
Over60
Author:  milanese [ Thu Dec 04, 2014 10:33 am ]
Post subject:  TheHiddenPendingEA

Over60 » Thu Dec 04, 2014 10:28 am wrote:Hi Milanese,

Thanks for explanation, but sorry, I´m still a little bit confused, concerning testing the JSL-feature-settings. In advance, there are a lot of possibilities and misunderstandings in the way a JSL or trailing-stop should work.

Given the standard-SL is already defined and will positioned, let me say e.g. 30 pips away in reference to any entry.
This SL-setting is indicated by the EA in the terminal and in the chart, if the pending is entered.

The first question, if this primary SL will be substituted by activating the JSL-setting?

The already defined standard SL (not that one in the JSL-setting defined as “SLMinDistanceToPrice”) has been placed first 30 Pips away from entry.
If price moves 5 pips > entry into profit as a condition to jump, the JSL by definition now should jump + 5 pips to 25 pips closer to entry. It’s the classic version used with single-orders.
Now the SL has to be located 25 pips from entry, if the parameter SLMinDistanceToPrice is not used and set =”0”.

By a second test, I defined the SLMinDistanceToPrice = 10 Pips and I expected,
that the SL should jump < 10 Pips in regard to BE, if price move > Entry + 5 Pips.
Now the SL should be located at 5 pips < entry by definition.
The SL jumped, but was also located 10 pips < entry.

I used also stacking and furtheron the second pending did enter and moved also > 5 pips to BE.
The JSL for the second/new order did work in the same manner, but the SL of the first order remains locked in the latest moved position, it did not jump/trail together with the new order to the new common SL-position, triggered by the second order, although the conditions did match.

With other words and referring e.g. two orders performing in profit and hitting BE, the SL-positions for both orders should be equal at the same position, but they differ.

Maybe you can check this.

Thanks in advance

Kind regards
Over60
Hi Over 60,

the JSL is so far only active if your position is in win, after the BE is set (reread my exampel posting). If you want a JSL that moves not only , if the single trade is profit, let me know, too it will only move the SL from a single trade not all SL. As the trailing SL feature is no PairBasket feature, but only a feature for only single trade.
Hope this explains it somewhat better. Let me know what exactly you are missing here, best with concret examples and I will take a look if I can adpat the EA to your wishes :xm:

Cheers :)

Tommaso
Author:  Over60 [ Thu Dec 04, 2014 12:28 pm ]
Post subject:  TheHiddenPendingEA

Hi Milanese,

Sorry, I did expect that this feature works already for multiple orders dynamically (as a PairBasket feature) and not only once and independent for each entered single order, without further activities.

At the moment, the JSL remains locked in the first entered position, if it was triggered by definition and it works only subsequently in reference to each new order entered.

We have the automatic stacking feature to stack orders if price moves in the designated direction.
The defined SL or JSL, later which can defined closer, if the conditions hit, will stay locked in the first entered and origin position and serves as a security- or emergency- stop, if price turns resp. reverse.

I can place pendings (grid) by discrete trading in any designated price-direction.

Hopefully, when the price moves in any designated direction and will hit and enter pending by pending and moves into profit (how I did explain recently, concerning spikes).
It is the manual procedure, similar as stacking positions automatically.

If I´m live and online and price moves into profit, I can move/adapt each SL for each order to a common and protected location according to the price progress, preferable in profit.
But what about being absence?

Now, I expect in a similar way, how the EA should perform. For a single order, the SL will trail or jump X-pips in price-direction.
In the terminal for each order, I can e.g. define a trailing-stop. If in profit, it will work and follow the price pip for pip, but there is no space for price-oscillation. That’s the reason to use a JSL, to give the price more space to breath, even not in profit.

I will try to explain it with simple words, what the EA should do in the same manner as manually.
The definitions (parameters) are known, the EA has to supervise and compare the SL-definitions for all working orders in reference to their position and in reference to the actual price, by a defined time cycle (loop).
If price moves furtheron into profit in the defined settings, the EA has to adapt all working orders in order direction to the same stop-level, even the stop-level still might be < entry.

Hope that helps for clarification.

Kind regards
Over60
All times are UTC Page 12 of 49