c# and MQL4 - MetaTrader | futures io social day trading
futures io futures trading


c# and MQL4
Updated: Views / Replies:6,538 / 15
Created: by ankityadav Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

c# and MQL4

  #1 (permalink)
Trading Apprentice
indore+india
 
Futures Experience: Beginner
Platform: metatrader
Favorite Futures: forex
 
Posts: 30 since Jun 2013
Thanks: 2 given, 2 received

c# and MQL4

can any one have an idea about how we make a dll in c# so that we can use it into mql4 program

Reply With Quote
 
  #2 (permalink)
Trading Apprentice
Montreal quebec
 
Futures Experience: Intermediate
Platform: Ninjatrader mt4
Favorite Futures: Forex
 
Posts: 16 since Aug 2013
Thanks: 0 given, 5 received

can you be more specific? why do you want to write a dll instead of coding straight mql4?

Reply With Quote
 
  #3 (permalink)
Trading Apprentice
indore+india
 
Futures Experience: Beginner
Platform: metatrader
Favorite Futures: forex
 
Posts: 30 since Jun 2013
Thanks: 2 given, 2 received

c# program on mt4


Thank You for the response sir
The problem is when i am using that dll in my mt4 it give me error not load library ea.dll and i make dll in c# to use some of the features of c#

Reply With Quote
 
  #4 (permalink)
Trading Apprentice
Montreal quebec
 
Futures Experience: Intermediate
Platform: Ninjatrader mt4
Favorite Futures: Forex
 
Posts: 16 since Aug 2013
Thanks: 0 given, 5 received

making a dll in mt4 is not for the beginner. you better ask want you want to accomplish and there is probably a better and easier way to do it.

if you want to stick to a dll, have you made your .def file as part of your solution?

Reply With Quote
The following user says Thank You to tubular2000 for this post:
 
  #5 (permalink)
Trading Apprentice
indore+india
 
Futures Experience: Beginner
Platform: metatrader
Favorite Futures: forex
 
Posts: 30 since Jun 2013
Thanks: 2 given, 2 received

c# program on mt4

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RGiesecke.DllExport;
using System.Runtime.InteropServices;


namespace ClassLibrary1
{
public class Class1
{
[DllExport("add", CallingConvention = CallingConvention.StdCall)]
public static int add(int n1, int n2)
{
return (n1 + n2);
}
}
}

this is my c# program and i made dll of this program and used unmanagedExports library in it

now
//+------------------------------------------------------------------+
//| UnmanagedExportsDLLExample1.mq5 |
//| Copyright 2010, Investeo.pl |
//| http:/Investeo.pl |
//+------------------------------------------------------------------+
#import "ClassLibrary1.dll"
//#import "http:/Investeo.pl"
double add(int n1,int n2);

int init()
{
}
void start()
{ Print("add function call",(add(21,34)));}

this is my ea where i am using that dll file but when i am running this in to client terminal the error is"cant load library add() funtion."

Reply With Quote
 
  #6 (permalink)
Trading Apprentice
Montreal quebec
 
Futures Experience: Intermediate
Platform: Ninjatrader mt4
Favorite Futures: Forex
 
Posts: 16 since Aug 2013
Thanks: 0 given, 5 received

if all you want to do is add two integer, you better do it in mql4. people who use dll are mostly EA vendors who want to protect their code from copying.

so, if you can't be more specific about what you can't do in mql4 that requires you to write a dll, i'm going to drop the ball.

Reply With Quote
 
  #7 (permalink)
Trading Apprentice
indore+india
 
Futures Experience: Beginner
Platform: metatrader
Favorite Futures: forex
 
Posts: 30 since Jun 2013
Thanks: 2 given, 2 received

c# program on mt4

sir i have to make a software based on c# class library so firstly i am trying to run that dll through this program so have you any idea about how to do that ?

Reply With Quote
 
  #8 (permalink)
Trading Apprentice
Montreal quebec
 
Futures Experience: Intermediate
Platform: Ninjatrader mt4
Favorite Futures: Forex
 
Posts: 16 since Aug 2013
Thanks: 0 given, 5 received

there is no easy way from c# to mt4, use c++ if you can. otherwise for your error message, have you loaded the required libraries?

Reply With Quote
 
  #9 (permalink)
Trading Apprentice
indore+india
 
Futures Experience: Beginner
Platform: metatrader
Favorite Futures: forex
 
Posts: 30 since Jun 2013
Thanks: 2 given, 2 received

c# program on mt4

sir i loaded UnmanagedExports.1.2.5.18722-Debug this library to visual studio 2012 according to given in <http://www.mql5.com/en/articles/249> this website .

Reply With Quote
 
  #10 (permalink)
Trading Apprentice
Montreal quebec
 
Futures Experience: Intermediate
Platform: Ninjatrader mt4
Favorite Futures: Forex
 
Posts: 16 since Aug 2013
Thanks: 0 given, 5 received


in mt4, have you allowed dll import? (toolsptions:expert - allow dll import). have you put your dll in the library folder of the expert folder?

Reply With Quote

Reply



futures io > > > > c# and MQL4

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help converting MQL4 to ninjascript stefan416 NinjaTrader Programming 4 September 20th, 2015 07:50 PM


All times are GMT -4. The time now is 12:29 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-12 in 0.13 seconds with 39 queries on phoenix via your IP 54.145.16.43