MQL4 and MetaTrader 4 - page 446

[Deleted]
Hi folks, I'm completely new to MQL4 and C++ programming, but I've managed to piece together (butcher) an indi that produces an opening range box based on the highs and low of the session opening candle. My question (and problem) is, I'd like the range box to only be produced after the candle has...
how can I get previous bid and ask price in mql4?
Hello all, I could need some help with this modification. I am trying to change the OBJ_VLINE to a OBJ_TREND in order to stop it from drawing the line on the bottom indicator window and only drawing the line on the chart. But I am unsuccesful as my coding skills are basic at best. Any help would be...
hi guys, im new to coding in mql4 but i need some help..... im trying to code in a way that would allow me to automatically draw fibo retracement lines between the last low/highs of a zigzag indicator line and an arrow indicators point... like for instance.... if a new sell arrow appears i would...
  Pattern  (22   1 2 3)
Pattern indicators.
  OnTimer  (2)
A problem I have been chasing for some time is probably caused by the timer interrupts a vital history data update or a follow up routines for new data. I have been thinking of different ways to handle this problem. The timing is not crucial, it just a way to refresh data on regular intervals. 1....
  Organising the order cycle  (147   1 2 3 4 5 ... 14 15)
Comments not related to " mql4 language features, intricacies and tr icks" have been moved to this thread
Hi, I've attached a couple of images. One is where I have the bars small and one where the bars are larger. If I drag on the time axis on the chart window, going left makes the bars smaller, going right makes them bigger. In the images, there is an indicator that I have programmed that has "wave"...
For some reasons I am using the old version of mt4. Please installing EA seems different on this old system compared to the new mt4s. Any idea how to install and run my EA on older versions (2001 to 2009) of mt4? Help
Hi folks, Scratching my head on how to do this.  I have about 90 charts open, all running different EAs. I'd like to loop through the charts and check what EA is running. If the EA matches a string then close the chart. I can't seem to find the right function to do this.  long chartID=ChartFirst();...
For some reasons I am using the old version of mt4. Please installing EA seems different on this old system compared to the new mt4s. Any idea how to install and run my EA on older versions (2001 to 2009) of mt4? Help
I use MT4 on my phone via the app and it suddenly restored all settings to default and deleted all my chart markings. Is there anyway I can get these back or will I have to redo all of my TA? Thanks
Puria.mq4 #define MAGICMA  20050610 extern string Trades             = "Настройки торговых операций"; extern double MaxRisk            = 0.2; extern double Lots               = 0.1; extern int TakeProfit            = 150; extern int MinProfit             = 100; // минимальный профит extern double...
Hello, The following script places a Buy/Sell order with predefined SL and TP lines using drag & drop, and places entry wherever you let go of the mouse cursor on chart.. All good... I would kindly ask if someone is willing to just remove the confirmation window from the script. Currently when you
Hi All, Having a spot of bother with data in back testing an EA. I've tried deleting and refreshing, downloading and refreshing, period converter, restarting the terminal, disconnecting from broker and the works. I receive the "TestGenerator: unmatched data error (volume limit 11077 at 2018.02.02 10...
Hi All, On back testing an EA that operates on H1 time frame I receive "TestGenerator: unmatched data error (volume limit 11077 at 2018.02.02 10:00 exceeded)" in the journal. I have tried disconnecting from MT4 + Broker, deleting all history in the data folder and re-downloading it as is advised in...
I have two existing trades that I am trying to modify. At the time of modification, the new order parameters are as shown below. I get Modify error 3 (ERR_INVALID_TRADE_PARAMETERS). Can't tell why. For the buy-stop order below, the OrderPrice is higher than current Ask by more than the...
I have an EA coded which contains a Trailing Stop I like.   I know that there are other standalone TS EAs or Scripts out there but their instructions aren't clear to me.   This TS works on the floating P/L of the account and closes all positions when the stop is triggered.  This is the code:   Can...
  EA BUG  (7)
i'm trying to write an EA and i have little problem, the EA calculate some bar's data at the end of every bar i used code below: if (candle1!=iTime(Symbol(),PERIOD_M1,1)) {candle1=iTime(Symbol(),PERIOD_M1,1); ....} this code works perfectly every minutes; when i run the EA for first time, EA results
Just looking for some coding help. I designate shortname for indicator I want to be able to delete: int init() { IndicatorSetString ( INDICATOR_SHORTNAME , "PA" ); ... return ( 0 ); } Then for the indicator that will be deleting the one above, code is below. I assume all I should need to do is
Hello everyone, I have been trying to use a button to switch between charts in the watch window. I can switch charts but the previous one isn't being removed/deleted . void ChangeChart() { CurrentSymbol = SymbolName (Next_Symbol, false );Next_Symbol++; Close_Chart = ChartClose
Hi all, is there any engulfing pattern indicator that can provide notification to my smartphone where there is a engulfing pattern alert and it shows and draws fibo everytime there is engulfing pattern forming. If there is links to buy it would be great.
When I debug a MT4 program (currently a script), I after some short time are thrown out of the debugging process and have to start new (Soft-Key "Start debug"). At this point "Stop debugging", "Step into" etc. are inactivated (of course). This seems to be correlated with the frequence of market
Hi  I'm getting into crypto trading and want to use my mt4 indicators. Could someone recommend a mt4 broker that has lots of crypto symbol to use? lmk that would be great. J
I am making an indicator to identify tops and bottoms of price movement and connect them just like the zigzag indicator actually there are three buffers: tops[] , bottoms[],and zigzag[] which is the combination of tops and bottoms my problem is that sometimes the same candle  qualifies to be have a...
Something strange overhere, only when i close and restart the metatrader 4 platform orders from my EA are placed, immediately.. Has it something to do with connection, or with the EA, but what? Ed
[Deleted]
I know this has to have been answered before, but I can't find it in the forums... So on with it. How do I make my indicator update every tick? I have an indicator that draws an arrow above and below a candle that is an inside bar. The problem is that when a new candle forms, it is an inside bar,...
IndicatorCounted() - Which are the Default or Correct indicator calculation in MT4/MT5: Current data to Previous data ("Right to Left" or "Zero to Last bar")?? Someone said that if you started in current data (" 0 ") for indicator calculation then your indicator become lagging indicator?? WTF! I
Hi, I'm Newbie of coding. Copy, Paste and edit is my Practice now, i facing some problem hope you guys can help me. Please help to solve the error as below. Thanks 'Verbose' - variable not defined  Utility Functions //=============================================================================...
hi, sorry for bad englih, I have one expert advisor, but backtest is very slow, in robot code have my indicator code, (in this way my robot not need indicator for use) but I thin this is not reason for slow backtest ( because I delete my indicator in robot code, so in this way for my robot use need...