Hi all, After install package: pip install MetaTrader5 Then, I try with code: import MetaTrader5 as mt5 # display data on the MetaTrader 5 package print( "MetaTrader5 package author: " , mt5.__author__) # ok print( "MetaTrader5 package version: " , mt5.__version__) # ok # Initialize connection to
Hi, I am trying to add a mobile alert to the below indicator and have added the following line SendNotification(Symbol(),", ",NameTimeframe(),": Candle size>=",InpLevelSize," pips"); but now I get a 'wrong parameters count' error when I compile it. If anyone could point me in the right direction on
Hello guys..... i'm new here. i want to create EA that help me close all positions when my target profit is reached. usually i use EA that close all positions based on money. but i prefer to close all by the average profit in form of money not pips for all the opened trades. my strategy use Grid or
Martingale: The gambler doubles his bet after every loss... There are a few complicated Martingale math papers floating around and even those are mostly about roulette but I thought of a way to make a really simple math based presentation. First of all I am assuming the goal is to make as much
I'm offering one of my own EA creation for people who want to explore martingale type of system. Because this is written by me, so it would be relatively easy for me to modify and expand it if I see the requests. I have written a lot of grid system for people in the past, some are martingale, some...
I tried to read a setting file. I tried many ways, but failed. I do not know putting setting file in which folder
int all_signals[6][19]; int data[19]; function(data); ArrayCopy(all_signals[0],data); error 'all_signals' - invalid array access How to put data values into all_signals[0] directly
Can a Shared Project contain both an EA and indicators in MQL5? I have compile issues with duplicated OnInit functions. There must be something wrong in my thinking as both the EA mq5 file as the indicator mq5 file have a OnInit function. What is the recommended code style to solve this
Hello, I would like to use a simple expert with the AC signal. I want to insert a Signal_Direction into this. The Signal_Direction is intended to swap/mirror the input signal. So the expert swapped/mirrored the purchase option with the ACSignal. Buy becomes sell and sell becomes buy. E.g. option
Hello. I am working on developing HFT Expert. However, I am facing some problems. No matter how hard I searched, I couldn't find a solution. 1- Some HFT experts work entirely on stop loss. For example, I open a Buy Stop order, but I see that the entry level and stop loss level are the same. This is
Hello MT5 Community, I am developing an Expert Advisor (EA) for MT5 that reads trade alerts from a file and executes trades based on those alerts. The EA is supposed to check for a trigger file, and if the trigger file indicates a new alert, it reads the alert file and processes the trade. However
I'd like to know how i would write a function that will close a partial of all open positions that are in profit every 10 pips. I'm writing a grid EA which has sell stops placed every 10 pips below the opening price and buy stops every 10 pips above the opening price. So how could i go about this
Hi there, Is it possible to drawn objects on second tab during backtest? I tried put the chart_id equals to value of ChartNext(ChartFirst()), but it is only returning -1. Is it a limitation
Hello, I am interested in starting in prop trading, but as a beginner, I have already failed over 15 challenges, which has been incredibly frustrating. I am currently experiencing a mild financial crisis. Is there anyone who could provide information on a reliable Expert Advisor (EA) for prop firms
Hello
I need to know if an order is stopped by a stoploss or take profit. by the server.
I think it is possible in the event OnTradeTransaction () but I can not find the right syntax and magic ticket and order ticket = 0?
Does anyone has an example or a tutorial ?
thank you for your help
As the title said, I'm getting this annoying error for something that should be trivia l, why can't I use variables to declare the dimensions of an array ? Practically I do not know the values for the dimensions as mat would be declared with random values that range between at least 50 and 200. Can
Hi, I am trying to calculate the price level for take profit for a basket/group of positions. It is for a martingale system. The tp should be placed at the price level where cumulative profit of all buy orders is xx in account currency . It seems my calculation is wrong. Can someone see what I am
hi all, I'm creating a bot using Python and mql5, I have a doubt, I want to let the script open a trade, and if that trade hit TP or SL it opens a new trade, is it possible? I can't find the variable to use in comparison I think it's ORDER_REASON_TP but I don't quite understand how to implement
Hello friends Since Sat I am having this problem, which I thought will be resolved by Monday when I have Brokers data. However it still continues. I have tried to search the forum (including my old post of about an year before), but could not find any solution. The problem seems to be in my EA
Hi, There's a way to iterate over all indicators to remove them all? Thanks
Hello I write a python bot and it's working fine with mt5.all the functions that i write is correct and i use lib like metatrader5, pandas and ect for my code. the only problem is backtesting. i know i can write a data loader and reporting system myself with python but it's too much useless work
does anybody has tried any EA trading of shares CFDs on OANDA? i tried but orders are not executing. if manually trading i get this in journal: but if a robot trying to open trade i get this: what could be the reason for rejection? the error code is 10006 i contacted the broker but they have no idea
Is this normal? I have 2 images showing results from profiler. I pressed the history button inside the IDE/metaeditor. mt5 version 4410. but same thing occured in 4380. all settings same, nothing changed in the code. I just pressed the button. 2nd. 12 hours later, no computer sleeping between. mt5
I'm using a script I found here to calculate volume for my trades and it works great on the second run, but always fails on the first run. double lots_maximum = SymbolInfoDouble ( Symbol (), SYMBOL_VOLUME_MAX ); double lots_minimum = SymbolInfoDouble ( Symbol (), SYMBOL_VOLUME_MIN );
Hello there, I do believe I might have hit a wall with Mql5, I am in need to generate an image at runtime so that it can be passed to a AI model and based of the results continue with the execution of the program, I would like to have this functionality integrated in the EA/Indicator so that it
Hi! I'm developing a Grid-EA on MQL5, and I'm stuck on a particular problem. I have the follwing problem to solve and was wondering if you could help me out. This is the problem I'm trying to solve: Imagine we have have a grid of buy positions: 1. buy position 1 lot 2. buy position 2 lots 3. buy...
Thank the platform for sharing so many free excellent EA, I learn and get a lot from here, in order to thank you, I also wrote EA, welcome to exchange and discuss together. (Do not know how to contact the webmaster, whether you can cooperate to publish a share)
Please see the screenshots. Everything seems in 'order'. Hoping for someone to make me look silly by telling me there is only one thing i need to change
Hi there! I´m coding an EA that should place a BuyStop / SellStop order at a specific price and if it doesn't reach this price it should be cancelled after 2 bars (10 min since im using it on M5 timeframe). I tried to do that by setting an expiration time but when I test it on the strategy tester it
Hello! Thank you for having a look at this thread! I'm looking to use multiple EAs on the same symbol and the same timeframe but each EA has its own magic number. Could someone give me a short algorithm which will close an open position which was open by a EA which has its own unique magic number?...
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.