Expert Advisors and Automated Trading - page 104

Good evening everyone.. Is there an expert advisor or scripts that close losing deals based on the percentage of capital, for example, 3% or 5%
Is there a function in MQL4 allowing an expert to add an indicator to a chart
Hello, I have created a libraey that works with enumerations that I have created. The problem is that you can't import/export them. How can I do it? Thank you in advance for your help
This is the first part of a series introducing development of classes for custom indicators. In this part I create a class for a Donchian Channel indicator. Future parts will extend on this to include: * A second indicator * Inheritance * Development of an on screen indicator using these classes *
  Trading robot  (2)
no optimized parameter selected, please check input(s) to be optimized and set start, step and stop values please what does this mean
Hi guys, I'm new to coding in MQL4 and I was looking for some help. I'm following a course on coding your first MT4 robot and the EA is now fully coded. I've back tested the EA on around 520 trades and for the most part it works fine. I am not going to use the EA nor is it exactly profitable
Please can anyone help me with this error Ive tried using the CTrade class to modify sl and TP using the trade method, and PositionModify method but it keeps throwing me this error on the tester Heres the src code //+------------------------------------------------------------------+ //|
I'm trying to open an order but I'm getting this warning: declaration of 'myrequest' hides global declaration How can I solve this? This is my code: MqlTradeRequest myrequest; ... void OnTick()  {... MqlTradeRequest myrequest; MqlTradeResult myresult; ZeroMemory(myrequest);...
Hi folks, I'm an IT professional with some coding experience but quite new to MQL5. I recently created my first EA which sends Buy Stop and Sell Stop orders via CTrade class. Although it does trigger the buy or sell order correctly, in the Strategy Tester, it does not triggers the TP and SL orders
I've built a cryptocurrency trading bot called GradientTrader, and in this video I'll show you the tools I used to build it! It uses a graphical interface that lets you back-test on historical data, simulate paper trading, and implement a custom trading strategy for the real markets. The technique
in my terminal i have 1 account open running my ea when i try to open the second one first account disconnects and the ea transfers to the 2nd account any idea on how to keep it open and running on the first account and be able to open another and start running the same ea on other account thanks
Please help guys, I can't seem to find this EA anywhere! The only EA's I'm seeing are those that close all orders when a profit target is reached but I don't want that. I just need an EA that closes an individual trade when a profit target has been reached. Can anyone help with this? Many thanks in
Hi, I'm not a programmer, but want to learn and made a very basic EA using some EA creator. The problem is that each time the TP/SL is hit, while the Entry condition is still met on that same candle, it opens a new trade, which most of the time is not the optimal entry - see attached. How to tell
ObjectCreate(0,"A",OBJ_BUTTON,0,0,0); ObjectSetInteger(0,"A",OBJPROP_CORNER,0); ObjectSetInteger(0,"A",OBJPROP_XDISTANCE,30); ObjectSetInteger(0,"A",OBJPROP_YDISTANCE,30); ObjectSetInteger(0,"A",OBJPROP_SELECTABLE,false); ObjectSetInteger(0,"A",OBJPROP_SELECTED,false); I created a button with the
Hello community, since a couple of months, i have problems to delete variables that are "watched" by the debugger. When i delete them, they disappear but on next debugger run they appear again. MetaTrader 5 Build 3550. Anyone knows how to fix this? Thank you
I want to trade the XAUUSD at the market but doesn't want to have overnight trade. The market closed at 23:59. When I using this EA, all position will closed at 23:50. But another EA will automate open the order after 23:50 and then this EA will close immediately. How can I turn the code to close
as title, my EA have this problem after change to another broker; how to rectify this? i not using mql trade.Buy(vol, _Symbol , 0 ,SL, TP );
I have just started to try MT5 with a view to using the MQL5 VPS which only seems to offer Metatrader 5 platform. I am intending to use an Epert Advisor andf need to create set files for each of the markets I intend to trade. I have just created the first set file and tried to save it. but MT5 only
When i run a backtest, orders on chart seem to be placed outside market. How to fix this? Thanks for help
I have a simple function that draws a daily open line for that day and then also for that week but once i change the timeframe of the function for monthly it just stops working Heres the daily : void CreateOpenLine( int barsBack) { // Set up necessary variables datetime start_time, end_time;
Hi! I need help During the initialization of an expert I received in the log errors concerning the custom inducer that I code. The error message is the following "cannot load custom indicator 'MAFilter.ex5' [4802] ", I received this message for three customize indicator. Know that for the expert and
Hello, I am trying to create an indicator that Plot for example the 4H EMA on a 1H TM chart, but it's not working here is the code : PS : I tried to print out HTF_BUFFER[0] But the values are not correct. Chart Screenshot: Code : #property copyright "Copyright 2022, MetaQuotes Ltd." #property link
I want to simultaneously use TEMA and MACD indicator to open/close position. But my EA always got "array out of range" error in my MACD code part. //+------------------------------------------------------------------+ //| TEMA+MACD testEA.mq5 |
I have my ea on all the fx pairs that my broker has, but I want to limit trading to only a single pair only eg I want each ea to check that there it is allowed to open a trade before sending the order. If my ea on GBPUSD has 1 or more trades open, then only that ea is allowed to open a new trade. I
Hi! I'm coding my very first EA, and i'm stuck with this issue: I would like that evey time that i'm modifying the TP or SL, the Bot reply to the original message and send out a message with the update. I've found this topic here, but i haven't understood it... https://www.mql5.com/en/forum/347358
Hello, I want to be able to turn my EA off in the VPS while still keeping the VPS active. What I have done so far. I have gone into each EA and unticked the "Allow Algo Trading" box. I then Synchronized my Platform with the VPS 5 days ago. The problem is trades are still being opened which is what I
drawing horizontal line on chart if (MA1>M2) && High[1] > Low[4]; from High[1] to Low[4]; OBJ_HLINE(High[], LOW[]); on pervious day. Print(High[1] to Low[4], ""); Pls help to get horizontal line of previous day on chart
Trading at the Speed of Light: How Ultrafast Algorithms Are Transforming Financial Markets A remarkable look at how the growth, technology, and politics of high-frequency trading have altered global financial markets In today’s financial markets, trading floors on which brokers buy and sell shares
sI wanted to launch my product, but it cannot pass verification. The test run my robot on NZDUSD and failed by having no operations. However, my robot is designed for EURUSD. How can I have the test run on pair EURUSD only? My Error file is attached. <<<<<<<<<<<<< Updates I added the following code
I have 2 questions. 1. The market watch is selected/focused and I want the chart to be selected/focused/highlited but how? 2. I practiced a few codes about chart events, and I was able to get mouse coordinates on the chart for example x:100 Y:40. My question is how to move/set the mouse coordinate