| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Market Order EA https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=946 |
Page 1 of 1 |
| Author: | SWG123 [ Sat Nov 10, 2012 5:13 pm ] |
| Post subject: | Market Order EA |
I've been looking for an EA that will buy/sell at market only after x number of consecutive bars have closed above/below a specified price on a given timeframe. I thought something like this must surely exist already but I haven't found anything yet - does anyone here know of such a thing? Steve's Waiting To Buy/Sell EAs enter on a single bar close - could they be adapted? The intended usage is for breakout strategies, with the extra bars serving as confirmation and helping to reduce the incidence of false breaks. The ability to specify a maximum distance in pips from the breakout level, beyond which trades would not be taken, would be great. Seems pretty straightforward but I'll happily post charts if needed. |
|
| Author: | AnotherBrian [ Wed Nov 14, 2012 2:09 pm ] |
| Post subject: | Re: Market Order EA |
This isnt exactly what you want but check it out if your ok with setting up lines on a chart. TT2P |
|
| Author: | Carioca [ Wed Nov 14, 2012 3:55 pm ] |
| Post subject: | Re: Market Order EA |
bad english I found this one code and steve a long time ago. Depending on what you really want something like this should work. Code: Select all |
|
| Author: | SWG123 [ Wed Nov 14, 2012 7:16 pm ] |
| Post subject: | Re: Market Order EA |
Hey Brian, I've known about TT2P for some time now - congrats on a fantastic tool (or rather suite of tools). But you're right, it doesn't do what i'm looking for, which is entering after x no. bars close beyond a S/R level. With all the myriads of EAs out there I can't believe I've been unable to find something so simple and potentially useful! Steve's Waiting To Buy/Sell EAs come closest (with Every Tick = false) and if i knew the first thing about coding .... P.S. Although my intended use is trading breakouts, it occurs to me that it could be equally useful for reversals. Cheers, Another Steve |
|
| Author: | SWG123 [ Wed Nov 14, 2012 7:27 pm ] |
| Post subject: | Re: Market Order EA |
Hi Carioca, Thanks for this - how would I use it? Do you mean to add this code to Steve's WaitingToBuy/Sell EAs? How do the definition of trend references fit in? |
|
| Author: | mobthehop [ Thu Nov 15, 2012 12:51 am ] |
| Post subject: | Re: Market Order EA |
I lifted this from another code - it should give you a possible approach - you will need to adapt this to your needs... mBarsforOrder holds your desired value for min bars up or down, the start time is not considered in this routine Code: Select all |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|