Forex



Go Back   Forex Trading > Discussion Areas > Setup 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
  #11 (permalink)  
Old 07-02-2006, 03:10 PM
Member
 
Join Date: Jun 2006
Location: Buenos Aires
Posts: 55
ignacio is on a distinguished road
Quote:
Originally Posted by elihayun
First, in order to get the error description do the following

after the #property link add the line

#property link "http://www.elihayun.com"
#include <stdlib.mqh>


now to check the error do this

PHP Code:
int err GetLastError();
if (
err != 0)
{
   Print(
"Error # "err"  "ErrorDescription(err));

For your problem, I cannot think of another problem. Maybe u are using another RefreshRates() Try to comment them out
// RefreshRates()
Here is the out of script:
HTML Code:
<pre>
2006.07.02 11:07:15	2006.01.04 12:00  eaButler EURUSD,H4: Error Description [#138]: requote
2006.07.02 11:07:15	2006.01.04 12:00  stdlib EURUSD,H4: loaded successfully
</pre>
and here is the code:

PHP Code:
               last_ticket OrderSendSymbol(), OP_SELLLotsSlippageBid0.00.0magic_number0Red);
               if(
last_ticket 0)
               {
                  
rv GetLastError();
                  Print(
"Error Description [#"rv "]: " ErrorDescription(rv));
               } 
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
  #12 (permalink)  
Old 07-02-2006, 05:48 PM
Member
 
Join Date: Jun 2006
Location: Buenos Aires
Posts: 55
ignacio is on a distinguished road
Well,

Problem solved. The problem was me hehe.

Slippage parameter goes after Price

Thank you elihayun
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
  #13 (permalink)  
Old 08-16-2007, 08:13 PM
Junior Member
 
Join Date: Jun 2006
Posts: 7
cobby is on a distinguished road
Error 4107, please help

Hi,
i always get this error. The problem is that the OrderClose() function contains Bid as parameter for getting the price. But i always get this error 4107, which tells me that e.g. 0.7900500000 is an invalid price. Of course it's an invalid price, because there is no price as mentioned above. It would be more likely something like 0.790000000 or 0.79010000, only for digits behind the point, not five.
How does the strategytester come to this invalid price, when i have inserted Bid as the price parameter for OrderClose?
Do you know any solutions.
Thanks in advance
Greetings
-mike
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
  #14 (permalink)  
Old 08-16-2007, 08:43 PM
Member
 
Join Date: Mar 2006
Posts: 49
master001 is on a distinguished road
Error 146 ("Trade context busy") and How to Deal with It - MQL4 Articles
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
  #15 (permalink)  
Old 08-16-2007, 09:00 PM
Junior Member
 
Join Date: Jun 2006
Posts: 7
cobby is on a distinguished road
hmpf, this is not my error.
Nevertheless thanks for your efforts!
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
  #16 (permalink)  
Old 08-17-2007, 04:59 AM
Willis11of12's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 105
Willis11of12 is on a distinguished road
Sometimes I have wierd problems like this. I usually just find another way of doing the same thing, like putting in something like "Ask-spread*Point" with having spread defined somewhere earlier in the EA as being the value of whatever the spread is for the pair you are testing.
Sometimes I get a problems that I know are coded right and you just have to find another way, knowing that there are some issues still with MT4. If you want, you can send a copy of your code to Metaquotes and tell them about the error, and hopefully the next update will correct it.
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
  #17 (permalink)  
Old 05-06-2009, 10:01 PM
1Dave7's Avatar
Senior Member
 
Join Date: Aug 2007
Posts: 183
1Dave7 is on a distinguished road
Cool What is a 310 Error Code??

Got this when testing out my EA. Trade started to buy, but this error occurred. Please help me to find out what this means?

Dave
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
  #18 (permalink)  
Old 05-06-2009, 10:09 PM
Senior Member
 
Join Date: Dec 2007
Posts: 492
Enforcer is on a distinguished road
You mean 130, not 310.
130 mean invalid stops.
__________________
www.signalcopy.com - Most advanced tools for copy Metatrader signals.
Free MT4 account statistics - advanced stats and graphs for MT4 accounts
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
  #19 (permalink)  
Old 05-06-2009, 10:30 PM
1Dave7's Avatar
Senior Member
 
Join Date: Aug 2007
Posts: 183
1Dave7 is on a distinguished road
Thumbs up

You are right on the number and it makes sense - I need to modify my code to make it the right StopLoss.

Thanks a bunch!

Dave
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
  #20 (permalink)  
Old 07-21-2009, 01:03 PM
1Dave7's Avatar
Senior Member
 
Join Date: Aug 2007
Posts: 183
1Dave7 is on a distinguished road
Cool Error codes 129 & 138

Received these codes on order entry using my EA this morning - What do they mean? Also what does error code 130 mean also?

Dave
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

Tags
error 130, http://www.elihayun.com, metatrader error 138, MODE_STOPLEVEL, mt4 error 138, Order Close error 138, order send error 138, OrderClose error 138, OrderSend error 130, OrderSend error 138


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
Has anyone got this error? wolfe Metatrader 4 7 03-13-2009 10:40 PM
Error codes script! codersguru Tools and utilities 6 05-03-2008 01:14 AM
need help on codes antone Indicators - Metatrader 4 15 03-01-2007 02:48 PM
Error JoZo General Discussion 2 06-28-2006 08:45 PM
MT4 Indicator codes coming out of my ears! fred Metatrader 4 12 03-20-2006 11:25 AM


All times are GMT. The time now is 12:27 PM.



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