MQL4 and MetaTrader 4 - page 113

Why does this show more then the number of digits that the broker has ? Example: Print("Last incoming ask price=",MarketInfo(Symbol(),MODE_ASK)); Shows EURUSD,5M, .98806 etc. However, it fluctuates and shows things like .9880600008888999999 or some such thing. Or sometimes it might show EURUSD,5M
Hey everyone, I'm trying to create an entry rule for my EA that prevents trading if my account equity goes under as an example 3% of my starting daily equity. I understand how to code everything EXCEPT how to store my AccountEquity() in a variable at a certain point in time. Here's the code I wanted
hi . i am searching for logarithmic scale andicator for mql4 bot i cant find it plz help me . thanks
Hope Metaquotes will answer: i can't install the MT4 Manager and i want know if the api1.mql5.com working or not (Ping is ok but the download don't work). Version 5.0.0.1398
[Deleted]
  MT4 scalping problems  (15   1 2)
Hello, For an automated system I'm working with stop and limit orders. Often these orders seem to get stuck. In the MT4 terminal where the EA is running the order appears as a pending order, but the EA can't touch them anymore (yellow color, if tried to modify you get error "trade is disabled"). If...
How do I Close in loss? I would like to close in loss (2 pips). The code below closes all order/s instead of 2 pips loss. Please help with the code below. for ( int Loop2= OrdersTotal ()- 1 ;Loop2>= 0 ;Loop2--) { if ( OrderSelect (Loop2,SELECT_BY_POS,MODE_TRADES)) if (OrderSymbol()== Symbol
  Expiry date  (4)
void OnInit () { ArrayResize (text, 26 ); int digits=( int )MarketInfo( Symbol (),MODE_DIGITS); double bid=( int )MarketInfo( Symbol (),MODE_BID); if (digits== 4 || (bid< 1000 && digits== 2 )){ Pip= 1 ;} else Pip= 10 ; if (IsTesting()) prefix= "Test" + IntegerToString (MagicNumber);
Hi, I want to find the Maximum Value from a list of values. I've had a go but i'm not sure how to collate the values into an array. int BA[ 5 ]; BA[ 0 ]= v1; BA[ 1 ]= v2; BA[ 2 ]= v3; BA[ 3 ]= v4; BA[ 4 ]= v5; //We call a selfdefined calculation function int ReturnedResult=Add(BA);
void OnTick () { //--- Download_News(); if ( TimeGMT () == StringToTime ( "18:50" ) ) { double range_day = iHigh ( _Symbol , PERIOD_D1 , 0 ) - iLow ( _Symbol , PERIOD_D1 , 0 ); double range_3h = iHigh ( _Symbol , PERIOD_H1 ,( iHighest ( _Symbol , PERIOD_H1 , MODE_HIGH , 3 , 0
Currently Im sending orders with a slippage as parameter, but when there is news or high volatility the advisor is not respecting it. Also in my strategy there I modify the SL in a certain point, and with the high volatility, again, it took a minute since I modify the order (minute that I spent
Hello, With the trading system that I am using, as with some brokers, they do not allow you to place a trade (demo/live) if it as a target profit is less than ten pips. However, I figured I can have the EA place a trade with no limit and no stop loss (or a very high one); and then immediately place...
I have 975$ as balance. I want to open a position(Buy) which its SL is 37 Points below. How to calculate lot if I want to risk 19$? How to calculate lot if I want to risk 33% of my balance
input ENUM_TIMEFRAMES RSItimeframe = PERIOD_CURRENT; input int RSIPeriod = 4; input double RSIHighLevel = 80; input double RSILowLevel = 20; input ENUM_APPLIED_PRICE RSIAppliedPrice = PRICE_CLOSE; //+------------------------------------------------------------------+ //|
Hello , Is it possible to send HTTP POST request with JSON(application/json) as content type ? I am trying to send HTTP Post request to an API, Please take a look at the code below : string url = "https://myurl.com/wp-json/ap/v1/signal?id=wervsdf&secret=lrjmsrbrh4sd4r45ert5" ; string
Hello I want to download the MT4 platform but I am getting the package related to MT5 (build 3414) https://download.mql5.com/cdn/web/metaquotes.software.corp/mt4/mt4setup.exe?utm_source=www.metatrader4.com&utm_campaign=download Can some fix the download to the correct version°? Thank you
Pls where can I find the documentation guide for mql4 in-built classes that comes automatically with all Mt4 installation located in the include folder like button, panel and other classes. Or how do I go about using them in meta editor, I know they are there but don't really know how to use them or
Please help. =========================================== BACKGROUND OF THE PROBLEM: I need to calculate MACD in spreadsheet/excel for research purpose. So I searched the formula in investopedia and found the formula. Source
Hi everyone This is my promblem. if expression 1( in H1) && expression 2 ( in M30 ) operator But i don' t know how to take value from M30 when EA is working in H1. Can you help me, Please. And if you can, help me make a simple Example. Thank a lot
[Deleted]
is that possible for broker to see whatever yoo use to trade on the chart such as : indicators, lines ....? thanks
Trying to rent Metatrader VPS. The EA I use only works on MT4. I enter broker's server - button says launch MT5 and rent VPS from the platform. I'm not using MT5. I get an error "This file does not have an app associated with it for performing this action. Please install an app or, if one is already
Dear all,    My strategy tester all reports "test generator: no history data "EURUSD15". The directory "C:\Program Files\Alpari UK MT4-1\history\AlpariUK-Demo-Pro" ,  contains a file "EURUSD15.hst". I downloaded the history data recently from a website which claimed to provide ALL THE HISTORY DATA...
AS I am trying tio compile the following code, I am getting error saying "[" array required. I dont know much about mql4. Pls help me figure out why it's showing this error and how to fix it.Thank you in advance. void OnTick() { if(Close[0]>Close[1] & Ask[0]>Close[1]);
Hi, There is a problem in strategy tester which is occurred from yesterday and before that it was ok. When I run strategy tester it shows two errors. Failed to create the button ! Error code = 4200 unmatched data error (volume limit 447 at 2022.08.30 14:10 exceeded) And also as you can see on the
Hey guys I'm new here and have a big prob with dmi_adx_histogram_oscillator, please help me; it dos not update by tester, What should i do? <ex4 file deleted>
Hi all, I was implementing in a code an external/custom indicator, with related external inputs, but the icustom gives me error saying they are wrong ICustom - wrong parameters count double test= iCustom ( NULL , 0
Does anyone know why we can't set default alerts profile in MT4? Each time I set an alert I have to change the settings notification, timeout, iterations, selecting the audio file and then add a 2nd alert just to get a mobile notification . I monitor over 30 instruments and this is just painful
Hi Friends, Metatrader is absolutely the best trading platform in the world this is now known, I wonder how it is possible that a community so full of programmers has not yet extended this prestigious platform to LINUX and in particular to the world of ARM microprocessors such as RASPBERRY. Does it
Hi  I would like to see the spreads from different several brokers on the same chart or same list. It can be a really simple interface like a excel sheet. Is it possible to pull the ask and bid prices from mt4 to a basic software live. https://www.myfxbook.com/forex-broker-spreads  I want something...
Hello, I'm trying to get the opening time of a bar in timestamp/epoch. Time[0] The only solution I'm finding on MQL4 site is not using the property #strict, which I'm not liking as a solution as it'll convert all datetime to timestamps. Is there a way to print the time of a bar in timestamp? Cheers
Hi all. I have an indicator where I'd like to be able to turn one set of lines on and off. I don't seem to be able to use variables to do this. Is there something I'm missing, or some other way to do this? input string dispRF1 = "DRAW_LINE" ; // DRAW_NONE or DRAW_LINE ... SetIndexBuffer ( 1