The Hidden Pending EA

MPTM's new home
Post Reply
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

[New version]TheHiddenPendingEA

Post by milanese »

31 jan. 2015
New is there a PartClose as First TP function. You can select this if you have PartCloseEnabled set to true and PartCloseAsFirstTP set true. PartCloseFirstTpPips set here the pips the order must be in win for the PartClose. Note there will be set no BE nor the SL will be moved, simply a partclose will be done.
New is too the possibility to deactivate all ATR inputs with one input this was asked from useres for making the ATR functions more easy to handle DoNeverUseATR set this to true, and the EA will use all your manual inputs, if it is set to false, you can select which calculation you want done by ATR and for which you want to use your manual inputs.
As always ask, if you have problems to understand all functions..

New version Y is attached to the first post

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

TheHiddenPendingEA

Post by Over60 »

Hi Milanese,

Big thanks for the new version and improvement concerning Partial Close at First-TP-level.

For followers and newbies some Information for better understanding:

We can attach the ATR-indicator, which is available on Empty4 as a basic-indicator (oscillator).

In the upper left corner of the indicator-window it indicates the actual volatility in pips.

It will not used for price direction (trend), but we can trail and recognize the trading-hours with high or low volatility.

The multiplicator in the EA-settings means, how it calculate the pip-distances for TP, PC and SL automatically.

It is an oscillator, so it will move permanently, depending on the volatility over a certain defined period and timeframe

Therefore the question concerning the ATR-feature.
Does the ATR works dynamically according to actual volatility?

Is there EA-internal any routine to adapt the vola-values dynamically or does the ATR use the starting values, when the EA has been attached or a new order has been filled?

I assume it will work dynamically, anyway it would not make sense?

There is a new function "manageAllTradesin This pair".

Does the EA, if attached, will manage also already working orders of the appropriate pair?

If the EA is running, what about market-orders, manually entered?

Trade well my friends

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

TheHiddenPendingEA

Post by milanese »

Over60 » Sun Feb 01, 2015 8:48 am wrote:Hi Milanese,

Big thanks for the new version and improvement concerning Partial Close at First-TP-level.

[hide]For followers and newbies some Information for better understanding:

We can attach the ATR-indicator, which is available on Empty4 as a basic-indicator (oscillator).

In the upper left corner of the indicator-window it indicates the actual volatility in pips.

It will not used for price direction (trend), but we can trail and recognize the trading-hours with high or low volatility.

The multiplicator in the EA-settings means, how it calculate the pip-distances for TP, PC and SL automatically.

It is an oscillator, so it will move permanently, depending on the volatility over a certain defined period and timeframe[/hide]
Therefore the question concerning the ATR-feature.
Does the ATR works dynamically according to actual volatility?

Is there EA-internal any routine to adapt the vola-values dynamically or does the ATR use the starting values, when the EA has been attached or a new order has been filled?

I assume it will work dynamically, anyway it would not make sense?

Trade well my friends

Over60
Hi over60,

sure all ATR calculations work dynamicly , you will see this in the UserIfno as there are some values shown, that will change dynamicly, this depends naturaly from the ATR settings selected by the user, longer ATR periods will less change, than shorter ones. That is why the EA has for each operation seperat ATR inputs disponible to give the highest possible flexibility for the user. The new version of the APTM that I am coding will too have this features.
The only thing that will not change are the inital order(s) if calculated with ATR, they will rest as the are set with initializing the EA, for having new ones with actual ATR calculated you have to re-initialize the EA.

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

TheHiddenPendingEA

Post by Over60 »

Hi Milanese,

Thanks for your reply.

Do we have to change the magicnumber by re-initalize to incorporate new Initial orders?

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

TheHiddenPendingEA

Post by milanese »

Over60 » Sun Feb 01, 2015 9:34 am wrote:Hi Milanese,

Thanks for your reply.

Do we have to change the magicnumber by re-initalize to incorporate new Initial orders?

Trade well
Over60
if there are no open positions with the actual magic number no, if you have open positions, they will be recognized and the pending orders will be set using the open positions...

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
olambeth
Trader
Posts: 10
Joined: Tue Jan 06, 2015 12:26 pm

TheHiddenPendingEA

Post by olambeth »

Hi Tommaso,

You've probably seen me popping up in a few of your EA threads. Sorry if I seem like I'm skipping about, I'm just testing these out to find the most ideal one for my strategy (aren't we all!).

Following on from Over60's question about market entry; would there be a way to turn off the pending order function, perhaps it defeats the purpose of the EA however I like the simplicity of the SL and TP function with ATR and the stacking option.

The difficulty I have with both the HP and APTM is switching time frames; I would like my EA settings to be based on H1 TF levels including ATR however I will always switch down to M5 TF for market entry. How would you kindly suggest getting round this if I cannot switch timeframes when entering on the M5 TF?

Again thank you for your support and apologies for the annoying questions!!

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

TheHiddenPendingEA

Post by milanese »

olambeth » Sun Feb 01, 2015 11:16 pm wrote:Hi Tommaso,

You've probably seen me popping up in a few of your EA threads. Sorry if I seem like I'm skipping about, I'm just testing these out to find the most ideal one for my strategy (aren't we all!).

Following on from Over60's question about market entry; would there be a way to turn off the pending order function, perhaps it defeats the purpose of the EA however I like the simplicity of the SL and TP function with ATR and the stacking option.

The difficulty I have with both the HP and APTM is switching time frames; I would like my EA settings to be based on H1 TF levels including ATR however I will always switch down to M5 TF for market entry. How would you kindly suggest getting round this if I cannot switch timeframes when entering on the M5 TF?

Again thank you for your support and apologies for the annoying questions!!

Oli
try the new APTM it has this simplicity new too, I have published a completly revised version ---> http://www.stevehopwoodforex.com/phpBB3 ... =21&t=3482
It should offer you what you ask!
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

TheHiddenPendingEA

Post by Over60 »

Hi Milanese,

In the thread of the “SimpleAllPairBasketManager”---> http://www.stevehopwoodforex.com/phpBB3 ... =21&t=4081 I discovered a new function, I missed similar for the HP.

It happens that all open orders of a pair were closed, but the HP did not restart/reactivate to reset by placing pendings once again in both directions, considering the basic settings.
Only the latest performed pending remains until the HP was re-initialized manually.

It´s similar to the control-function the HP performs, if there are already opened positions, to avoid further stacking in that direction, if the price turns intermediately.

The function might be, that the HP recognize that there are no open orders and will reset automatically,
if set to true.

Moving on …

With kind regards

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

TheHiddenPendingEA

Post by milanese »

Over60 » Fri Feb 06, 2015 8:40 am wrote:Hi Milanese,

In the thread of the “SimpleAllPairBasketManager”---> http://www.stevehopwoodforex.com/phpBB3 ... =21&t=4081 I discovered a new function, I missed similar for the HP.
It happens that all open orders of a pair were closed, but the HP did not restart/reactivate to reset by placing pendings once again in both directions, considering the basic settings.
Only the latest performed pending remains until the HP was re-initialized manually.

It´s similar to the control-function the HP performs, if there are already opened positions, to avoid further stacking in that direction, if the price turns intermediately.

The function might be, that the HP recognize that there are no open orders and will reset automatically,
if set to true.

Moving on …

With kind regards

Over60
what you would want the HP to do in that case? I see not your point so far, sorry?

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

TheHiddenPendingEA

Post by Over60 »

Hi Milanese,

Please find attached a screen shut, what I mean (EURUSD, TF = M15).
All open orders were closed, but the pendings green and red remains in their position.

Will stay tuned …

With kind regards
Over60
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Utilities Indicators and Scripts”