Is it possible to call from MetaTrader EA to external dll library written in .NET (C#)?
Is there any example for passing arrays and other parameters to that external DLL?
What about passing arrays by reference to C# dll?
Hey you all, 5 files. Put them in the experts directory Compile A.mq4 Compile B.mq4 Compile EA.mq4 Put EA.mq4 on a chart Watch the "Experts" Tab Search these 2 lines in the "Experts" tab: ScenarioA: 1 ScenarioB: 0 !!!!!! Error in scenario B: Lib B has a variable named b When the EA Calls Lib B...
First the suggesion. One of the key combinations I'm using often in MS VisualStudio is Ctrl+F3. It takes the marked text as the basis for a search without opening a dialog. Would be nice to have that.
The two mini-problems ar related:
First, sometimes when I type text, the dropdown list with...
i have some propertys in expert what dose that mean
#property indicator_buffers 6
#property indicator_color1 DarkViolet
#property indicator_color2 Blue
because i can't find it in the help
Hey, I'm a little stuck here while making a modification in broker interface. Now I need to write a function that correctly recalculate the OHLC prices of candles in metatrader platform. Metatrader 3 chart combines both Bid and Ask price in the same candle (High of candle is the highest ask...
Why do you check suffiecent no. of bars at end of program - this should be done first, so experts can calculate properly - re MT4 trend follower example.
you have done the right thing tho in MACD example.
I discovered that there must be some lower limit to the expiration parameter of OrderSend; ie, the order can only expire more than X minutes from the current time or the OrderSend() fails. What is X (the number of minutes or seconds from the current time)?
The following code would work on a 15min...
I hope somebody can help with the indicator that I'm working on. I'm using the ObjectCreate fuction to create a vertical line when certain parameters are met. I want to take it one step futher than I have it, but I don't know how. What I want to do isn't really about ObjectCreate....
... create an Elliot Wave Indicator which would "identify" and "number" the Elliot Waves directly on the MT-4 Charts? If any members or MetaQuotes Staff can do this, or if anyone knows of someone else who would be able do this, please post here or drop me an email. Thanks in advance...
One of broker in my country v interested to get metatrader 4 as his terminal . Is it possible to implement any V-SAT data feed into metatrader server and to manage trades via Metatrader4 can any one advice what will be budgetory cost for broker integaration i heard from some brokers it...
I can't for the life of me figure out how to change the item zone used for the charts and data window. I am trying to set my forex charts to EST isntead of the default.
Thanks for your assistance!
If I backtest an expert in my demo account - it works fine. Gives me report/graph/etc.
If I log into my live account and run the same thing - I don't get a single trade. The report shows the starting balance and no activity. This is the same for the sample experts that came already in MT4 as...
Could anyone make me a "Truncated" Moving Average Indicator for MT-4
(or simply provide the script). By "Truncated," I mean the moving
average lines would only extend back for about 15-20 bars, rather than
back to infinity. Other than that, it would just be a typical MA with
I have the problem that my Expert Advisor keeps firing multiple orders during a bar. I tried to limit the orders to the beginning of the bar by using:
if(Time > prevtime)
//execute my OrderSend function
prevtime = Time;
The Start subroutine is called by the system every tick.
If I count limit=Bars-counted_bars then limit is usually i0 to i2, or i0 to i1. which is repeated for a period of time frame, in my case M1.
I do understand updating and building of the current bar i0 however, why is it necessary to...
Could one of you fine MQLII programmers tell me what statement can be used to to sound an audible alarm on a custom indicator? It must be compatible with a MQLII Custom Indicator. Your help would be very helpful. Dave77
Is it possible to trade more than a single financial instrument from the same expert. If I try to set symbol in OrderSend function to anything else than the symbol that was set in the strategy tester, I get the following error:
unknown symbol name ... for OrderSend function.
For instance, if...