Expert Advisors and Automated Trading - page 118

hi, this is rather odd but ive noticed my MT5 settings when running an EA simply does not change when i make certain adjustments. For example, if i change the Bollinger Band Std from 1 to 4, the only chart visual bands do not change as ive seen them do. This is impact the results from when i print
Hi all, A pending order was issued at 10am with a target price of X. At 11am price reached X so the pending order becomes a market order. Question is how to prevent that if current Spread is above a certain value? Any idea
Hi, I've this error 2023.09.24 08:02:56.564 2021.07.19 10:05:54 take profit triggered #39 sell 0.01 GBPUSD 1.37469 sl: 1.37339 tp: 1.37269 [#40 buy 0.01 GBPUSD at 1.37269] 2023.09.24 08:02:56.564 2021.07.19 10:05:54 deal #27 buy 0.01 GBPUSD at 1.37269 done (based on order #40) 2023.09.24
Hi I've been looking at this indicator and while all the other components seem to work as expected, the .ChinkouSpan seems incorrect. While the tooltip and display look 'sensible' the value returned from the .ChinkouSpan(26) function seems to be stuck at 1.79+308? Even with this simple version from
I tried BuyLimit comand on my EA using Deriv account to trade but i always get Invalid Price error message, I tried to add +- my corrected_price to add slippage (also Ask price, Above market price etc..) but it doesnt accept my order. Any idea on Deriv on Crash 300 Index ? > trade.BuyLimit(0.50
If an EA has this set up: Break even in Pips 5 Trailing Stop 25% Trailing Step in Pips 5 Would I be right that if EA goes in profit, then EA will not sell if EA is between 0-4 pips? Once over 5 pips, the EA will set a new Trailing Stop at 10 Pips and then new Trailing Stop every 5 Pips thereafter
I have a function for finding the price and reason for the last deal to have taken place. I made a change, it stopped working, so I changed it back...and it still wasn't working. I reverted to an older version and it STILL IS NOT WORKING. How is this possible? Oh yeah and backtesting on history data
Hello, I am coding an expert and for volume calculation using below function. double tradelot( double Entry, double SL) { double riskamount = AccountInfoDouble ( ACCOUNT_BALANCE ) * capital_risk / 100 ; double totalpointmoney = ( MathAbs (Entry-SL) / SymbolInfoDouble ( Symbol ()
Hi! I'm using MT5 and Python on Wine+Linux. My code logs in using mt5.initialize(path, login, password, server). It works fine on Windows, but in Linux it logs in, send and receive order information but the history_deals_get can't work. The terminal lacks the history and trade tabs from the tool box
Hello. Please, If I'm testing an EA with an initial balance of 200 USD and the Strategy tester shows that the Free Margin is negative, does this mean that the results of the EA are not good and that it could happen that in the real execution of the EA, 200 USD funds will be burned? Thank you
Hi! As recommended, I downloaded the METATESTER AGENTS MANAGER and install it here in my computer. I have no local network with any other computer. But I see 2 different METATESTER applications here: one when I call the executable directly in its folder. It is in Portuguese, the Agents appear in
Hello there I'm encountering an issue with the AppDialog standard library in MQL5 and would appreciate some assistance in resolving it. The problem I'm facing is related to the unexpected change in the panel name during program initialization, specifically within the CWndContainer module. Here's a
I would like to use this indicator and see the various trend lines, support and resistance, when I start it as expertadvisor to do backtests. the problem is that when I put it on a realtime graph the lines are marked correctly. when I put it as a backtest nothing is marked. how can I modify the code
Hi, this is a part of my EA, how can i convert this to a multi-symbol EA? Where's the best place to learn this? datetime old_time; string symbol_loop[] = { "USDJPY" , "EURUSD" , "USDCAD" , "GBPUSD" }; int RSI_Handle; int bb_Handle; #include <Trade/Trade.mqh> CTrade trade;
Hello, i saved a template with my custom indicator KeltnerChannel in Metatrader 5 and can load it there. But when i try it on the Strategy tester, it isn't working. CS 2 14:01:26.612 Custom Indicator loading of KeltnerChannel WS30,M1 failed [557] It's only working, if i use a build in one. How can i
Greetings I have created an EA but it does not take trades off line,it takes trades only when I am logged in,can you please guide? Kind Regards
Hi, ive taken this code from online but struggling to adapt it. In the backtest, the pivot points vanish once the week is over. Instead i want to see previous pivot points for it designated week, and for the lines to only be drawn during that week. How can i amend this code? int OnInit () { return
Hi, I've been trying to run an EA with an Indicator that uses a DLL. I can get it to run in the optimiser perfectly using all "Local Agents" selection, however I can't get it to run when I switch to 'Local Network Farm'. Regardless of whether the agents are set up on another machine or the same
Hi, I have below code : #include <Trade/Trade.mqh> input double Lots = 0.02 ; input double Lotfactor = 2 ; input int TpPoints = 100 ; input int SlPoints = 100 ; input int Magic = 111 ; CTrade trade; bool isTradeAllowed = true ; int OnInit () { trade.SetExpertMagicNumber (Magic); return (
  Error on ask price  (11   1 2)
I have a simple EA that enters long when an ema is going up, and short when an EMA is going down. When I run this EA in the Strategy Tester Visualization, the price at which buy operations are entered is much larger than the real price. In turn, the Sell operations appear to be on the right price
HI all, is there someone who can help me to developp an EA that prevent to stop trading for the day whenever I reach my daily loss max or got 2 SL. MT4 blocks me for any new trade and can only trade the next open market. MANY thanks in advance
Hi there I don't know if anybody else has experienced this issue with MT5. When EA's close a trade, MT5 starts automatically cycling through different timeframes resulting in the EA opening more trades based on a different frame, including opening opposite direction
Hi everyone, How do I trade candles from a higher timeframe to a lower timeframe? I've researched on the forum, and I know that to switch timeframes, I should use ChartSetSymbolPeriod , but I'm really confused about what I want to do. For example, taking this example case (example.PNG attached)
Hi, I recently ran into a issue with MT5 where my EA does not seem to be setting the magic number or know that it opened a position. #include<Trade\Trade.mqh>CTrade cTrade;ulong magicNumber = 123456;void OnInit()  {   cTrade.SetExpertMagicNumber(magicNumber);   ulong tradeMagicNumber = cTrade...
I can't sync with the VPS, it says it can't connect 2023.09.28 20:36:21.671 Virtual Hosting: 6512116 failed to connect to server 'MQL5 Singapore 03' (18.136.60.134:443 failed)
I have this EA that makes renko graphs, but I see that some wicks are bigger than the bars and I think that should not be there, that instead a new bar should be created, can you tell me if that is correct or not? and if it is correct what is the logic to keep the wick bigger and not create a bar
Gday, these lines aren't showing in the subwindows on the strategy tester. ObjectCreate(0, "MyLine7", OBJ_HLINE, 1, 0, GLOB_MTF_RangeHighs[2]); ObjectSetInteger(0, "MyLine7", OBJPROP_COLOR, clrYellow); ObjectSetInteger(0, "MyLine7", OBJPROP_WIDTH, 1); ObjectCreate(0, "MyLine8"
Hi I ran the tester with the fast genetic algorithm with forward testing. Then I picked a specific result, put the exact parameters into my bot, and ran it in visual mode. I got very different results in both backtest and forward test visual tests . Even the number of trades doesn't match. Any idea
Hello, I have a Python script that automates backtest reports in MT5, starting the platform with a .ini file. Currently, there is a delay when the platform connects to my broker, taking about 18 seconds to log in, followed by 3 seconds to generate the report. Since I need to run many reports, every
I need a hand, I'm using this indicator "Shved Supply and Demand - indicator" for MetaTrader 5 of Behzad Movaghar but I can't find all the low and high values of the blocks that this indicator forms. Can someone tell me what I'm doing wrong or how I can find the other values? I would like to keep