MQL4 and MetaTrader 4 - page 150

Hi everyone, I'm trying to make this indicator like the image but no success Could anyone help me please
  Data Discrepancy  (3)
Hi, I am working on and EA which uses AI to take a trade. The problem I am facing is that the data I used to train the AI not matches up with the live broker account I am using. I have tried matching the data with following brokers: 1. Oanda 2. Forex.com None of the above brokers provide historical
here is indicator code // modified by banzai // July 13th, 2020 // not for sale, rent, auction, nor lease // I copied the code from Mr. Tools. Thank you. #property copyright "Copyright 2016, mladen - MetaQuotes Software Corp." #property link "https://www.mql5.com" #property version "1.00"
Hi every one what's problem on following cod for finding pervious day high?!! double High = NormalizeDouble ( iHigh ( _Symbol , PERIOD_D1 , 1 )+(percent*Bid), Digits ); //prev Day High its work properly on tester but in live chart it tack 2 day before high !! note : on opening stocks market
Hi everyone, I want to make a drop down list with the option of yes and no. I need 2 enum with those option. Since enum can't have duplicate data, is there's another way to have 2 drop down list with yes and no option
Hi Guys, Im tring to create an indicator to draw an arrow with a buffer on the chart for when the price crosses above the high or low of the previous day. but cant seem to get it to work, what am i doing wrong? Many Thanks in advance #include <stdlib.mqh> #include <stderror.mqh> //--- indicator
Here it is I used the example from knowledge base here .. but application does not produce good result, only some nonsensical number, see below  What do I do wrong    Example from MQ5 -------> double val=iCustom(NULL,0,"SampleInd",13,1,0); Here I am trybing ------>  double LAG1=iCustom(NULL,0...
  Renko  (9)
Hello guys! So I have this renko indicator and the thing is , that is printing renko bars after 1 minute candle is closed ( on chart from where is taking signal from). So, for example, if I set 50 points renko bars, I would expect that a renko bar is printed when the price traveled 50 points. But
Greetings. I'm trying to access the results of the chart " Optimization Result " when i run a test. I don't really know how to use onTester(), as I can create messages, alerts, sounds, nor change variables. I dont really know when and how its called. What I need to do is get the pass of
  ACD method  (13   1 2)
Has anyone looked at the ACD method in the book by Mark B. Fisher ? is there any MT4 code here for it ? Thanks
here is indicator here is indicator //+------------------------------------------------------------------+ //| HMA color nrp.mq4 | //| mladen |
I have a script to extract historical data and 12 indicators to a csv file for analysis purposes. On the other hand I have an expert advisor which uses the same 12 indicators as input, so it calculates them as soon as a new bar is closed, over the open prices. Both the script and the EA use the...
I coded an expert advisor in mql4 for a client, I deliver it and he tells me that nothing works, in disbelief I try to download his broker and test it and I find that in fact the broker messed up the operations, I compile the code and delete the cache file in the expert advisors folder, once this is
hello, how can i make a candle bar offset with an trendline currently used (ObjectCreate(0,name,OBJ_TREND,0,iTime(_Symbol,PERIOD_CURRENT,startPaintingCandel),nextLowPt,iTime(_Symbol,PERIOD_CURRENT,0)+5*60,nextLowPt but this only extends 5 minutes in the future thank you
How do I close an exe opened with ShellExecuteW? I've heard of ShellExecuteEx and TerminateProcess but I do not know what parameters to import. If anybody could also tell me where you find how to import other shell32 functions for use in MQL4. #import "shell32.dll" int ShellExecuteW( int hwnd
Hello I would like to provide new signal on the account where is already some traiding history. But I dont want to be the history imported into my new signal. (there are trades diff. from my strategy) I want there is imported only trades since i started the signal. Is there any posibility how to
Hello, This morning I have updated my MacBook to the latest system and after this my MT4 wouldn't open. Does anyone have any ideas on how to fix this? Thank you
Hi all, When I initialize a buffer using SetIndexBuffer(), is the buffer contents filled with EMPTY_VALUE? Reason for that is I want to check if there is a value at [1] or if it is empty. Thanks
if OrderLots() value is known , and the Expected Loss is also known , how can one get the Pips ? For example : Let say my expected Loss is $50 and my LotSize is 0.07, How can I calculate the StopLoss Pips so that in case the StopLoss gets Hit My loss would be $50
why am I having trouble installing mt4 programs, all I get is mt5 on windows 10
hello, I have a custom indicator which gives buy and sell signals and want to make an EA based on its signals so I need a video tutorial for doing so ( iCustom function) 
I have coded this EA with a Trailing Stop and I Trailing Take Profit. I would like the Trailing to trail every time it moves so that the stop will move every time a tick moves in the direction of the stop. So if the stop is at 20 pips and moves 1 pip in the direction then back again 1 pip the Stop
hello, I was implementing an indicator in my EA, but I don't understand why it takes only the buffer of the long and not of the short, I send you below the codes to understand what I have done. Thanks for whoever answers me Indicator init: int init() { TimeFrame = fmax (TimeFrame, _Period );
Hi, I'm inspecting this code written by someone else. //+------------------------------------------------------------------+ //| MACD.mq4 | //| Copyright © 2005, David W. Thomas | //|
Hello, I am trying to open a simple piece of code which allow me to open a position (buy or sell) at a certain time (for instance 11:30:58). I would like this code to run on its own and to be able to open this position on its own, but I can't do it :( Any help would be appreciated, thank you
  iClose returning wrong value  (28   1 2 3)
Hi! I'm having a very strange problem when trying to access the close price of the candle in another timeframe. Sometimes the value comes right, but sometimes it comes wrong. Any idea what might be happening? Code: input ENUM_TIMEFRAMES     UseTimeFrame  = PERIOD_D1;Print(iClose(Symbol()...
Hello everyone, I'm not sure how to do this.  Sorry not very helpful code snippet, can it be achieved? if(MRH<MO){c=true;} if(MRH>MO){d=true;} if(MRL<MO){e=true;} if(MRL>MO){f=true;} if(MRH>MRL){g=true;} if(MRH<MRL){h=true;} if(CR<OR){i=true;} if(CR>OR){j=true;} if(g==h){DlWI()};
Hi, In mt4, is it possible to add a pair that gets the historical data manually? I hope the question is easy. Regards
Hello Guys I was writing a script for the first time and now im finished and the order isnt opening and im getting this uninit reason 0 I know that this is the expert remove but how do I fix it
Hello I would like to know how to add the moving average(s) into a separate window (not by code but manually) the screenshot below is for that MA I am asking for: .. set file attached for the above screenshot