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

Request: Place Pendings on Candle Close
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3899
Page 1 of 3
Author:  matt_32 [ Sun Oct 26, 2014 8:41 am ]
Post subject:  Request: Place Pendings on Candle Close

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
:)
Author:  SteveHopwood [ Sun Oct 26, 2014 9:31 am ]
Post subject:  Request: Place Pendings on Candle Close

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

:xm:
Author:  matt_32 [ Sun Oct 26, 2014 9:35 am ]
Post subject:  Request: Place Pendings on Candle Close

Thank you Steve .. !
Author:  SteveHopwood [ Sun Oct 26, 2014 9:41 am ]
Post subject:  Request: Place Pendings on Candle Close

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:
Author:  matt_32 [ Sun Oct 26, 2014 10:17 am ]
Post subject:  Request: Place Pendings on Candle Close

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.
Author:  milanese [ Sun Oct 26, 2014 10:42 am ]
Post subject:  Request: Place Pendings on Candle Close

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

Tommaso
Author:  matt_32 [ Sun Oct 26, 2014 10:43 am ]
Post subject:  Request: Place Pendings on Candle Close

Thank you Tomasso. Great help


Matt
Author:  milanese [ Sun Oct 26, 2014 11:59 am ]
Post subject:  Request: Place Pendings on Candle Close

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
Author:  matt_32 [ Sun Oct 26, 2014 12:10 pm ]
Post subject:  Request: Place Pendings on Candle Close

Thank you Tomasso .

Amazing !!!!!!!


Matt
Author:  milanese [ Sun Oct 26, 2014 12:24 pm ]
Post subject:  Request: Place Pendings on Candle Close

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
All times are UTC Page 1 of 3