Traderji.com


Convert call dll from Metastock to MetaTrader4

Discuss Convert call dll from Metastock to MetaTrader4 at the MetaTrader within the Traderji.com; Please help me to call dll file using MT4 File name: FileName.dll Function name is ...


Go Back   Traderji.com > TOOLS & RESOURCES > Software > MetaTrader



Reply
 
Thread Tools
  #1  
Old 14th August 2016, 01:06 AM
Member
 
Join Date: Jun 2016
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Fahad04 is on a distinguished road
Default Convert call dll from Metastock to MetaTrader4

Please help me to call dll file using MT4

File name: FileName.dll
Function name is : CheckFunction

Metastock formula to call dll function is :
Buy
ExtFml( "FileName.CheckFunction") = 1

Sell
ExtFml( "FileName.CheckFunction") = 0
Reply With Quote

Looking for a share broker?

Name:Phone:
Email:City:
State:
Are you a day trader?
  #2  
Old 25th August 2016, 11:58 AM
Member
 
Join Date: Dec 2011
Posts: 2,323
Thanks: 3,716
Thanked 2,294 Times in 1,221 Posts
mastermind007 has a reputation beyond reputemastermind007 has a reputation beyond reputemastermind007 has a reputation beyond reputemastermind007 has a reputation beyond reputemastermind007 has a reputation beyond reputemastermind007 has a reputation beyond reputemastermind007 has a reputation beyond reputemastermind007 has a reputation beyond reputemastermind007 has a reputation beyond reputemastermind007 has a reputation beyond reputemastermind007 has a reputation beyond reputemastermind007 has a reputation beyond reputemastermind007 has a reputation beyond repute
Default Re: Convert call dll from Metastock to MetaTrader4

Quote:
Originally Posted by Fahad04 View Post
Please help me to call dll file using MT4

File name: FileName.dll
Function name is : CheckFunction

Metastock formula to call dll function is :
Buy
ExtFml( "FileName.CheckFunction") = 1

Sell
ExtFml( "FileName.CheckFunction") = 0
General steps to call any function from any dll are

1) Load Library
2) obtain function pointer of the desired function from the export table of the loaded library
3) call the function pointer
4) Repeat steps 2 and 3 as many times as necessary
5) Unload library

But, to successfully complete each of the step requires some programming skill.

There are lot of complications involved. Some C DLL (notably microsoft) use parameter loading in opposite order (sometimes called PASCAL convention) as opposed to default C convention.

Some compilers expect strings memory allocation to be on stack whereas others expect it to be in heap memory.
Reply With Quote
  #3  
Old 1st September 2016, 05:21 PM
Member
 
Join Date: Jun 2016
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Fahad04 is on a distinguished road
Default Re: Convert call dll from Metastock to MetaTrader4

Hi Master Mind,

thank for your help


is this correct?

this is my try:

#import "FileName.dll";
double CheckFunction();
#import

and in the void OnTick() I put this
Print(CheckFunction());

but no value showed up!!!
Reply With Quote
Reply

Bookmarks


Advertise Here

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off


Similar Threads for: Convert call dll from Metastock to MetaTrader4
Thread Thread Starter Forum Replies Last Post
Help to Convert This AFL to Metatrader4 formula Justtrade AmiBroker 0 9th October 2010 11:53 PM
MetaTrader4-DDEChartUpdater-Metastock naruto2009 Forex 0 24th March 2010 08:56 PM
Help ! Can anyone convert metastock into afl amit_k2100 AmiBroker 2 25th November 2009 11:00 PM
Help ! Can anyone convert metastock into afl amit_k2100 AmiBroker 0 21st November 2009 12:50 AM
Req:Plz Convert This for MetaStock sumitro MetaStock 1 10th April 2009 12:52 AM


All times are GMT +5.5. The time now is 05:53 AM.

Indemnity, Disclaimer & Disclosure Notice:
* By visiting Traderji.com you automatically indicate that you agree to our Forum Rules, Indemnity, Disclaimer & Disclosure Notice and General Content Disclaimer Notice and indemnify Traderji.com, its associates and related parties of all claims howsoever resulting from the usage of the forum/site.
* Disclaimer: Trading or investing in stocks & commodities is a high risk activity. Any action you choose to take in the markets is totally your own responsibility. You are recommended to make appropriate enquiries and seek appropriate advise before sending money, incurring any expenses, acting on recommendations or entering into any commitment in relation to any advertisement published here. Traderji.com does not vouch for any claims made by the advertisers of products and services. Traderji.com will not be held liable for any consequences in the event such claims are not honoured by the advertisers. Traderji.com will not be liable for any, direct or indirect, consequential or incidental damages or loss arising out of the use of any information by anybody mentioned anywhere on this site.
* Disclosure: The information in this forum is neither an offer to sell nor solicitation to buy any of the securities mentioned herein. The writers may or may not be trading in the securities mentioned.
* All names or products mentioned are trademarks or registered trademarks of their respective owners.
General Content Disclaimer Notice:
In light of our policy of encouraging candid, open exchanges of views and the rapid distribution of information originating from many sources, Traderji.com cannot determine the accuracy or legality of any information that may be uploaded to the forum. Opinions, advice and all other information expressed by participants in discussions are those of the author. You rely on such information at your own risk. You are urged to seek professional advice for specific, individual situations and not rely solely on advice or opinions given in the discussions. Since Traderji.com is an open and free discussion forum, any comments made by members of this forum in their posts reflect their own views and not of the owner or administrator of Traderji.com. Thus the owner/administrator indemnify themselves of all claims whatsoever and will not be liable or responsible for any members comments/views in this forum Traderji.com. Although we constantly delete all irrelevant content and/or SPAM, if you should find any objectionable or offensive posts made by members of this forum which you would like to bring to our notice for removal then please Contact Us.
 


Our Partner Websites: www.chittorgarh.com, IPO Investment Portal | www.topsharebrokers.com, Broker Comparision
Copyright © www.Traderji.com 2001 - , All rights reserved.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70