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 +

TheHiddenPendingEA

Post by milanese »

Hi Peter,

Over60 is right as the HPEA is a helper for different manual and hedging strategies, it makes normaly no sense to use the EA on 28 pairs, as it will be very difficult for you to follow all pairs...
Try to understand the EA in using it on one pair, maybe with different settings to understand better the functions, and to understand how to embed the HPEA in your strategies. Ask any questions here, as there will be for sure always someone to share his/her experiences with 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
DocT
Trader
Posts: 149
Joined: Mon Apr 23, 2012 9:44 am
Location: Aberdeen

TheHiddenPendingEA

Post by DocT »

Tommaso and other coders

I have been searching through the threads to find a simple tool to use in manual trading - an OCO EA to use on M15 charts (any TF would work if TF defined for candle). This would ideally place OCO pending trades above the High/Low of the previous candle - when one is triggered the other is cancelled. It would have a simple TP and SL of x and y number of pips and perhaps a JS or trail stop to catch a move.

I have looked at the HPEA which does not have candle inputs and The Script for Placing Pending orders which is candle based but two separate scripts.

Following a PM with Tommaso, he said to put my request in the thread and as it could be added to the hiddenPendingEA as a new entry option, setting the pending order on the previous candle/highlow ( and a user selctable EntryBuffer). Also in theory the EA could, if user wishes and pending was not filled, delete the old hiddenPendings and set new ones on the next candle h/l...

Thanks for your considerations.
Doc
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

TheHiddenPendingEA

Post by milanese »

taggie11 » Mon Feb 23, 2015 7:32 pm wrote:Tommaso and other coders

I have been searching through the threads to find a simple tool to use in manual trading - an OCO EA to use on M15 charts (any TF would work if TF defined for candle). This would ideally place OCO pending trades above the High/Low of the previous candle - when one is triggered the other is cancelled. It would have a simple TP and SL of x and y number of pips and perhaps a JS or trail stop to catch a move.

I have looked at the HPEA which does not have candle inputs and The Script for Placing Pending orders which is candle based but two separate scripts.

Following a PM with Tommaso, he said to put my request in the thread and as it could be added to the hiddenPendingEA as a new entry option, setting the pending order on the previous candle/highlow ( and a user selctable EntryBuffer). Also in theory the EA could, if user wishes and pending was not filled, delete the old hiddenPendings and set new ones on the next candle h/l...

Thanks for your considerations.
Doc
I will add a previous candle high/low option for the initial pending setting, this will include, if user wishes and pending was not filled, deleting the old hiddenPendings and set new ones on the next previous candle h/l.
This will be added in the next update.

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 +

[Update!!]TheHiddenPendingEA

Post by milanese »

Feb. 23,2015
New previous candle high/low function for the initial pending order as optional, note this function if set to ture overrides all other price input options. You should for using this set DeleteOppositeAfterFill to true (this is OOTB set to true), so after filling the opposite pending will be delted. I f you wish you can set the HPEA to move every new candle the hidden pending orders, if not filled to the next previous candle.
The new inputs for these functions are:

Code: Select all

extern string   pen1="----Use previous candle High/low for initial Pending----";
extern string   pen2="----using this overrides all other initial PendingPrice settings----";
extern bool    useCandleHighLowForInitial=false;
extern int     TimeFrameForCandleHL=PERIOD_M15;
extern bool    SetNewEveryNextIfNotFilled=true;
As always the new build 159 is attached on the first post, please feel free to ask your questions here in the thread.

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
DocT
Trader
Posts: 149
Joined: Mon Apr 23, 2012 9:44 am
Location: Aberdeen

[Update!!]TheHiddenPendingEA

Post by DocT »


As always the new build 159 is attached on the first post, please feel free to ask your questions here in the thread.

Cheers :)

Tommaso
Tommaso

You are amazing...thank you :yahoo:

Doc
DocT
Trader
Posts: 149
Joined: Mon Apr 23, 2012 9:44 am
Location: Aberdeen

TheHiddenPendingEA

Post by DocT »

Tommaso/All

I have spent time playing with this EA this morning - and the initial OCO candle functions work really well - once trade entered the opposite is cancelled. However, the move orders function to next candle if no fill does not seem to work (see attached image) - the pendings should have moved to the long blue candle.

Also the EA works well on GP but not FXCM for some reaqson (my main trade accounts for Spread Bet purposes in UK). Has anyone else seen this and figured out a solution?

If not, I will use FXBlue to copy trades from FXCM to GP.

Thanks
Doc
You do not have the required permissions to view the files attached to this post.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

[bugfix]TheHiddenPendingEA

Post by milanese »

taggie11 » Tue Feb 24, 2015 11:05 am wrote:Tommaso/All

I have spent time playing with this EA this morning - and the initial OCO candle functions work really well - once trade entered the opposite is cancelled. However, the move orders function to next candle if no fill does not seem to work (see attached image) - the pendings should have moved to the long blue candle.

Also the EA works well on GP but not FXCM for some reaqson (my main trade accounts for Spread Bet purposes in UK). Has anyone else seen this and figured out a solution?

If not, I will use FXBlue to copy trades from FXCM to GP.

Thanks
Doc
Hi Doc, you are right there was a misstypo causing this function not to work as intended. The update should fix this.
About broker the EA is tested on GlobalPrime and some other brokers and I had so far with no serious broker any problems in using it. Could you describe what is for you with FXCM not working, are thre any error-messages ecc?
Fixed version build 160 is attached on 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
DocT
Trader
Posts: 149
Joined: Mon Apr 23, 2012 9:44 am
Location: Aberdeen

TheHiddenPendingEA

Post by DocT »

Tommaso

Thanks for the fix for the candle move. Will test it now.

As for FXCM - the EA places the red and green lines above and below the candle but no trades are executed when price moves through either line. Nor do the lines move with the next candle. The set file and EA are identical - I just copied from my FXCM Empty4 to my GP Empty4. I can see no errors in the Experts tab or the Journal tab. Is there somewhere else I can look?

Doc

Edit - I just created a new FXCM account and it is working fine in that - crappy Empty4 :x
Thanks Tommaso
Last edited by DocT on Tue Feb 24, 2015 12:06 pm, edited 1 time in total.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

TheHiddenPendingEA

Post by milanese »

taggie11 » Tue Feb 24, 2015 11:54 am wrote:Tommaso

Thanks for the fix for the candle move. Will test it now.

As for FXCM - the EA places the red and green lines above and below the candle but no trades are executed when price moves through either line. Nor do the lines move with the next candle. The set file and EA are identical - I just copied from my FXCM Empty4 to my GP Empty4. I can see no errors in the Experts tab or the Journal tab. Is there somewhere else I can look?

Doc
probably a spread problem, try a higher allowed spread setting MaxSpreadAllowedMultiplicator to 2 or 2.5
and change MaxDiffPrice to 8 or 10..., this will cause that the execution will be less accurate, but if the broker has higher slippages or some times unmotivated spreadspikes it can be needed.

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
DocT
Trader
Posts: 149
Joined: Mon Apr 23, 2012 9:44 am
Location: Aberdeen

TheHiddenPendingEA

Post by DocT »

Tommaso

Will do that too to make sure all well in future. I set up a new Empty4 terminal; and it worked fine in that so..... crappy Empty4.

Many thanks for the candle additions :yahoo:

Doc
Post Reply

Return to “Utilities Indicators and Scripts”