MQL4 and MetaTrader 4 - page 281

  MT4 Files Functions Replacement.  (112   1 2 3 4 5 ... 11 12)
Hi folks, A lot of people asked me and metaquotes forum about file handling functions. I think MT4 have a lot of bugs in those functions. 1- They don't work in backtesting 2- They don't write outside "MetaTrader 4\experts\files" path. Today I opened my Visual C++ and wrote a file handling dll for
[Deleted]
Hello! I need help.  I have constructed an indicator which obtains results for every tick based on 2 other indicators which I call by iCustom function. I pass the timeframe and all the necessary arguments but the problem is that it gives me different results on H4 and H1 scales but the arguments are...
Hi, I codding a custom fibo levels but when i set orders i do not take an answer. The code is here: if ( Fibonacci() == 0.78 ) { OrderSend ( Symbol (), OP_BUYLIMIT, lot, Bid, 3 , StopLoss, TakeProfit, NULL , 0 , 0 , Green); } if ( Fibonacci() == 0.618 ) { OrderSend (
Please is they any build in function in mql4 that has the same function of trailing stop loss of the manual trading? If none please anyone has a code to trail stop loss as the normal one
Quick and urgent question if I partially close an order, does the new order have the same Take Profit and Stop loss as the older one
I have added comments texts using the Comment function... see my screenshot... i want to style it eg: make the font size more bigger?? Can i change the background color of those texts as well as text color
Hi, it gives me an error here... why? ObjectCreate("Arrow"+iTime(NULL,0,0), OBJ_ARROW ,0,iTime(NULL,0,0),Low); [MQL4] Thanks
[Deleted]
Hi all. I want to count number Bars up ( down ) in x (number) bars, plze help me write this code. thanks u
Good morning friends, I am writing a simple table, using moving averages , and I am making a mistake that I cannot detect. I leave you an image in which surely you can quickly see what I am doing, and the mq4 code. Thank you very much in advance, I am very grateful if someone helps me with this
I got someone to create an EA (MT4) for me along with some parameters  For them, they can see the Inputs tab under Expert Properties  For me, I have the EA loaded up and selected, but cannot find the Input tab I installed on my Laptop and it worked just fine but the only difference is that on my...
I have an Indicator which gives BUY & SELL signals... The Indicator is for Binary Options... Indicator Gives Signal & I Trade On the Next Candle... See My Attached Screenshot... What i want is when the indicator gives a signal (sell or buy) i want to check programmatically if the next candle
hi how can i download MT4 from Metaquotes ? when i try to download MT4 its automatic download me the MT5. I dont know how to make a script at mql5
hi, i am not really good in programming but i have developed one ea using free online ea generator. the ea work well as per my expectation by opening an order when condition meet and close when hit tp i  set. however this ea only open one order when condition meet and will not open another order...
Hello, Is it possible to display UTF8 / Unicode text (for example in Chinese language) in Label/Text Objects in MT4? When I tried to paste such text, Metatrader displayed only question marks ('?') instead of proper characters. If it is a limitation of MT4, is there any work-around of this problem?...
I tried to figure out the parameters the iCustom but i didn't achieved to find out how to receive the 5 day high and 5 day low price so to make my calculations when price break the up or down level. Out of the OnTick() i add this code which i copy paste from indicator's code source: // input
Hi, i just finish build EA, but every time it open position the EA name not displayed on MT4 for Android, just _buy_ status How we can put EA name on every order taken place
  Simple Martingale EA  (12   1 2)
I was wondering if someone could create a very simple EA. its based on a martingale strategy but without opening multiple orders, the EA would work like this: 1- Open Long/Short 2- Set a SL and TP (ex. SL 10 pips - TP 10 pips) 3- If SL is hit another order is open oposite the first order with the...
Any particular reason why my MT4 Ipad trendlines keep disappearing week after week? The chart is not being closed. They just gradually disappear and I have to keep redrawing them, its getting frustrating
//+------------------------------------------------------------------+ //| myMA.mq4 | //| Copyright 2020, MetaQuotes Software Corp. | //| https://www.mql5.com |
[Deleted]
  MT4 downoad  (2)
Hello I'm a new trader When I try to download MT4, the page is redirected to the MQL5 website and MT5 is downloaded instead Anyone with the same problem
Hello Folks, I noticed if there is a computer crash, when i relaunch sometime my terminals, the timeframe of the charts of the currency i was trading have changed. Example before my computer crashed the charts i was trading and running an EA with several pairs were all on H4, after the crash when i
Hello need some advice from the experts i am trying to find the window id of the indicator but there is a bit of a confusion , i know i can find the window id by using the function: WindowFind( "My Indicator" ); but what if there are multiple instances of the same indicator attached on the same
Hi My arrow symbols seems to have turned into a rectangular block, how can i fix this
I developed an indicator to indicate time intervals where trading is favorable for my expert. It does so by producing 1.0 for all the bars where it thinks opening a trade is "allowed", and producing 0.0 for all the other bars. So when my expert logic thinks it is time to open a trade, it checks the
good day I am fairly new to coding. I am trying to get this code to work, so that i can trade with 1% of my equity instead of manually needing to calculate it everytime. I am not sure where I am going wrong. am i missing something? extern bool MM = TRUE; extern double Risk = 2; extern double Lots =
[Deleted]
  Absolute courses  (1125   1 2 3 4 5 ... 112 113)
Good afternoon. I would like to raise this topic. We know the exchange rates of currency pairs. For example EURUSD, or GBPUSD. What does it mean - it is a graph of one currency (euro, for example) in relation to some benchmark (another currency, for example, the Fed dollar). Postulate 1: no currency
In my EA I am getting the error message, "possible loss of data due to type conversion", for both occurrences of "prevtime = Time" in the EA code below: if(Time[0] == prevtime)                  return(0);        prevtime = Time[0];        if(!IsTradeAllowed())                 {...
New article Automata-Based Programming as a New Approach to Creating Automated Trading Systems is published at MQL5.community: This article takes us to a whole new direction in developing EAs, indicators and scripts in MQL4 and MQL5. In the future, this programming paradigm will gradually become the...
I'm trying to run an EA, I wonder why just the green button in MetaEditor4 is available to run my EA, the blue ones are disabled. what are the reasons that make an EA force to run in live but not in history mode in Strategy tester
  MT4  (2)
Hi i would like to install MT4 to my PC but it still install MT5. Can you help me with that please? thank you