Forex
Google

Go Back   Forex Trading > Metatrader Training > Metatrader 4 mql 4 - Development course > Questions
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-28-2005, 09:09 AM
Maury74's Avatar
Maury74 Maury74 is offline
Member
 
Join Date: Dec 2005
Posts: 46
Maury74 is on a distinguished road
How to set an order Buy/Sell stop??

Hi all,

after writing my first indicator now I'm trying to code me first EA!!

I have this problem:

Once I obtain a buy or sell signal from an indicator I wanna place a buy or sell stop order at 5 pips + spread from the high or low of the bar of the signal...if an other signal occurred I have to change the old order with the new high or low price....is it still possible to delete the order after x bar without the breakout of the price??

Also I wanna only 1 position open and if I use OrdersTotal() it returns both open position that pending orders...how can I know only if I'm not in the market???

Thanks

Maury

Last edited by Maury74 : 12-28-2005 at 12:05 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Opening Sell Trades With Stop Loss sbwent Metatrader 4 2 03-11-2007 10:44 PM


All times are GMT. The time now is 10:57 AM.