hi , greetings to all , i'm not coding background person . i used the attached ea in older version mqal4. now i try to octafx new version mql4 its not working. kindly any genius help me out from this issue...... it is basically buy sell grid EA
hi devs, How can I capture the account balance on day 1 of the month? I tried the following code but it failed: If(Day() == 1 && Hour() == 0 && Minute() == 0 && Seconds() == 0 ) { Start_Balance = AccountBalance() }
Hello all, I've got this weird issue that I haven't been able to find the answer to, so now I turn to you and hopefully you know what's happening. As a relatively new "student", I'm still experimenting with code and see how it all works together. I've been experimenting with finding objects, and
Hello MQL5 Community, I have 2 errors in my code, I need your help please ! ligne 156 : ' } ' unexpected end of program ligne 29 : ' { ' unbalanced parantheses Thank you so much for your help ! // Expert Advisor for MetaTrader //#include <MT4/MT4.mqh> // define input parameters input int
I am trying to get the moving average value from the rsi, similar to how it is displayed in tradview indicator. I managed to write the below code but it is not working as expected obviously :D Would love any help. I want to get MA 20 (PRICE_CLOSE) on RSI of 14 Appreciate any help! Thank you! int
Respected Senior member !! (Mrtools, newdigital, mladen and others) I got this EA(swb grid 4.1) from other forum, Exactly where I can't remember. There a member of that forum short modify this EA to (swb grid 4.1_V2) but he would not like to share it but he post his Strategy Tester there. Now my...
Hello! I am a bit stumped on something. I have coded what I believe should be a working EA. And I say "should" because the code compiles with no errors and logically it seems okay to me. Still newer in my journey of coding EA's though so I could be completely off. But I try and back test the EA and
Hi guys, I'm trying to produce a VWAP indicator over a daily time period using the 'OnCalculate' event handler as most still use the 'start()' version. After many hours of struggling with this it works about 90%. The indicator does draw on the chart but I get an 'array out of range' error on this
[Deleted]
Hello everyone, I want to take a screenshot every time a certain event happen. In this example I take a screenshot every time a MA upward crossover happen: int OnCalculate ( const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const
Trading system of two indicators. May be used as a filter system as well to filter the signals from other indicators.
Hello! I am new to MT4 and currently learning about Expert Advisors. I thought I'd start with this Guide (https://www.mql5.com/en/articles/100) to developing my own EA. I only noticed later that the Guide offers an example using MQL5. Unfortunately my broker offers only MT4 :-/. By now I have fixed...
Hello, I am new using pointers and the `new` word. I am trying to make a dynamic array of class objects but when I got to the line where I use the `new` word, it crash (in the line 344), I know it is there cuz I added a print before that line and after it and only the one before got executed. The
Hi everyone ! I need the source code of the Elliott wave count indicator. Anyone who can help
Hello, I am trying to modify stoploss using the ordermodify function after partial profit taking in MQL4, but I keep receiving error 4108. All the variables have been declared without any errors. Thanks in advance for your help. else //else if you already have open orders, update your take profit
I know the MODE_MAIN value is an ordinary moving average. What about UPPER and LOWER? What is the formula for calculating the percent deviation? I know how to use it in MT4. Now I want to know how it is calculated
[Deleted]
Hello everyone, I have an indicator that define 2 market condition: uptrend (status =1) downtrend (status = 0 ). When trend change I want to draw n. lines with a fixed distance from a chosen price level. The problem would be that until the trend has changed current lines must be "extended" to the
int fibo( int x, int y, int z) { if (z > 0 ) return x + z * (y - x); else return y + z * (x - y); } int OnInit () { // Initialize global variables and settings here return ( INIT_SUCCEEDED ); } if OnCalculate ( const int rates_total, const int prev_calculated
#include // include the Trade library for buy and sell functions input int period = 14; // set the period for statistical indicators input int threshold = 70; // set the threshold for generating signals double movingAverage; // variable to store the moving average double relativeStrength; //
Hi everyone, Is there any sample code of a MACD Line crosses the Signal Line? I use the following code from the documenation but this is not the code that I was expecting: if ( iMACD ( NULL , 0 , 12 , 26 , 9 , PRICE_CLOSE ,MODE_MAIN, 0 ) > iMACD ( NULL , 0 , 12 , 26 , 9 , PRICE_CLOSE ,MODE_SIGNAL, 0
I keep getting 'INDICATOR_PLOT' - undeclared identifier INDICATOR_PLOT is meant to be an internal variable Wrote the code below but keep getting undeclared indicator error. Code is meant to draw arrows and give alert if price closes outside of 5ema
Hello in MT4 I need use of "3 Monthly" - "6 Monthly" - "Yearly" Chart, do you have any advice? I could not use of priod_converter.mq4 , it will be hang on updating chart could you please help me? Thank you in advance
i keep getting error what am i doing wrong input int ATR_Period = 22 ; input double ATR_Multiplier = 3.0 ; input bool ShowLabels = true ; input bool UseClose = true ; input bool Highlight = true ; int direction; double longStop, longStopPrev, shortStop, shortStopPrev, atr;
[Deleted]
Hello everyone. I have an indicator that plot something similar to a moving average and i wanted to "extend" the last value of that buffer to the end of the visible chart. I tried this but nothing plot: for ( int iBar = Bars - 1 - MathMax (lookback, prev_calculated); iBar >= 0 ; --iBar) {
Hello! Trying to make a trade panel, started to read the documentation and already figured out ( kind of) how to make buttons and basicaly objects with code. One thing I cant find.. there is this box where you enter different values, and from where order function will take the data for SL, TP, SIZE
Hello and Happy New Year to all, Can any expert developer help me to find a solution for special case that few broker disable trading during certain high/medium impact news time. So how to make mobile notification alert for such situations when broker enable the trading after market get back to
Im logged into my broker acct. But I cannot paste my EA into ANY folder in MT4, not Experts, Libraries etc. I also can't get to the folders from the finder "show package contents" path. Im on a Mac and my system is up to date. Any ideas
Can anyone tell me what this BS is on Mt4 with not being able to put limit orders 20 points near the current price?
(14 1 2)
I really don't use mt4 for order entry and I see this when I try. Is this something with just my broker and only with the sell side or both sell and buy? Thnx
I want to make a total TP for same direction Grid order. For example, current trend is BUY and I want to place BUY Grid1, 2, 3, 4, ...... They should be closed altogether when BUY Trend change to SELL Trend. I expect BUY order close price is below orange line. What will be calculation formula in
I'm trying to backtest an ea for a single indicator on the 15 minute time frame. I can run the backtest with 90% modeling quality, but the results are inaccurate. When I open the chart to view the trades made, there are many buys and sells that were triggered by a price not within the range of the
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.