Forex



Go Back   Forex Trading > Training > Metatrader > Metatrader 4 mql 4 - Development course
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
  #61 (permalink)  
Old 06-24-2009, 07:35 AM
Member
 
Join Date: May 2006
Posts: 43
veematics is on a distinguished road
DLL ok in development, error 126 in production, why ?

Hello,
i'm getting confuse.. i create a dll that connect to internet, i copy the dll only on many metarader in my local computer and found no problem...

but the problem arise when i copy my dll to another computer. it returns error 126.

may i know what's wrong ? how to solve the problem ? i'm using with visual C++ on visual studio 2008.

please help
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
  #62 (permalink)  
Old 07-16-2009, 12:04 AM
Mistigri's Avatar
Member
 
Join Date: Mar 2006
Posts: 34
Mistigri is on a distinguished road
Quote:
Originally Posted by veematics View Post
Hello,
i'm getting confuse.. i create a dll that connect to internet, i copy the dll only on many metarader in my local computer and found no problem...

but the problem arise when i copy my dll to another computer. it returns error 126.

may i know what's wrong ? how to solve the problem ? i'm using with visual C++ on visual studio 2008.

please help
Hi Veematics, maybe you are the gentleman who just sent me an email about this problem, but I figured I would post my reply on this forum for other to see

Quote:

Hello,

Make sure you compile your dll with MFC Statically Linked…

Go to your project properties, under Configuration Properties | General | Use of MFC
Make sure that you have “Use MFC in a Static Library “ selected.
Then rebuild your dll.
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
  #63 (permalink)  
Old 07-22-2009, 03:56 PM
Member
 
Join Date: May 2006
Posts: 43
veematics is on a distinguished road
Hello Mistigri, thanks for the insight.

I'm testing with strategy tester my EA and i also wonder why the result with DLL and the original logic (without DLL) is different..

do you had similiar experience
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
  #64 (permalink)  
Old 07-23-2009, 04:29 PM
Mistigri's Avatar
Member
 
Join Date: Mar 2006
Posts: 34
Mistigri is on a distinguished road
You mean like when calculating an Indicator?

Then yes, for example I wrote my own ATR function in a dll and what happens is that my DLL ATR uses wilder's smoothing while MT4 just uses a simple average ... Same with any of the indicators written by wilders and other indicators who seem to have multiple versions ...

I would first make sure your indicators give the same results as the MT4 platform from the DLL ...

Patrick
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
  #65 (permalink)  
Old 09-15-2009, 01:35 PM
Senior Member
 
Join Date: Dec 2006
Posts: 109
dwmcqueen is on a distinguished road
DLLs and Indicators

Anyone have any types or general best practices for using a dll in an indicator (how to get the range of prices to the dll, etc)? I want to have a dll calculate the values instead of using functions in MetaTrader.

Thanks!
__________________
Visit http://www.openthinkingsystems.com for EA signal distribution systems, MetaTrader and Collective2 integration and general custom development.
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
  #66 (permalink)  
Old 09-30-2009, 12:36 PM
Junior Member
 
Join Date: Jun 2009
Posts: 3
xarlotie is on a distinguished road
Exclamation Page not found!

mistigriFX.com cannot be found anymore. what could be the reason?
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
  #67 (permalink)  
Old 10-01-2009, 09:30 AM
Junior Member
 
Join Date: Jun 2009
Posts: 3
xarlotie is on a distinguished road
Question How to make them work?

Quote:
Originally Posted by Mistigri View Post
Hi Tim,

When using dev-c++ the def file is generated for you automatically the problem is that you end up with function names that look like this :

PHP Code:
EXPORTS
    _Z11GetSMAArrayP8RateInfoiiPd
@16 1
    _Z12GetHighValueP8RateInfoii 
_Z12GetHighValueP8RateInfoii@12 2
    _Z12GetHighValueP8RateInfoii
@12 3
    _Z13GetCloseValueP8RateInfoii 
_Z13GetCloseValueP8RateInfoii@12 4
    _Z13GetCloseValueP8RateInfoii
@12 5
    _Z11GetSMAArrayP8RateInfoiiPd 
_Z11GetSMAArrayP8RateInfoiiPd@16 
Now you need to make sure you add the following check around your code

PHP Code:
#ifdef __cplusplus
extern "C" {
#endif


#ifdef __cplusplus
}
#endif 
Attached are the sample files I did for VS2008 but this time using dev-c++ ...
Hope this helps
how do we test those files?? what should we do? As far as i know, host applications for Dev C++ are only exe. How can we use the ex4?
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
  #68 (permalink)  
Old 10-01-2009, 09:38 AM
Junior Member
 
Join Date: Jun 2009
Posts: 3
xarlotie is on a distinguished road
Thumbs down

Quote:
Originally Posted by xarlotie View Post
how do we test those files?? what should we do? As far as i know, host applications for Dev C++ are only exe. How can we use the ex4?
oh! what a very stupid question! sorry for this..i realized the answer to it..just ignore this post..thanks!
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
c# metatrader, dll, dll forex, dll metatrader, dll mt4, ExpertSample.dll, file, FILE EXTENSION EX4, forex, internet, metatrader, metatrader c# DLL, metatrader dll, metatrader socket, metatrader sockets, MistigriFX, mql dll, mt4 dll


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
How do I use the files with .ex4 extension. NEEL123 General Discussion 6 12-19-2008 09:35 AM
About Fibo extension phildunn General Discussion 11 03-30-2008 01:31 PM
there is any script/program to create walk forward test data for metatrader???? giraia_br Metatrader 4 1 03-26-2007 01:44 AM
Please create an EA matrixebiz Expert Advisors - Metatrader 4 0 11-28-2006 08:19 PM


All times are GMT. The time now is 12:12 AM.



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