MQL4 and MetaTrader 4 - page 185

Hi everyone, I cannot submit EA to the Market successfully, I stuck with the error no trading operator. In my source code will check whether custom indicator exist, if no it will break the program on the onTick() method. Everything working find in my PC for both scenario, i.e, there is custom
Hello, I hope this is not a duplicate topic, and if it is please direct me. I have been writing a code to identify the highest day of the previous week (easy stuff), and the highest 4HR candle of the highest day of the previous week. Not so easy since I have to identify and hold the highest 4HR
Hi all, I am having issues with indicator not loading on chart. They are in the right data folder as ex4 files. When I drag the indicator onto a chart it shows in the Journal tab that it uploaded successfully, but as soon as I click on the OK button on the indicator window, the indicator is
I noticed that when I try to test my EA with a specified use date, it cannot doesn't test all the use date. For example, I specify to test from 2017.01.01 - 2021.10.10 using the 5 minute period. It would then skip 2017-2020 and begin testing in 2021. Have you faced this before & do you know a way
I purchased and successfully activated an MT4 indicator via the marketplace today BUT when I drag the indicator to a chart it will not load on the chart(s). I tested other indicators I purchased previously in the same manner and they all load with no problem. Can you help please
[Deleted]
Hello everyone ! I have a personnal VantageFX account : It's logged on my phone, my computer, and a friend's phone. My friend manages my account : He opens and closes trades. I want to receive a notification each time a trade is opened or closed. I've enabled Push Notifications and Notify of trade
double highestPrice = iHigh ( Symbol (), 0 , iHighest ( NULL , 0 , MODE_HIGH , 1900 , 2 )); How to get what is the datetime of the iHigh in format YYYY-mm-dd 03:12:01
So every time i try to backtest my code error 138 comes up and no trades are placed, no matter how low the timeframe. Would appreciate any feedback. #property version "1.00" #property strict #property show_inputs #include <customfunctions01.mqh> int rsiPeriod = 7; input double riskPerTrade = 0.01;
so i accidentally uploaded this to mql5, hopefully i can get a bit luckier here. Any help as to why no trades are being placed (no matter how low the time frame) would be appreciated. #property version "1.00" #property strict #property show_inputs #include <customfunctions01.mqh> int rsiPeriod =
Hi there, Can you help me please. I can no longer start the MetaEditor. I reinstalled MT4 Metatrader, but it didn't work. I have Windows 10. What can I do so that I can use MetaEditor again? If I start the MetaEditor by double-clicking in the file manager, then nothing happens at all. Course
New MetaTrader 4 Client Terminal Build 207: Fixed considering of leap days when setting data in inputs and in Expert Advisor'ssource codes.MQL4: Fixed error names in stderror.hMQL4: Added optimization when working with strings.MQL4: Fixed processing of literals for date D' and color С' when using...
I am trying to store the mt4 build in a variable on an EA im working on. I have tried to write a comment with the following code to get the build number: Comment(" __MQLBUILD__ = ",__MQLBUILD__," __FILE__ = ",__FILE__); The outputs are not the same as the mt4 build number as you can see on the
hello, I need the data of Stochastic indicator in time frame of 2 or 3 minutes in MT4. problem is that in MT4 these time frames dose not exist. my question is this: can i create the data of 2 minutes by doubling the period of 1 minute Indicator? i tested this and it did not work. i do not think it
  MT4 Error 0  (4)
11:35:00.585 Nasdaq Ghost Robot Platinum US30Cash,M5: Error: 0 0 11:37:17.910 Nasdaq Ghost Robot Platinum US30Cash,M5: uninit reason 5 0 11:37:17.954 Nasdaq Ghost Robot Platinum US30Cash,M5 inputs: NGRP=Settings; LotSize=0.01; TakeProfit=150.0; Stoploss=50.0; PercentToRisk=0.02;
I found some enticing code at https://www.forexfactory.com/thread/672478-the-most-useful-mql-data-structure-object-vectors . I'm new to C++ syntax and OO coding, my way in being MQL4 (I know, I know, I need to move to MQL5 but first, so does my broker lol.) These lines are stumping me: //declaring a
Hi i have indicator Volume by Price but i dont know how to input and how to look at chart ,where can i find the explaination from this site .Thanks
Hi, I'm having problems with the icustom, no matter what I wrote to him, but actually everything seems ok to me Code on EA: //+------------------------------------------------------------------+ //| Timer function |
  ERROR 0 (MT4)  (5)
Hello friends,   I'm wondering about an error in MT4. I test one of my personal EAs and in the journal I see an alert: Error 0 Why error 0? This should mean no error, but orders remain unable to open using this robot !!! ConstantValueDescriptionERR_NO_ERROR0No error returned. Any share anyone?...
Hello guys, where can I find instructional reading materials and sample code to create my own EA? Any suggestions on where should I start
Hi guys , I want pick up two candles high and low by clicking on them, is it possible and how
My EA ran without any problem all day, opened and closed the trades as it should. But, after some time it gave the "Not enough rights" error and did not open the trades. See picture of the Journal tab. What is it and why did happen
Hello, i have that code. It split CCI value by RSI value. Question is someone know how to change it to split Volume/ATR value? input int Period1 = 14 ; // CCI Period input int Period2 = 14 ; // RSI Period input bool Reverse = false ; // Reverse #property indicator_separate_window #property
My earlier similar titled post refers. I've distilled the issue down to the following:- bool CPivotManager::_getPendingHighBefore(datetime priorToTime,datetime &timeFound)  {   int total=_highPivots.Total();   bool result=false;   CObjVector<CPivotCandidate>*sortPivotCandidates=new...
Hi there, I'm new to coding/EA on Metatrader 4 I have a simple Bollinger Band /RSI EA - its generating small profits BUT the profits can go much higher if i don't have a FIXED take profit price i need the Take profit price to adjust to maximize the run QUESTIONS is there a sample code for TRAILING
Can anyone help me ? when I compile in mt4 strategy tester it says expression not boolean ? it used to say something like 0 errors 0 faults etc ? It's got me, it still compiles the expert advisor ok but Its not confirming that there is no errors in the programme. Geoff
In MQL4, we're taught (for example) to use Time to access the array of datetimes for bars in the current period, and iTime to access the time of a bar for periods other than the one the user is currently looking at. However, in MQL5, there is no Time array, so we're forced to use iTime. This creates
Options > Charts setting are not applied, and neither is the default template
I found that MT4 can read files with FileOpen only in Files folder in MT4 terminal. Is that true? Is there any way to read files in another folder ? int FileOpen ( string filename, int mode, int delimiter=’;’)
I have no idea what i should do to fix this can someone help me out a little with my code and explain where and how i messed up it kind of work when i'm testing it but it's not working on every trade this is the code PLEASE HELP going on 2 days i've been looking into this issue int TrailingStop=
What I want to do is to create a trendline with angle based on 2 anchor points and then find the angle using ObjectGetDouble() so it can help me do various trading tasks such as finding chart patterns. See the code below : // OnTick() event handler                void OnInit() {     // Finding 1st...