Expert Advisors and Automated Trading - page 89

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
Dear All, I just rented my first VPS from MQL5 via my MT4 platform today.  I set up my charts with the EAs that I wanted to upload to the VPS as demonstrated on the video: https://www.youtube.com/watch?v=NGSHrX-QAOU&index=2&list=PLltlMLQ7OLeKRRhrpy-pZ6REWYUf6W3SV As near as I can tell from the...
How to open modify window of a certain position by code
Hi! I was running the optimizer but it got interrupted (power went out and didn't have my power backup with me). Then I tried it the same test the next day, but the results were different. I thought it was worth asking to understand: Is every run of the genetic (fast) optimizer unique? And is there
Hi guys, I recently asked a developer if they can automate a strategy that I came up with using some indicators from the MT4 market. However they said that it is not possible because in order to execute orders based on an indicator changing color (e.g buy signal to sell signal) there is no actual...
Hey guys, im working on a Expert Advisor and need some help. How can i check if a position has been closed by a triggered Stop Loss? Currently i check if positions are open and if not, i want to know if the last position has been successful closed or as said, triggered by Stop Loss. I searched the...
Hello, i have been trading in forex some time now, with little or no success do anyone think this is good idea? any professional developers out there that can code a hedge strategy? <Deleted>
Hello to you, I hope all you are well and I hope that someone can help me here, the meaning of the trades is bullish so we find ourselves in a bullish scenario, here is my strategy: 1- We have a Haussier crossing of stochastic in H1 2- We descend from 2 timeframe to go to M15 and we will spill the
//+------------------------------------------------------------------+ //| CorkedBehindMZ.mq4 | //| Copyright 2022, MetaQuotes Software Corp. | //| https://www.mql5.com |
I want to put TEMA and MACD together to use. But my code did not work well. //+------------------------------------------------------------------+ //| TEMA+MACD testEA.mq5 | //+------------------------------------------------------------------+ #include
Hello, I have two questions : -When the user changes the settings of the robot while trading. Is the OnInit function is re-call or is there an event when the settings are changed so that the expert can be re-checked them? -Can the SYMBOL_TRADE_STOPS_LEVEL value change along the way on a given graph
Hi , everybody I encoutered an error when i release a new version, This error has never been encountered in the previous release process , I can not find out why this happened, Please help me! The following is the error message and source code: bool TradeClass::SendOrder( const ENUM_ORDER_TYPE _OP
Hello. I am an extreme newbie at this with no formal programming knowledge, so I apologize in advance. I have created a very simple EA. The idea is to have two buttons that will make use of the 'Bulk Operations' commands for "Close All Positions" and "Delete All Orders". The reasoning for this is
this a GPT bot i need your help guys to correct errors and enhance the bot for best possible results (micro account) // Define the currency pair to trade string Symbol = "EURUSD"; // Define the period for the moving average int MA_Period = 200; // Define the lot size for each trade double Lots =