View Single Post
  #5 (permalink)  
Old 03-16-2006, 10:31 PM
Eric Eric is offline
Senior Member
 
Join Date: Sep 2005
Location: Kailua-Kona, Hawai'i
Posts: 188
Eric is on a distinguished road
FX-Hedger,

I tried to set the user inputs in the MakeGrid193 EA so that it would do this. It sets it up perfectly (see the attached image)

It sets limit orders above and below the current price, you can set the spacing betweent the orders (in this case 10 pips), and you can set a ProfitTarget where the EA will close out everything when a net profit level is reached.

The problem is, when the price starts to move, for example say it moves up and triggers the long 1.2180, 1.2190 orders, etc., when the price comes back down, it will open new orders for shorts at 1.2190, 1.2180, 1.2170, etc. but we only want it to trigger the original shorts, 1.2160, 1.2150, etc. In other words, even though the EA initially sets it up just the way we want, it will continue to set new limit orders (that we don't want) as the price moves around.

We want it to just set the original limit orders and then not set any more limit orders until the ProfitTarget feature closese everything and starts over. If I had any programming skills, I would try to modify this EA (which has much more features than we really need for this) so that it just sets the original limit orders according to the user spacing, etc. and no more, and then closes when the net profit is reached and starts over. Unfortunately, I don't have the skills to do that. If anyone does, it would be interesting to try this out.
Attached Images
File Type: gif hedge grid.gif (39.2 KB, 386 views)
Attached Files
File Type: mq4 MakeGrid193.mq4 (25.0 KB, 130 views)
Reply With Quote