Request: Place Pendings on Candle Close

MPTM's new home
User avatar
matt_32
Trader
Posts: 204
Joined: Tue Apr 03, 2012 8:51 am
Location: Crete, Greece

Request: Place Pendings on Candle Close

Post by matt_32 »

Hi all.

I need to place pending orders (both buy and sell) on the beggining of a new candle. The pendings should be placed above and below the previous candle's close. The distance for the pendings should be x amount of pips (where x is = 25% of previous candle's ATR).

eg Weekly AUDJPY Candle yesterday closed at 95.066. The ATR of that candle was 1745 (highest - lowest ===> 95.283 - 93.538 = 1745) thus the pendings should be placed at 1745 x 25% @ 436 pips above the candle's close.

Pending buy 95.066 + 436 = 95.502
Pending sell 95.066 - 436 = 64.630

Simple ?


Thanks in advance

Matt
:)
"Wise men speak because they have something to say; Fools because they have to say something." - Plato 347 BC
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Request: Place Pendings on Candle Close

Post by SteveHopwood »

Send me a pm if nobody comes up with this in a couple of days Matt, and I will write it for you.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
matt_32
Trader
Posts: 204
Joined: Tue Apr 03, 2012 8:51 am
Location: Crete, Greece

Request: Place Pendings on Candle Close

Post by matt_32 »

Thank you Steve .. !
"Wise men speak because they have something to say; Fools because they have to say something." - Plato 347 BC
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Request: Place Pendings on Candle Close

Post by SteveHopwood »

It would help a potential coder to know whether you want a script that you use at a time of your choosing, or an EA that sends the trade at the open of a new candle.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
matt_32
Trader
Posts: 204
Joined: Tue Apr 03, 2012 8:51 am
Location: Crete, Greece

Request: Place Pendings on Candle Close

Post by matt_32 »

I am working on a strategy (part is mine, part I have found here an there) and it would be nice to experiment with different TF's, thus an automated entry system (EA) would be better.

Matt

PS I am still in the process of evaluating the system and therefore cannot say much about it. But the idea is to trade the Weekly candle (experimentation can be done on other TF's) and wait for the move to evolve. Usually when the weekly candle gets going ... nothing can stop it. The idea is to let all the moves play out and close them on Friday.
"Wise men speak because they have something to say; Fools because they have to say something." - Plato 347 BC
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Request: Place Pendings on Candle Close

Post by milanese »

I coded you this script, before reading that you want an EA..
Place_PendingLastCandleCloseATR.mq4
Cheers :)

Tommaso
You do not have the required permissions to view the files attached to this post.
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
matt_32
Trader
Posts: 204
Joined: Tue Apr 03, 2012 8:51 am
Location: Crete, Greece

Request: Place Pendings on Candle Close

Post by matt_32 »

Thank you Tomasso. Great help


Matt
"Wise men speak because they have something to say; Fools because they have to say something." - Plato 347 BC
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Request: Place Pendings on Candle Close

Post by milanese »

Here is your EA, it trades the like you wishes , you can set the trading TF in the input setting, rest of settings should be self expalining..it will place hidding pending orders
CandleCloseATR_EA_mattB.mq4
Cheers :)

Tommaso
You do not have the required permissions to view the files attached to this post.
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
matt_32
Trader
Posts: 204
Joined: Tue Apr 03, 2012 8:51 am
Location: Crete, Greece

Request: Place Pendings on Candle Close

Post by matt_32 »

Thank you Tomasso .

Amazing !!!!!!!


Matt
"Wise men speak because they have something to say; Fools because they have to say something." - Plato 347 BC
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Request: Place Pendings on Candle Close

Post by milanese »

matt_32 » Sun Oct 26, 2014 12:10 pm wrote:Thank you Tomasso .

Amazing !!!!!!!


Matt
Please redownload here http://www.stevehopwoodforex.com/phpBB3 ... 98#p102498 as I did some bugfixing and adding better functionality

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
Locked

Return to “Utilities Indicators and Scripts”