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
I'm trying to make a code to execute a script like this: // Check the account equity and disable trading if needed void CheckEquity() { double equity = CalculateEquity(); if (equity - initialEquity >= takeProfit || equity - initialEquity <= stopLoss) { tradingEnabled = false
Screenshots of code removed by moderator
Im writing an EA which will place market order at a specific time, everything seemed to be right, no bug, no warning were found when I compiled it. But the problem is when I run it, the system kept warning that my order is invalid CTrade::OrderSend: market buy 0.66 EURUSD sl: 1.07209 tp: 2.00000
I'm trying to use data from the MACD, and according to the documentation index [0] should contain the most recent data point. However I have found that the opposite is true. If I get three data points, [0] is the oldest whereas [2] is the most recent (changing on-tick as the price fluctuates). The
Hi I have created AI bot written in python. How to convert it to .X5 to upload on the market? I have three .py files and one .csv and one .h5. These 5 files are one project , i can connect it to MT5 and predict candles. However, for MT5 market it accepts only .X5 file. So how to convert my python
A major missing element in the MQL language is a universal None type like in Python. MQL5 has "WRONG_VALUE", but with double, for example, it sets the value to -1.0 which is unacceptable in most cases. It became an obvious issue when I was debugging a substantial project and come to find-out that a...
I have a python script I want to implement on MT5. How do I do that
The documentation says: Only part of the request was completed I just want to generate an alert if ever it happens, but are we 100% sure what the return code means? Even though most of us probably never got that error code and can't test it in a demo or strategy tester, do we know if we would get
Hi all, I'd like to test my trading strategy on different days of the week. I've 'followed' the instructions here but I don't seem to understand how to use the functions it suggests. Below is my code; #include <Trade/Trade.mqh> CTrade trade; CPositionInfo myposition; input double cLot= 25 ; input
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.