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
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 |
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...
Hi, when im using the code below to return the Print, it doesnt work. when i change the code from "<" to ">" it seems to work however. Not sure why "<" doesnt work though. Any advice would be appreciated. #property copyright "Copyright 2021, MetaQuotes Software Corp." #property link
Hello, I'm having a problem with the shift parameter for the iMACD and iStochastic functions. I wrote a piece of code that is run at the first tick of every hour: this condition is verified by reading the current Hour() and checking if it's > than the Hour() value saved in a static variable during
I am creating an EA where it checks the Close[0] to either buy/close/sell. My question is because bar 0 is not fully formed yet, is the Close[0] considered as the ask/bid? Or is it only considered a Close once the bar has completed. I need to know because if it is only considered a close once the
Good day. I have this Code in my EA that uses SymbolName(index,true); and I am getting data that doesnt represent my market watch. I created a Script that uses SymbolsTotal(true) and also i get inconsistent data. Thjis is What I am getting and this is my Script
i downloaded renko to my mt4 and when It is installed it is offline? Can anyone help
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.