my dear forum members please i had difficulties writing my ea in to dll can someone please help me with an example of writing simple dll for my EA,using C++ 2010 or pascal or clear example how to use dll contain in mql4 platform. especially writing indicator like MA OR BOLINGER BAND etc into dll.
I don't personally write DLLs for trading, but I am curious why you think you need to use a DLL to write an indicator. Could you explain your reasoning?
Perhaps this wasn't clear. I don't know how to write a DLL to interface to MQL4, I have never done it.
When I see ...
__declspec(dllexport) int __stdcall
at work I call in the softies and get them to write that bit of the code!
If I had a working EA, by which I mean one that would actually consistently make a profit in a real account, I would not sell it (or rent it), I would trade with it.
You could try this ...
http://www.metatrader.info/node/150
and others like it found using a google search ...
write a dll for mql4
my dear forum members please i had difficulties writing my ea in to dll can someone please help me with an example of writing simple dll for my EA,using C++ 2010 or pascal or clear example how to use dll contain in mql4 platform. especially writing indicator like MA OR BOLINGER BAND etc into dll.
please my dear forum member any practical code help is appreciated. thanks
That's piece of cake. Patrick Nouvion's dll video tutorial and at forex-tsd, there's also example in your expert folder > samples > DLLsample, and if you still have more Q about dll, - if possible - please don't create new thread, but continue with this one.
And please change the title into "please i need help with dll"
:D
to commend the video however is great but it focus mainly on how to get indicator rates but what i really want is a case where i can simply hide or write part of "Moving Average" OR "BOLINGER BAND" or iStochastic in to dll only.....
let say likelowf5= iStochastic(NULL,0,53,5,20,MODE_SMMA,0,MODE_MAIN,0);
lowf6= iStochastic(NULL,0,53,5,20,MODE_SMMA,0,MODE_MAIN,0);
please any help is appreciated
to commend the video however is great but it focus mainly on how to get indicator rates but what i really want is a case where i can simply hide or write part of "Moving Average" OR "BOLINGER BAND" or iStochastic in to dll only.....
let say likelowf5= iStochastic(NULL,0,53,5,20,MODE_SMMA,0,MODE_MAIN,0);
lowf6= iStochastic(NULL,0,53,5,20,MODE_SMMA,0,MODE_MAIN,0);
please any help is appreciated
You can't write/call MQL4 command and function inside/from dll. Say you want to create RSI indicator with dll, then you have to write the formula of RSI right inside dll and can not using or call iRSI() or iRSIonArray() inside/from dll. This is because dll is Windows API, it will never accept MQL command and function, you just have to write them from a scratch.
Patrick's video also show that he wrote the MA formula inside the dll.
:D
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
my dear forum members please i had difficulties writing my ea in to dll can someone please help me with an example of writing simple dll for my EA,using C++ 2010 or pascal or clear example how to use dll contain in mql4 platform. especially writing indicator like MA OR BOLINGER BAND etc into dll.
please my dear forum member any practical code help is appreciated. thanks