MQL4 and MetaTrader 4 - page 464

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
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...
[Help] Custom RSI is Missing Some Portion of Indicator Lines in 4-Hour timeframe (GBPUSD). I used SMA to get average gain/lose instead of Wilder's SMMA the default mode in MT4/MT5. If I used SMMA then everything works as expected but If I use SMA then some portion of lines is missing. I can't figure...
Hello, I'm learning a few programming languages, including MQL4, and I came up with a question that I didn't managed to find the answer on reference guides.When you define a new function, lets say a simple one: Double Product_3Numbers (double x, double y, double z){Result= x*y*z;Return(result);}What...
  modify ea code  (3)
hi all, I found an helpful free Expert which closes orders after a set time, unfortunately it delete too pending orders! I would like it to close only the opened trade. Someone know how to solve this problem changing the code? thanks
Hi, I am working on a trading systems based on MAs and Sup/Res levels. The idea is if án MA and SUP/RES are very close to each other and price touches that level and bounces back to open an order. One could code that like this: if(low < MA && low < RES level && close > MA && close > RES level)...
Hello everybody, Sorry but i m newbie... I would like to create a simple EA based indicator Dtosc: BUY cross <30 SELL cross >70 I start with indicator but I can't turn it into an EA. Please, can someone kindly show me what are the first steps? This is wrong: if (SD > SK ) {...
At the very first I know that this thread is about MQL5 and I've attached MQL4 code but I think this problem is the same in MQL4 or MQL5 (maybe I'm wrong). EDIT: I've tried in MQL5 and this problem doesn't exist in MQL5 I create (by code) several objects on the chart and the first one is clearly...
Hi, Since I use Android 8 I face some serious problems with the Metatrader4 app. Every time I switch from a randon tab to the 2nd tab (graph) the app quits and I need to restart. I'm using the latest version version of the app (400.1102) and Android 8 on a new Huawei P Smart. I tried already to...
Hello guys, I'm a bit stumped here. I have developed an EA to trade Bollinger Bands. Any of you who have seen my previous topics know I'm new to coding, but I feel like I'm making progress. The issue I'm having is that when running an optimization on this EA, I get a "Zero Divide" error. This error...
Hi, When debugging EA's, you have the handy-dandy Expert tab to send Print() output to. Is there an equivalent way to easily output values when debugging indicators? Cheers and thanks.
I cannot seem to find an option on how to change the time. The candles are 2 hours in advance. When I installed MT4 I was in a different country that was 2 hours ahead. Is there an option to change the time, I wouldnt want to reinstall MT4
I planned an EA trading with grid.i explained grid like this: bool buypoints(){double m[201];for(int k=0;k<=200;k++){m[k]=NormalizeDouble(((uppervalue*1000-steppips*(k+1))/1000),Digits());//uppervalue and steppips are external values for usd/jpy.if(m[k]==Ask) return(1);}} if (buypoints()&&some...
This website uses cookies. Learn more about our Cookies Policy.