MQL4 and MetaTrader 4 - page 93

Hi, I'm currently in the process of making my EA. I got interested in using a custom volume indicator, but only planning to using the moving average of the volume. I tried using the iCustom code, but it instead gives me the volume of the current candle instead of the volume moving average . Any
I try to create an indicator (i'm a beginner) and I have a problem to display my indicator below a chart. In MetaEditor, when I press F5 to start the debug, a window opens with a chart and my indicator displays correctly below the chart (I see good values and the indicator is updated correctly at
Hello friends, how are you? I hope well. I'm trying to do a simple rule of 3 where the final result should be plotted on the histogram. It is about measuring the distance from a moving average to the closing price of the candle. And the price should be returned in percentage, in histogram format
Hi, I try to calculate an indicator using RSI (and then use it in an EA). But I don't want to apply the RSI to a symbol, I need to apply the RSI to a calculation I'm doing between different instruments. For the example, I am calculating a ratio between 2 symbols: DowJones and Nasdaq. ratio = DJ/NQ
  MetaTrader  (2)
where's to download MetaTrader 4 for Desktop ? everytime i try to install mt4setup.exe it's actually MetaTrader 5 not 4
Hey, i got an wired issue. When i am trying to install MT4 it's comes up with MT5. Can anyone tell me about this
I've got this code. i'm not sure how to show the probability of price distribution spikes in percentage. #property indicator_chart_window // input parameters extern int MAX_HISTORY = 5000 ; extern int STEP = 1 ; //---- string OBJECT_PREFIX = "LEVELS" ; int ObjectId = 0 ;
Hi, I have a MT4 EA and I would like to add a function which stop new order open during xx minutes (with the Sleep() function ) if the last close order is a loss. I built this code below but it doesn't work correctly, what is wrong? for ( int i= 0 ;i< OrdersTotal ();i++) if ( OrderSelect (i
[Deleted]
Hello Guys how are you?  Well i'm doing fine, but stuck with an idea i have for an indicator i'm creating, there are some rules i developed and right now trading a strategy based out of this manually, but i think my trading would be more effective if i had the indicator i am trying to create, but...
My signal provider is using a broker whose gold symbol is "XAUUSD.r" but on Pepperstone the gold symbol is "XAUUSD.a". When there is a difference in symbols MQL checks and tries to match the symbols, however certain conditions need to be met. According to number 3 if the margin calculation is set to
I'm having trouble with MT4 kind of malfunctioning after it's been on for a little while. When I first start it up, everything works normally. I can enter trades, drag SL, close a trade, set a TP and so on. After a while, maybe about 1/2 hour, if I try to drag my SL to BE or enter a trade, or set a
Please advise if anyone knows how to print trading statements from the MT4 app, thanks
Hi I realize that all my log files (mql4/log ) are max 10 days old, different brokers.. are there any way in MT4 to prevent this form occurring? / T
Hi developers! I've searched and haven't found What is the proper way to know if an account is a Copy Trading Master account. ACCOUNT_TRADE_MODE shows 2 (Real account), but not if it's a copy tradig account
Hi there, I tried to set my account to public signal account but now I don't know how to change setting to normal account. Please help me to do it. Many thanks
I have created a MACD histogram but it is only showing 4 decimal places such as 0.0013 and I would like 0.00130 so one more place or more. I have tried to use NormalizeDouble but no change... Does anyone know how to add a decimal place to get more accurate readings? Regards. double currentMACDLine=
Can anyone tell me how to get the sma price at candle open only, and I don't want the value to change. For example a new candle has opened and I have an sma20, I want to get the value of the sma20 at open only and not after it changes, not the normal sma20 price but only at candle open. Regards
Dear all, I'm struggling with a presumably simple task: My custom indicator calculates and plots an indicator line in a window below the chart. Of course, this involves the use of buffers etc. This works as intended. However, now I want to apply the iRSIOnArray() to this custom time-series,that is
Hi, why in the following code is only one bmp image showing? void OnStart () { string objName1= "img1" ,objName2= "img2" ; string imgFile1= "\\Images\\dollar.bmp" ; string imgFile2= "\\Images\\arrows.bmp" ; ObjectCreate ( 0 ,objName1, OBJ_BITMAP_LABEL , 0 , 0 , 0 ); ObjectSetString ( 0
How can I add more currency pairs to the Demo? Do I need to open an actual account
<Deleted> Now i want someone to help me with small modification: 1. i want to add an option to make the distance of the grid expanding geometrically (10pip, 20pip, 30pip) or by a factor (10pip, 20pip, 40pip). can any body help me with that
Hello MQL4 coders, Unfortunately the FileWrite() function lacks the flexibility to define the line number of the given file. Is there a way to write to / overwrite only specific lines in a file without overwriting all other lines or time consuming loops? Thanks for any suggestions or sample code!...
Attached is the .mq4 codefile for a grid system EA. Under certain market conditions and with certain settings this EA is net profitable... as long as you keep a constant eye on it and limit its total positions to (for example) 30 by turning it off when the sum of its open positions and pending stop...
i have grid order example 1 st order ticket = 1 , lot = 0.1 ,openprice = 1.2345 2 nd order ticket = 2 ,lot = 0.2 ,openprice = 1.2367 3 rd order ticket = 3 ,lot = 0.3 ,openprice = 1.2389 i want to get their informations i tried as follow ,but not work , can get only first order information datetime
Hello guys, Im new to mql4 although I know basic C++. Im trying to write a script that outputs a .csv file with the values of some given indicators for each candlestick. To do that Ive written a script that calls each indicator via the iCustom function within a for loop and then writes the value of
[Deleted]
Hi everyone, my mt4 platform comes with ATR indicator that uses this calculation: for (i=limit; i<rates_total; i++) { ExtTRBuffer[i]= MathMax (high[i],close[i- 1 ])- MathMin (low[i],close[i- 1 ]); ExtATRBuffer[i]=ExtATRBuffer[i- 1
Currently, I am trying to import some csv M1 data via the import function in history center, but for some reason the file doesn't register. First thing that came to my mind is it must be a formatting issue, so I have a sample of the data. Can anyone see what is wrong: Column Names: Sample Column
hello apparently some EAs with kernal.dll import has fake backtest or manipulated backtest result i was just asking how can we know what was imported does mt4 provide any detail as to what this readers are importing
Hi guys. Since the TimeCurrent() function returns the time of the last known tick (of the current chart) in OnTick() handler, how can I return the time of the last known tick of a non-current chart? Of course, we all know that the ticks of different charts/instruments don't appear at the same time
I tested order select for false condition of a closed ticket which returns true and not false. Print (( bool ) OrderSelect ( 61057926 ,SELECT_BY_TICKET,MODE_TRADES)); How to know if a ticket was closed, by not being an open order to select