The Hidden Pending EA

MPTM's new home
Post Reply
jauhar
Trader
Posts: 24
Joined: Wed Apr 17, 2013 6:08 pm

The Hidden Pending EA

Post by jauhar »

I think it would be useful to be able to trade only in one direction using UseCandleHighLowForInitial=true. This will allow entering into a trend after a retrace. Also a user-defined gap(in pips) above the High or below the Low will be a good addition.

Cheers,
Jauhar
Louisetano
Trader
Posts: 68
Joined: Thu Jan 01, 2015 9:42 am

The Hidden Pending EA

Post by Louisetano »

jauhar » Wed Mar 18, 2015 10:18 am wrote:I think it would be useful to be able to trade only in one direction using UseCandleHighLowForInitial=true. This will allow entering into a trend after a retrace. Also a user-defined gap(in pips) above the High or below the Low will be a good addition.

Cheers,
Jauhar
I second that :good:
That's how I've been using it
Over60
Trader
Posts: 153
Joined: Thu Sep 13, 2012 12:58 pm

The Hidden Pending EA

Post by Over60 »

Hi Doc and Jauhar,

thanks for your additional explanations and communication.
Btw, did anyone already used limit-pendings with the HP in conjunction with buy-/sell-pendings?

Over60
Over60
Trader
Posts: 153
Joined: Thu Sep 13, 2012 12:58 pm

The Hidden Pending EA

Post by Over60 »

In addition, limit-orders should be managed separately.

Actually, it makes no sense to use limit-orders with identical settings used together with buy-/stop-orders in the same instance.

I can place manually limit-orders to be managed by the APTM, but then without stacking functionality because of missing the appropriate magic-number, the HPEA needs to operate with stacking.

A numerical input like the buy-/stop-orders maybe could solve this request.
To make pending-limits visible, from my point of view, there is no need to manage limit-orders hidden.

Anyway I don´t know, if there are internal conflicts by the HP to manage stop- and limit-orders simultaneously with stacking feature in the same instance.

Maybe there is a script to place a buy- and/or a sell-limit-pending by default with an appropriate MN, the HPEA will recognize?
Last version by OOTB, MN = 0? @Milanese: Is that intended?

Such a script might be also helpful for initial-orders to create a corresponding magic-number the HPEA can work with.

Moving on…friends

Over60
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

The Hidden Pending EA

Post by milanese »

Over60 » Wed Mar 18, 2015 10:34 am wrote:In addition, limit-orders should be managed separately.

Actually, it makes no sense to use limit-orders with identical settings used together with buy-/stop-orders in the same instance.

I can place manually limit-orders to be managed by the APTM, but then without stacking functionality because of missing the appropriate magic-number, the HPEA needs to operate with stacking.

A numerical input like the buy-/stop-orders maybe could solve this request.
To make pending-limits visible, from my point of view, there is no need to manage limit-orders hidden.

Anyway I don´t know, if there are internal conflicts by the HP to manage stop- and limit-orders simultaneously with stacking feature in the same instance.

Maybe there is a script to place a buy- and/or a sell-limit-pending by default with an appropriate MN, the HPEA will recognize?
Last version by OOTB, MN = 0? @Milanese: Is that intended?

Such a script might be also helpful for initial-orders to create a corresponding magic-number the HPEA can work with.

Moving on…friends

Over60
MagicNumber=88987 this is the OOTB

if you want to use together on the same pair limit and stop orders you need two distances of the HPEA with different magicnumbers and you must deactivate in both manage all trades in this pair option..

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

The Hidden Pending EA

Post by milanese »

Louisetano » Wed Mar 18, 2015 8:59 am wrote:Hi,
Sorry for being dense.... :arrrg:
There are lots of settings in this EA which are great for the way I trade :good: , but I am only interested in trading in one direction. So I am not interested in the initial pendings set in both directions.
Which settings should I use to achieve this?? :? :?
:)
you should only select buy, or sell price, and select DeleteOppositeAfterFill to true and set stacking like you want.

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

The Hidden Pending EA

Post by milanese »

jauhar » Wed Mar 18, 2015 10:18 am wrote:I think it would be useful to be able to trade only in one direction using UseCandleHighLowForInitial=true. This will allow entering into a trend after a retrace. Also a user-defined gap(in pips) above the High or below the Low will be a good addition.

Cheers,
Jauhar
I will add this with the next update, thanks for the idea..

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Over60
Trader
Posts: 153
Joined: Thu Sep 13, 2012 12:58 pm

The Hidden Pending EA

Post by Over60 »

Hi Milanese,

thanks for your support and comments.

Even with an additional Empty4-instance, I´d prefer to place limit-orders numerically, like the buy-/sell-stops, instead of pip-distance to price on the top- or bottom-levels of any range, which differs bidirectional by the distances.

Thanks and moving on ...

Over60
jauhar
Trader
Posts: 24
Joined: Wed Apr 17, 2013 6:08 pm

The Hidden Pending EA

Post by jauhar »

milanese » Wed Mar 18, 2015 2:50 pm wrote:
jauhar » Wed Mar 18, 2015 10:18 am wrote:I think it would be useful to be able to trade only in one direction using UseCandleHighLowForInitial=true. This will allow entering into a trend after a retrace. Also a user-defined gap(in pips) above the High or below the Low will be a good addition.

Cheers,
Jauhar
I will add this with the next update, thanks for the idea..

Cheers :)

Tommaso
Hi Tommaso,

Thanks for your time and support. In the proposed update, after we are able to trade in one direction using UseCandleHighLowForInitial=true, I think the SetNewEveryNextIfNotFilled=true behavior should also change accordingly. When a new bar forms and the order is not yet filled, it should move the pending price of buy stop to previous candle High ONLY when the previous bar is DOWN. Because when it is UP, it is already moving towards the pending price. Also for sell stop, the pending price should move to previous bar Low ONLY when the previous bar is UP.

Cheers,
Jauhar
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

[update!!] The Hidden Pending EA

Post by milanese »

march 18th,2015
update adding a CandleHighLowBuffer set this to the pips the price must supperate the candle high/low to get the order filled
New you can select if you want only use the High or the Low or both for the useCandleHighLowForInitial
function, note this functions is only for the first EA trade valid (if there is no other trade on the symbol with the EA magicnumber open) and overrides in that case your other settings.
SetNewEveryNextIfNotFilled will only move the pending prices if the last high was lower and vice versa.. see ---> http://www.stevehopwoodforex.com/phpBB3 ... 54#p117654
too some little fixes done in the code

Pelase download the latest version build 168 from the first post.

Thank you all for your contributions! Your ideas make this toy always more usefull and flexibel..

Cheers :)

Tommaso
jauhar » Wed Mar 18, 2015 11:30 am wrote:
Hi Tommaso,

Thanks for your time and support. In the proposed update, after we are able to trade in one direction using UseCandleHighLowForInitial=true, I think the SetNewEveryNextIfNotFilled=true behavior should also change accordingly. When a new bar forms and the order is not yet filled, it should move the pending price of buy stop to previous candle High ONLY when the previous bar is DOWN. Because when it is UP, it is already moving towards the pending price. Also for sell stop, the pending price should move to previous bar Low ONLY when the previous bar is UP.

Cheers,
Jauhar
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Post Reply

Return to “Utilities Indicators and Scripts”