Hey, I am quite new to coding in Meta Editor, but I have this code for a MA cross-over strategy, where it should generate orders every time the MA crosses and terminate the orders, when it crosses the opposite way. It does work somtimes, but if I backtest on real data it seems that it is only
Hi, I need to code swing high and lows inside large legs. Say the leg is A to B and i need to get sub high and sub lows (a,b,c etc.) within the leg A-B Thanks ckm
There is a chart event for the click of the central mouse wheel
Hi, i am trying to fix this code buy and sell at same time but getting error '}' - unexpected end of program and '{' - unbalanced parentheses can any one fix and complete the code for me. #include <Trade/Trade.mqh> input int InpMaxTrades = 10 ; // max number of trades input double
Hi all, this is the procedure I'm trying to accomplish : RAW_STRING : is a string from input, this string is converted into a uchar array (considering the \0) , encrypt the uchar array using AES256 method (with a constant and proper-sized key) , represent a Hex array from the encrypted data (saved...
Hi. I need help on my code. Maybe some can help me :) I need next: 1. I need to be able to set the Take Profit value in the settings. 2. When the order is opened, the Take Profit set in the settings is set. 3. If the position has been reversed for 1 minute, close the order. 4. If current candle
How do I get the close price and close time of a trade after it has hit SL/TP? At entry I do something like this to log the open time information myTradingControlPanel.PositionOpen( _Symbol , ORDER_TYPE_SELL ,lot,currentBid,slPrc,tpPrc, "Sell Trade. Magic Number #" + ( string )
Hi, i was wondering if anyone has an expert advisor that meets the following or would be able to write one for me? Buy when macd is x amount above signal line Sell when macd is x amount below signal line T/P S/L Number of lots to buy/sell Only allow to many trades to be open Free margin to always be
Hello there. We're running into an issue trying to print out our list of pending tickets and attached the simple code base as well as a few screen shots of what we're seeing in testing. Issue is the last pending order never gets printed and even if manually adding print statements accessing that
i want move text below low candel? string text= "my text string "; datetime tim= iTime ( _Symbol , PERIOD_CURRENT , 1 ); string Name= string (tim); double price= iLow ( _Symbol , PERIOD_CURRENT , 1 ); ObjectCreate ( 0 ,Name, OBJ_TEXT , 0 ,tim,price);
I want the EA logic to start trading when 2 MA's cross and stop trading when a trade closes in profit or when there is X number of consecutives losses. But its not working that way, its just trading normally. I need some to help me out please
Let's discuss video "i made Chat GPT even better for trading | improving the ai model by OpenAI"
(6)
i made Chat GPT even better for trading | improving the ai model by OpenAI this video is exactly what you are looking for. by the end of the video you will know everything you were looking for! i believe that coding is the great equalizer. no matter someones situation, if they can code, they can
Hello all, Is there a simple way to insert the day of week into the SymbolInfoDouble to check if today is having triple swap? MqlDateTime time; TimeCurrent (time); Print (time.day_of_week); Print ( SymbolInfoDouble ( _Symbol , SYMBOL_SWAP_MONDAY)); Thank you
Dear,
I want to know what is different between Symbol() function and _Symbol variable.
I know both return current symbol name. but which should i use.
Hi Friends I have a confusion which One of the following "if statements set" is better in terms of CPU performance? If statement set [A] if (STTH01[k+ 1 ].fastTrend == SHORT && STTH01[k].fastTrend == LONG) { mPriceSL = STTH01[k].fast;
Hi I am a very beginning stage of coding i managed to do this via you tube, i need help on open only one trade at any time. after closing the next trade has to open. please help me on this. I am using mql5 #include <Trade/Trade.mqh> input group "Trading Inputs" input double Lots = 0.1 ; input
Hi, I have created an Expert Advisor that uses multiple timeframe analysis. I found a certain problem when I am running the EA through the Strategy Tester. I would like to use visualization(ObjectDraw) so as to see if what I am programming is what i want it to do. However, I realize that only the
Problems with My EA. I have problems with a complex function of my EA. Every day, pending orders are renewed, however some of them are repeated at the same price level. There is an indicator and I use the price of that indicator as an entry reference. 1- I would like if it were possible to compare
I coded this EA to open opposite position for each position opend by another EA, as a risk managment hedgin strategy. now I can't solve 1 error in it " 'OrderSend' - wrong parameters count 3242342.mq5 53 14 built-in: bool OrderSend(const MqlTradeRequest&,MqlTradeResult&) 3242342.mq5 53
Hello everyone, from my understanding of the documentation, it is implied that you *may* be able to start multiple backtests in parallel by specifying the port of the target agent that will execute it. Source : https://www.metatrader5.com/en/terminal/help/start_advanced/start Port — the port, on
I bought an EA for MT4 and installed one time. When I contacted with the vendor to get an updated SET file, was told he'd have to rework the MT4 version to get it to function properly and that I should use the MT5 version. I can't cancel the purchase & I sure can't afford to throw the $715 in the
Good day all. I am fairly new to MQL5. I attempted writing an EA code based on the stochastic indicator but the trades are not closing even when the conditions are met. kindly help me debug. the trade is supposed to close when there is a reverse cross of the indicator opposite to the one that
Hello everyone. Can any body help me identifying the validation error, I have asked service desk but they refused and said they only support of financial issues. I am getting "Not Available" error while uploading ex5 file
Is there's an mql5 function for calculation of diffs (python's .diff() function) or percentage change? diff is the difference bt last close and current close. It bounces up and down around 0. I couldn't find it in the documentation
Hi I have been trying to code a SMA into my EA. I need to do this because I want to see the buy and sell signals in relation to the SMA know that it is working the way I want it to. What is happening at the moment is a straight line is being drawn from some anchor point and travels right from left
EA only places one trade with the correct sl and tp but it never opens another trade #property copyright "Copyright 2022, MetaQuotes Ltd." #property link "https://www.mql5.com" #property version "1.00" #include <Trade/Trade.mqh> #include <Trade/PositionInfo.mqh> CPositionInfo m_position;
Hi all I would like to check in the expert advisor if the markt is open/close. What's the easiest way to do that? I don't want do check that over time. I also need to know when the market open again after the short close every day at 11pm. Thanks FX_TA
Hello Guys im trying to find the simplest way to run the configurations of my settings rather than manually adjusting the inputs window, since I run my EA multiple time in the same pair, I have to manually put each settings one by one, is there's a simplest way to do that? like just running the EA
I created a custom synthetic symbol for NAS100 and did an optimization. after the optimization was completed, i ran a single test for a parameter and then checked the backtest results and the first thing i see is History Quality 0%. I am using Every tick based on real ticks model and the single test

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.