Forex



Go Back   Forex Trading > Training > Metatrader > Metatrader 4 mql 4 - Development course > Questions
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-07-2006, 07:03 PM
deeforex's Avatar
Member
 
Join Date: Oct 2005
Posts: 91
deeforex is on a distinguished road
How to modify this order

Could someone please share with me what the code might look like if I would like to modify this order.

I know that you can only set entry orders ~5 pips (broker buffer) away from the market price. I have pending BuyStop for 1.8580. When the market moves away from this BuyStop I want to be able to modify it to enter earlier and at a better price if possible.

Let's say, modify order if (Ask>=Threshold) && ( (Ask+BrokerBuffer) < BuyStop)
threshold=originalBuyStop - 10*Points

1.8575 Ask, BuyStop is set at 1.8580
1.8574 Ask, BuyStop is modified to 1.8579
1.8573 Ask, BuyStop is modified to 1.8578
1.8572 Ask, BuyStop is modified to 1.8577
1.8571 Ask, BuyStop is modified to 1.8576
1.8570 Ask, BuyStop is modified to 1.8575
threshold=1.8570, so no longer need to modify orders.

I'm very bad at using counters to go through the orders and I'm not totally sure how to call up the existing BuyStop order. If someone could put this into code for me, I would really appreciate it!

Mucho Gracias,
dee

Last edited by deeforex; 06-07-2006 at 07:06 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plz modify kevmcfoster Suggestions for Trading Systems 6 01-02-2007 12:34 AM
Need help to modify this EA alpin Expert Advisors - Metatrader 4 1 11-27-2006 12:13 PM
modify currency_loader2 EA kidhudi Metatrader 4 2 11-04-2006 07:49 PM
How do I modify the magic number on an order? Aaragorn General Discussion 7 07-17-2006 06:46 PM


All times are GMT. The time now is 09:05 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.