MQL4 and MetaTrader 4 - page 67

Hello what does it mean this expression?...I'm confused with ? : etc. double price = (type == OP_SELL) ? Ask : Bid;
I would like to shade the area between two emas. I know there has been some discussion on this, but I can't find the right solution... I just bought a dell alienware, and it has a 4k screen. So I thought I would mention that I am dealing with high resolution. However, there are two ichimoku...
i will be thankful if anyone can solve an issue with the indicator. i downloaded an indicator "GridBuilder" (attached). it is very nice indicator for grid trading. it  automatically draw linen at given distance in pips/points. but the problem is, it draw lines sometimes above the current price only...
Hello, I bought an EA from the market but when i try to install it on my MT4 platform it says "installation is failed". Can someone help me? Is there any specific settings that must be done on the MT4 platform so i can install the EA? Thank you
I need to run a script during the last run of an ea in the strategy tester. The program should loop through start and during the last run of the start program the script should be executed. If I could predetermine the number of times the start program will run I could create a counter and execute
Hi, I'm trying to read values with OrderSelect active orders only, but when I have pending orders, the code read thei values also. Can somebody help with OrderSelect function to ignore pending order values when I have some, but I don't need their values
Dear Friends, The indicator code is buy Arrow and sell Arrow main signal. Need to modification for after buy arrow signal then next all candles show the buy Arrow (Up Arrow). if main signal sell Arrow created by the indicator next all candles show the sell Arrow (Down Arrow). With Alert for all
Hi! MT4 asks me for conformation when I want to manually close a position, how to change that to NO conformation and direct close the trade? Thanks in advance
[Deleted]
Hi guys,  I have indicator sending notifications.  I want to limit sending notifications to one or "n" per Period set on chart.  Do you have any idea how to limit it? Thanks for help in advance. 
hi, i want set buylimit or selllimit but the price is not run. And sleep it's not run. How can i do ? Thanks //+------------------------------------------------------------------+ //| MACD Sample.mq4 | //| Copyright 2005-2014
Hello friends, Let's say I have an EA, the code is already optimized for back test speed and I do not want to change the code, 1. Which hardware specifications are important for back test speed? 2. My EA is coded in mql4, it is trading all 28 major and cross currency pairs at the same time. Of
Hi As you may know there is option called Configuration at Startup file in this link https://www.metatrader4.com/en/trading-platform/help/service/start_conf_file which you can login you traindg account automatically or run an EA ; common settings Profile=test 3 MarketWatch=set2.set Login= ${
Bar open times are changing retroactively 2023.07.20 22:00 is now 2023.07.20 22:01 2023.07.20 22:15 is now 2023.07.20 22:16 and so on until 2023.07.20 23:46
Hi, I wanted to use my EA for EURUSD and also buy an position in this EA from GBPUSD . But I am getting the OrderSend error 4106. Can't I open a position from another symbol
How do I set the following indicator parameters via MQL4 code in a custom indicator? The only property that I have been able to find that seemed appropriate was only for the main chart and not the custom indicator window ChartSetInteger ( 1 , CHART_SCALEFIX , 0 , true ); ChartSetDouble ( 1
Curious if these the same ? I assume the compound operators need to be in brackets, but I've seen code written this way and wondered why ? Please confirm thanks if (A_high()) ObjectSet( "B6" , OBJPROP_BGCOLOR , clrRed ); else { ObjectSet( "B6" , OBJPROP_BGCOLOR , clrBlack );
I'm asking generically for concept ideas because I don't really understand where to start. I'm trying to figure out how to toggle multiple indicators for EA backtesting so that I don't have to change each comparison line in the the code everytime. I was thinking perhaps bool properties for
Dear Guys I write a code on OnTimer() . EA open trade on time. so i write this code on there. but when i try to backtest this EA all code within OnTimer() not work. How can i do some thing that OnTimer() code work on backtest. Thanks.
Hi when i run a library of Bernd Kreuss base64 //+------------------------------------------------------------------+ //| Encoding data in base64 | //+------------------------------------------------------------------+ void _Base64Encode( string in , string &
  EA Won't Stop  (2)
I have an EA running but today I wanted to stop the EA so I pressed the AutoTrading button on MT4 but I just looked and it still traded today. It is running on a VPS should I disable the VPS to turn it off. And it should also not run on USD/CHF but it still does that some times. It feels like the EA
  API Request  (10)
Hi, I want to send GET and POST request to API. but i didn't know how to do it so i searched for it and found official documentation : WebRequest - Common Functions - MQL4 Reference And I tried it's examples code with some different API's but i don't know how to use JSON Header. Can some one please
I know the reference and book does not mention this but curious how it works for assignment instead of comparison. Can this even be done as intended ? For example: extern bool chart_period=true; // extern bool macdm1=false; extern bool macdm5=false; extern bool macdm15=false; extern bool
I'm trying to retrieve the Ticket number of the Last Closed order. So I tried this: int start(){History_Calling(Symbol(), MagicNumber); BuyOrder=OrderSend(Symbol(), OP_BUY, LotSize,OpenPrice,Slippage,StopLossPrice,TakeProfitPrice, "Buy Order",MagicNumber, 0,Blue);    if (BuyOrder>0){ Print("Order...
Hello everyone. I have an indicator that should show arrows when a candle with no wick one side of the candle forms but it does not work and I do not know why. No errors in meta editor. I was wondering if someone could take a look. It may be a tiny thing I am not seeing. Thanks in advance
Hello All the expert coders, My name is sasanka. I have a very little knowledge in programming. So I would like to request your help to create a EA I have found a custom indicator which is giving very good reliable signals. I will describe how to get the signal . i wish to use this indicator and...
Hi, Can anone help me? I keep getting this Zero divide error with this indicator, it will not show u anything. Much appreciated. Improperly formatted code removed by moderator
Hi It's easily possible in MT5 . I just need to uncheck ' Show Bid Price Line'. I don't see an option like this in MT4. Any other way to do that in MT4
[Deleted]
hey guys, i know there are al lot of threads about this issue but i didn`t find a solution to get 90-99% quality for GER30. can you help me in this term please? thanks in advance.
  Can you help me?  (5)
Hello, I use a system of EMAs whose periods are based on Fibonacci numbers, such as EMA 55, EMA 89, EMA 144, etc However, I realize the greatest EMA which the MT4 can display is EMA 2584 But I want it to display larger values, such as EMA 28657, EMA 121393 Would you please help me find a way to
Hi everybody! I'm new with coding in mql4 and i'm having some issues while trying to implement money managment rules in my EA. Here is the code: bool last; //last trade result bool Last() //check last trade result { for ( int i=OrdersHistoryTotal()- 1 ;i>= 0 ;i--) {