Expert Advisors and Automated Trading - page 48

Dear Community, i have a problem with my signal-class: class CSignal_ATR_Alex : public CExpertSignal{   public:          CSignal_ATR_Alex();         ~CSignal_ATR_Alex();   ...   ...}   when I try to use this Signal in my Expert Advisor by creation of this Class:    CSignal_ATR_Alex *signal = new...
Hey, im searching an EA to copy MQL5 signal into my MT5 account. I n eed to copy trades from any source like EA signal into my MT5 account Does anyone use this? THX :)
Hello, Below is the Magic Number column with both numbers and blanks. The blanks are because I manually open trades. Ideally what I would like to do now, is fill the blanks with the same Magic Number so the EA can recognise/pickup these trades. Thanks, if anybody can help
Looking at options for backtesting 2 EAs on the same data set at the same time (i.e. one EA that places orders, the other that opens/closes hedging positions). Is there a way to backtest with both in action? Thanks in advance N
Hi all, I am using iCustom (which I am quite familiar with and have used before) to pull https://www.mql5.com/en/code/22431 (Internal Strength) into a simple EA. Adding to chart - OK Using it's calculations to determine entry - OK Will it show in the Tester - NG (please see pic) Are there any
I am sending an order that is executed and shown in MT5. MqlTradeResult tradeResult = trade.sendBuyMarket( 2 .); OrderSelect (tradeResult.order); double price = OrderGetDouble ( ORDER_PRICE_OPEN ); MqlTradeResult shows 0.0 for price and so does OrderGetDouble(ORDER_PRICE_OPEN): Is
Is there a way to implement AI into the Expert Advisor? For example, embedding it into the code so that when a certain candle is selected, it marks similar candles in the historical data
When i start backtesting the history data download successfully and then start the agent that also start successfully, and start connecting, after connected immediately i got disconnected and connection closed in Journal screen shot also attached below https://ibb.co/BgLrjft https://ibb.co/2vXscRV
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
  Array copy error  (4)
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
  Partial Close  (9)
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
  Python mql5  (2)
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