molanis.com/forum - Tools for MetaTrader : The place to ask about the best expert advisor builder, expert advisor downloads, and expert advisor programming

AFTER YOU REGISTER SEND US AN EMAIL TO ACTIVATE YOUR ACCOUNT - Before posting:-1- Please read the user guide -2- Try the examples -3- Search in the forum
It is currently Mon May 20, 2024 9:37 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Error=130 invalid stops
PostPosted: Tue May 17, 2011 7:41 am 
Offline

Joined: Tue May 17, 2011 7:30 am
Posts: 2
When I attach the EA graph and runs it I get the message over

2011.05.17 15:12:11 EA N2 EURJPY,M1: M-ERROR: Could not open new position. Error=130 invalid stops. Order Info : Order Type=OP_SELL. Symbol=EURJPY. Lot Size=0.3. Price=115.672. SL=115.792. TP=115.592


Top
 Profile  
 
 Post subject: Re: Error=130 invalid stops
PostPosted: Tue May 17, 2011 9:03 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
See http://www.molanis.com/support/faq#setup16 most likely you are using an ecn or your stops are too small


Top
 Profile  
 
 Post subject: Re: Error=130 invalid stops
PostPosted: Tue May 17, 2011 12:12 pm 
Offline

Joined: Tue May 17, 2011 7:30 am
Posts: 2
What do you mean? using an ecn


Top
 Profile  
 
 Post subject: Re: Error=130 invalid stops
PostPosted: Tue May 17, 2011 12:49 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
ECN (Electronic Communications Network). A Forex ECN broker does not have a dealing desk.
All mt4 brokers that use Boston Technologies as a provider are or behave like an ecn.
ECNs do not accept your stops / limits with the order. You need to send the order, after the order generates a position, you add the stops / limits to the positon (the builder does that for you just adjust the option in the START icon)


Top
 Profile  
 
 Post subject: Re: Error=130 invalid stops
PostPosted: Mon Apr 08, 2013 10:17 am 
Offline

Joined: Thu Oct 27, 2011 12:41 pm
Posts: 59
molanisfx wrote:
ECN (Electronic Communications Network). A Forex ECN broker does not have a dealing desk.
All mt4 brokers that use Boston Technologies as a provider are or behave like an ecn.
ECNs do not accept your stops / limits with the order. You need to send the order, after the order generates a position, you add the stops / limits to the positon (the builder does that for you just adjust the option in the START icon)



Hi there, I am reffering to what I underlined above.

We set at the Start Icon 'OrdersDoNotIncludeTpSL', but we still key in the SL and TP points? And that when the order is confirmed you are trying to say the EA will deliver the TP and SL a few (mili)seconds later? We do not do this manually?


Top
 Profile  
 
 Post subject: Re: Error=130 invalid stops
PostPosted: Tue Apr 09, 2013 4:47 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Yes with ecns the order is sent first and then the stops - the time it takes depend on the server response time to the order


Top
 Profile  
 
 Post subject: Re: Error=130 invalid stops
PostPosted: Tue Apr 09, 2013 6:27 pm 
Offline

Joined: Thu Oct 27, 2011 12:41 pm
Posts: 59
molanisfx wrote:
Yes with ecns the order is sent first and then the stops - the time it takes depend on the server response time to the order



If OrderIncludeTPSL is set to false does it work on non-ECN as well?


Top
 Profile  
 
 Post subject: Re: Error=130 invalid stops
PostPosted: Wed Apr 10, 2013 5:19 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Yes. But it is not recommended - it is better to send the limits with the order when possible


Top
 Profile  
 
 Post subject: Re: Error=130 invalid stops
PostPosted: Sat Apr 13, 2013 11:56 pm 
Offline

Joined: Thu Oct 27, 2011 12:41 pm
Posts: 59
molanisfx wrote:
Yes. But it is not recommended - it is better to send the limits with the order when possible



So it works on non-ECN as well.

And it is not recommended due the same reason as in ECN, which is "delay", which could cause "invalid stops" if the prices moves too fast?


Top
 Profile  
 
 Post subject: Re: Error=130 invalid stops
PostPosted: Sun Apr 14, 2013 11:07 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Exactly


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by Molanis © 2009