MA - place pending EA required
  #1 (permalink)  
Old 04-21-2008, 10:27 AM
Freshman
 
Join Date: Mar 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
pgtips is on a distinguished road
Default MA - place pending EA required

Hi,

I wonder if anyone can tell me if this is possible. I use 5 min MA indicators on a 15 min chart and in an ideal world would like an EA to set buy limit (or sell) pending orders based on the MA 5 value. As the price updates then cancel the prev pending order and open another one (in whatever direction I have set - buy/sell).

Keep going unitl it opens or I close it all off becuase I have changed my mind or direction has changed, in which case I would want to do the same again but the other way.

Essentially i want to get in at the MA5 line but I am either not quick enough or have requotes etc to contend with, re entering the pending order each time is tedious and time consuming.

Can this be done, and if so would someone be willing to code it for me/quote me to have it coded.

Many thanks
PG
Reply With Quote
  #2 (permalink)  
Old 04-21-2008, 02:04 PM
Freshman
 
Join Date: Nov 2007
Posts: 15
Thanks: 0
Thanked 5 Times in 4 Posts
trader101 is on a distinguished road
Default

Quote:
Originally Posted by pgtips View Post
Hi,

I wonder if anyone can tell me if this is possible. I use 5 min MA indicators on a 15 min chart and in an ideal world would like an EA to set buy limit (or sell) pending orders based on the MA 5 value. As the price updates then cancel the prev pending order and open another one (in whatever direction I have set - buy/sell).

Keep going unitl it opens or I close it all off becuase I have changed my mind or direction has changed, in which case I would want to do the same again but the other way.

Essentially i want to get in at the MA5 line but I am either not quick enough or have requotes etc to contend with, re entering the pending order each time is tedious and time consuming.

Can this be done, and if so would someone be willing to code it for me/quote me to have it coded.

Many thanks
PG
If you could explain further and perhaps some example or chart or picture for easy understanding then i tell you if i can do it. PM me
Reply With Quote
chart attached
  #3 (permalink)  
Old 04-21-2008, 05:55 PM
Freshman
 
Join Date: Mar 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
pgtips is on a distinguished road
Smile chart attached

Hi,

Chart attached.

This is a 15 min GBPJPY from about 20 mins ago.

Green line is my shifted MA5

The blue vertical line is where I decided it was time to place a sell.

As you can see the price was below MA5 but came back twice. That was where I wanted to enter.

The trouble is I can't be quick enough and things can happen, i.e it moves too quickly, price requotes and it is too late or I jump in too quick and get stopped out. An EA will remove this bit of emotion for me and help me improve.

Also as you can see, if I missed the first entry its an hour before another one came along. I can't watch for this amount of time and it could start to go the other way. If that happened I would stop the sell and open the buy limit EA.

The MA5 I use is a stock MA from the indicators with a shift of +1, smoothed/median/hl2 setting .

I'd like the EA to place a pending order sell limit (no sl or tp needed as this is managed by another EA) in anticipation the price will come back, if it doesn't then so be it.

After 5 mins it may not have entered (come back) so it needs to delete the original pending order and place a new one based on the new 5 min MA price as this will move every 5 mins.

Same for placing a buy i.e the reverse.

Really hope you can help or point me in the right direction.

cheers
PG
Attached Images
File Type: gif fxfish.gif (22.7 KB, 18 views)
Sponsored Links Best Forex Systems
Proven forex trading systems for auto trading.
See the real trading records yourself.
Reply With Quote
  #4 (permalink)  
Old 04-21-2008, 09:31 PM
Freshman
 
Join Date: Nov 2007
Posts: 15
Thanks: 0
Thanked 5 Times in 4 Posts
trader101 is on a distinguished road
Default

Your explanation is still not clear.
what decide the blue line to be there.
what action to be done , buy or sell or pending order what is the basis.
Remember EA is precision, the condition should be precise no maybes or about, i have to know this. then i also need how to close the trade. Those are the info i need.
Reply With Quote
  #5 (permalink)  
Old 04-24-2008, 09:21 AM
Freshman
 
Join Date: Mar 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
pgtips is on a distinguished road
Default

Thanks for the reply, hopefully this will help :-)

Pre set conditions
Lot size already pre entered in the EA i.e 0.8
TP 30 entered into EA
SL 30 entered into EA

Indicator on my chart
MA5 = Moving Average 5
Period 5, Shift 1
MA method smoothed, apply to Median (HL/2)

Order Open conditions

(2 x EAs ??)

Place Buy EA
EA open buy order if price = MA5 price +/- 3 pips
then open a buy order
else do not place and continue to monitor

Place Sell EA
EA open sell order if price = MA5 price +/- 3 pips
then open a sell order
else do not place and continue to monitor

If orders open => 1 then do not place order

Close conditions
Manually (if I change my view on the market) I will remove the EA from my chart so no orders will be placed.

Hope this makes it clearer.

PG
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
place 2 pending orders pgtips MetaTrader and ZeroCode 1 11-15-2007 03:15 PM
Trailing pending order fx_the_lion Tools / Utilities 1 11-06-2007 07:16 AM
Breakout EA Required fxwealth Trading Systems 3 07-15-2007 10:49 AM
Order place EA required pgtips Indicators 2 04-02-2007 11:12 AM
Closing Pending Orders Rastarr MetaTrader and ZeroCode 0 06-07-2005 11:52 PM


All times are GMT. The time now is 07:21 AM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now