Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4


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 08-29-2006, 01:26 AM
Junior Member
 
Join Date: Mar 2006
Posts: 18
G-Riper is on a distinguished road
does anybody know what this means?

in terminal, under the expert window, this message:

"Error opening SELL order: 130" what does this mean?

The worthless interbankfx will not answer my question, Don't use this broker if you don't have too. The bigger they get the worst they get.

Thanks in advance

MKH
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-29-2006, 01:54 AM
Senior Member
 
Join Date: Mar 2006
Posts: 787
Maji is on a distinguished road
Error 130 is "ERR_INVALID_STOPS 130 Invalid stops."

You are using a wrong stop loss value or your entry stop orders are wrong or the values are too close... usually have to be "MarketInfo(Symbol(),MODE_STOPLEVEL)" pips away.

Hope this helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-29-2006, 02:09 AM
Junior Member
 
Join Date: Mar 2006
Posts: 18
G-Riper is on a distinguished road
I'm using a stop loss of 90, and a trailing stop of 11, is this to close to the spread? Thanks for the help!

MKH
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-29-2006, 02:50 AM
Senior Member
 
Join Date: Mar 2006
Posts: 787
Maji is on a distinguished road
I don't know what pair you are using. Also, are you using stop buy/sell orders for entry? Use the marketinfo function to find out what the permissible levels are.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 08-29-2006, 04:06 AM
Junior Member
 
Join Date: Mar 2006
Posts: 18
G-Riper is on a distinguished road
Talking

The pair I'm using right now is "usd/jpy" 30 min chart. Would It be helpful If I sent the EA along? It's just a simple EMA Cross by codersguru, It was in his lession plan as "My_First_EA".

I tryed to add a StopLoss to it. The buy works but the sell doesn't.
Attached Files
File Type: mq4 EMA CROSS 11 EA.mq4 (5.0 KB, 18 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 08-29-2006, 04:13 AM
Senior Member
 
Join Date: Mar 2006
Posts: 787
Maji is on a distinguished road
Told ya... check your stops...

The sell routine in your EA looks like this

PHP Code:
ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,3,Ask-StopLoss*Point,
Bid-TakeProfit*Point,"My EA",12345,0,Red); 
The stop loss is being deducted from ask!!! with a value of 75 pips, and assuming the spread is 3 pips, the stop will be below the entry price, and that is what MT4 is complaining about.

The correct code will be

ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,3,Ask+StopLoss*Point,
Bid-TakeProfit*Point,"My EA",12345,0,Red);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 08-29-2006, 04:45 AM
Junior Member
 
Join Date: Mar 2006
Posts: 18
G-Riper is on a distinguished road
Well, I thank you very much. That was it. I guess You can tell I don't know that much about programing.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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 On
Forum Jump


All times are GMT. The time now is 04:43 AM.



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