MQL4 and MetaTrader 4 - page 1229

To post a new topic, please log in or register
How can I start an ea from a currently running ea at a certain time? I tried this, but it did not work: #import "another_ea.ex4" int start(); start(){ datetime certainTime; //e.g. 7:00 AM if(Time[0]==certainTime) { start(); }} A problem might be that the start()-Funktion is defined twice....
Hello experts. I have 4 indicators that I would like to combine them all to 1 indicator with auto reading “meaning that it shows arrows when all 4 indicators matches, what would be the best way to accomplish this? Your feedback is greatly appreciated. Thanks, Mike K.
Developers of the MetaTrader 4 are in Russia, so it is no wonder that the largestMQL4 knowledge base is concentrated in the Russian-speaking part of our resource.We do our best to translate articles into English and Chinese as fast as possible,but lags are unavoidable. So, if you want to enlarge...
Can anybody give me a hint? I want to record the lotsize of last trade as an GlobalVariable. I want to get back the lotsize after restarting the system. // create record for dLots GlobalVariableSet (lotsizebox, Lots); // get globalVariable dLots = GlobalVariableGet (lotsizebox); What's wrong with my...
Greetings, Would anyone be able to provide the ticks (saved as fxt) for October 2007, November 2007 and December 2007 so that I may use it in test? Thank You.
Hi, MQL experts: I would like to implement my trading algorithms in one EA with the price data of different time fames, say H1 and M30. Is it possible to do that? (I only knew that an EA can apply to one chart with its price data of single time frame, but I don't know if it's possible to...
The idea: Go short when bar close higher than the higher bollinger band and go long when the bar close lower than the lower bollinger band. It sounds simple but I can't make an EA for this what works. Please help me! int cnt, ticket, total;double BoolHigh, BoolLow, Mahigh, Malow; BoolLow =...
i want to make the volume appear as arrows when the Volume is green the arrow under the candle and when the Volume is red the arrow above the candlethis code iVolume(NULL,0,i); dont work any one can help!!!1
How can I see the values of moving average or any other indicator when I export data from chart to excel (".CSV" file)? Thanks
HELP! What I have is an existing Martingale program I want to modify. The lot increase works fine. At or above SwitchLots I want the StepSize to increase by AddSteps and like wise the TakeProfit by the same amount. Then at AddSteps_2 to increase and additional amount and like wise the TakeProfit....
Hi all, Does any one know whether it's possible to model custom periods in an EA under Tester? Presently, I can access all the standard periods in EA under Tester [ iLow(NULL,PERIOD_H1,0) or iLow(NULL,PERIOD_H4,0) ]. I have several non-standard MT .hst (90m, 180m, etc) that I would like to model as...
Just downloaded metatrader, opened an account and tried to open a chart. It says "waiting for update." I'm online and this has continued for 5 minutes or so. Anyone know what the problem is? Thanks!
SimonTrader
Hi, The question is simple: attached my attempt. while(SelectTheOrder5555()==true)    {                      if( iCustom(NULL,0, "GaussP_test7", 14, 100000, 1,1) >= Low[1] )              {                        if(Ask<=OrderOpenPrice())                          OrderModify(OrderTicket()...
Is this the correct code for calculating a lot size? double Lots = (AccountEquity() * RiskPercentage * 0.01 ) / ( MarketInfo( Symbol(), MODE_LOTSIZE ) / AccountLeverage()); With this code I get different results between the strategy tester and a live demoaccount. When running with an opening balance...
please i do i use this superXO inidcator. i downloaded it recently but it got me pretty confused...
Please can someone give me a clue as to writing the code to make a n EA trade simulteanously on different pairs?
Here's a problem I have never seen before and that is very puzzling! I have my EA completely disabled and yet it seems to continue automatically opening trades. Is there anyone on the forum that has any idea what would cause this to happen. I have tried closing MT4 with EA disabled and reopening...
Hi, is there an indicator the returns the number of trades opened from a single expert advisor? I don't refer to OrdersTotal() function: it returns the number of trades opened on the entire account. Thank you
Hi, I wrote the followng double. ask_price = MarketInfo("EURUSD",MODE_ASK); Is there the possibility to use this double to call the previous value of ask prices? Something as price(-1)? Thank you!
Hi all! I’m new in programming… and maybe more expericed members can give me a little help with this… I’m trying to find out the best code to detect: 1- the number of pairs which have Open Orders at the moment, starting from OrdersTotal( )…” 2- And then for each of those pairs, the total of Sells,...
If I want to control precisely the range X and Y coordinate of char windows, how to do? now only can get int WindowFirstVisibleBar()double WindowPriceMax(void index) double WindowPriceMin(void index) int WindowBarsPerChart() But now I want set these values to zoom in or zoom out precisely...
Hello, Can anyone tell me why and how to solve problem when platform is not accesing the expert folders, indicators are accesed OK. Thankyou.
Hello all of you. I use the Ergodic-oscillator in QuoteTrader for all my stocks and indices. This is realy a very good trend-oscillator in combination with the Heikin-Ashi Candle technique. Now i would insert this oscillator into MetaTrader, but the oscillator is not loading, after installing...?!...
statement.gif is black when generating detailed statement. anyone encountered this and have a solution? mainly on the MT4 from IBFX.... observed after build 215. thanks in advance.
hello is it anywaye possible to get all the names of the avaible currencys from the used terminal?
This post is for MetaQuotes: A lot of us have been trying to find a solution whereby we can connect to an MS Access DB to query and store info. Would you consider writing/demonstrating how a C/C++ wrapper could be constructed to call a VB6 DLL or a VB.NET DLL (users choice) so that the C...
How can i export pending orders into my program?
What are the methods used to programmatically determine dynamic TP & SL? The only one that I know of is to use ATR... attempting to investigate calculation via percentage% to determine TP & SL? Any advice or resources appreciated...
Hi is it possible to install metatrader customize the layout, templates, config & server files and then create the installer.exe again so when i make an install on another computer the metatrader is ready with my settings
I had a very easy question, please help. i am confuse, i end up with several pending order open at the same time. How to make only 1 Open position ? ex EURUSD SELL 1.5800,If the graph up or down and touches that price, it is still the same, doesn't create another. just like making 1 open or pending...