I'm requesting two new functions usable in MQL4:
1) a function to return the margin required for a given number of lots. A lot of experts testing for tradeability based on remaining margin, have to assume the amount of margin that is needed. It would be nice not to have to assume the amount....
How do I limit only one trade per cross when using an expert.
I want to be able to trade the same expert on different crosses on different charts .
So if I am long usd/chf and the gbp/usd gives a sell signal I want it to sell it. Then if Eur gives buy signal for expert to buy that aswell. So i...
How does MT4 Calculate Williams Percent R?
I have tried to dupicate it by using this formula
HC = Highest High [in %R Periods] - Close [today]
HL = Highest High [in %R Periods] - Lowest Low [in %R Periods]
%R = HC / HL * -100
But If MT4 is using a different formula then I would like to know...
I have a question about arrays, specifically when referencing bar arrays.
int h1 = High;
int h100 = High;
returns two values in the series. The first returns the LATEST bar, i.e, today's bar while h100 returns 100 bars ago. So an array of bars counts BACKWARDS from today to...
I have just started using Metatrade, and find it to be a very nice programme. My compliments to the designers. Can I ask what effect does selecting "Draw object as background" have, in Line Properties, for example? I select this option, but can see no difference between this and leaving it in...
There are many trading platforms which haave charts and all have different Time Zones, some GMT, some European, some US EST, and an odd one gives the trader the right to have local times. Is it possible to allow the trader to set as a default the Time Zone that suite the individual.
I need to access daily data from an indicator that is intended to be used in a smaller period.
i.e, How can I get the HIGH price for the day of the current bar, supposing I'm running the indicator in the 5 minute chart?
Another one that I wrote up while developing the Thomas DeMark Pivots
//| DialyPivot.mq4 |
//| These are the days hiest high and lowest low |
Is it possible to provide a vertical Indicator window to the left or right of the price window? This will have a y-axis of price, the same as the price window (scaling the same way) and have a user definable x-axis.
The x-axis can then be used for an indicator related to price. I have a need...
Is there a way to reference bar data (open/high/low/close) from other symbols (charts) within MetaQuotes. For example, let's say I'm working on an algorithm to trade USDJPY and I want to reference the last close price for EURJPY.
Likewise, is it possible to do so with current spread data...
Sorry to post about this again but my newbie-coding brain is having difficulty in figuring out the code structure. What I'm trying to do is to build an array (only) that I'm able to reference from my trading expert, presumably from within a custom indicator. I don't need any display, just...
This morning (May 12, 2005) my automated trading system wants to close USDCHF buy order 1.2149 at server time 15:30:39 and close EURUSD sell order at 1.2716 at 15:30:40. But the system only closes the USDCHF order for me. I have 2 trading systems and apply to the corresponding chart like USDCHF...
I am facing problems in the DDE with MT4. The update of data seems to stop after 4-5 minutes for no reason. The MT3 version works OK however.
Do MT3 and MT4 support COM? this could be helpful for using the RTD command in Excel.
Nominations: Best Software Awards 2004
MetaTrader CE took part in nomination the financial soft for pocket computers. It did not win, unfortunately.
MetaQuotes Software Corp. plan to improve MetaTrader CE 4.00.
Is it possible to have Stops and Limits input as pips and not as an amount which has to be calculated. A trader can now set the number of lots to be traded with your system as a default which is great. Is it not possible to be able to set Stops and Limits in the same way as a default number of...