Expert Advisors and Automated Trading - page 79

hi I don't know much about mql5, but need help on how to approach this. I whant to make a deep learning EA, that has; 1º The first inputs ohlc 2º Theese inputs are used as inputs in all the oscilators, indicatos 3º The outputs of 2º) are used as the input layer of the deep learnig ... and so on as
Hello I have written a trading program in mql5 I want to know why it is not compiling please I would appreciate if a person can tell me the problem with it I wrote a trading program but it's not compiling , can you help me check it to see the errors and let me niw why it's not compiling , if
Hello, I would like to have an OBV Indicator that I can choose to add or remove from OBV based not only in close price but also be able to change it to open, high and low. Does anyone have this modified indicator that could share or even help me out on changing the attached code? Thanks in advance
[Deleted]
There is a way in MT5 to apply the optimized parameters/inputs to the expert advisor and then save it as a set file or do I need to set them manually one by one
[Deleted]
double Buffer[][], handle[][]; if ( CopyBuffer (handle[][], 0 , 0 , 1 ,Buffer)==- 1 ) Print ( "Failed to Copybuffer " , GetLastError ()); If i have 2d or 3d array how do i copy buffer to it Note : above code wont compile, its for reference what i am trying to do
Hey guys, wondering if anyone has any clue how to integrate the LR Correlation statistic into the ontester using CTradeStatistics. Here's my code: //+------------------------------------------------------------------+ //| macdrsiadx.mq5 | //|
[Deleted]
  OpenCL  (12   1 2)
Can any one coding OpenCL to any EA ?I pay money for it
Hey guys I am debugging my MQL5 source code . What does the file , function and line block indicate
Someone had the experience to try to move object and it not obey and return success? The follow expert do not move the lines... how to report a bug to metaquotes? HLineCreate and HLineMove has been based on the documentation page of OBJ_HLINE . Metatrader version is from april 4 2023. string ativo=
Hi, I'm using MT5 terminal build 1730 64-bit. I'm running EA in strategy tester (visual mode). This EA has panel with buttons BUY and SELL for manual trading. Why buttons aren't changing state (pressed or not) when I'm clicking it during testing as it works in MT4?
Hi All, I've been trying to open a chart and then plot a moving average from inside a script. This is my simple code: void OnStart () { long _chart = ChartOpen ( "AUDUSD.a" , PERIOD_H1 ); int _myMA= iMA ( Symbol (), PERIOD_H1 , 21 , 0 , MODE_SMA , PRICE_CLOSE ); ChartIndicatorAdd (_chart, 0
hello friends, can anyone help me to solve my problem? I've made an ea using an ea generator and the ea is ready, but when I backtest it in Metatrader, why doesn't it work? please enlighten me
  Help with an ea  (1)
import MetaTrader5 as mt5 from datetime import datetime , time, timedelta # connect to MetaTrader 5 if not mt5.initialize(): print("initialize() failed") mt5.shutdown() exit() # set up the trade parameters symbol = "GBPJPY" lot_size = 1 stop_loss_pips = 20 # switch to the daily timeframe
//+------------------------------------------------------------------+ //| Expert.mq5| //| Copyright 2023, MetaQuotes Ltd.| //| https://www.mql5.com|
Hi, I am trying to debug a very simple program in mql5. In the journal tab I get the message that the start time has changed to ........., which is about three days after when the data actually starts from. I have outputted alot of the variables to the journal tab so that I can see what is what
Using a hedge as a stop is a strategy I have been using to manage risk on swing trades. Is it possible to set trailing stops on an order? When I have tried placing a stop order , choosing a stop loss, I can't make it become trailing. I have seen other threads about missing a trailing stop. But
  Discord API  (1)
Hi, i would like to develop a EA which communicate via Discord. Are there any Discord API / Documentation for MQL5
  Tick history missing  (12   1 2)
Hi, was testing this code: #define FAIL (-1) #define AS ArraySize #define PF PrintFormat #define TTS TimeToString datetime test = D'2021.09.06 00:00:00' ; MqlTick ttt[]; if ( FAIL != ( CopyTicks ( _Symbol ,ttt, COPY_TICKS_ALL ,test* 1000 , 10000 )) ){ for ( int i= 0 ; AS(ttt)>i; i++){
I've read the documentation and I understand you need to select a symbol using the Name method in order to use any of the functions of CSymbolInfo. What I don't understand is how to do that. Every function in the documentation says: When I click on that all I get is: Sorry if this is an obvious
Hello, I can't run Test Strategy on any Expert, error: "optimization max" criterion not started, no Ontester function in....." (any expert) which is not possible. anybody know why and how to fix this? it use the work and stopped. MT5, TY :)
This has been driving me crazy, so I finally ground through and figured out exactly what is going on. In the MQL5 wizard, if MA or PSAR trailing stop is selected, it doesn't work correctly (an otherwise profitable strategy becomes unprofitable) if the initial stop loss is set to anything other than
Hi .I am building a strategy based on martingale. Because the pipe size of TP and SL is not the same in all positions and is different, I am confused about the position volume calculation , please guide me. The basis of the work is that the position is first opened based on the fixed volume of 0.01
Dear Fellow Members How can I programmatically get the Symbols trading session timings for different assets I plan to trade in? So if I want to trade in AMZN Stock, I need to know the timings and programmatically restrict POSITION open and POSITION close just before 'Trade' Hours Close e.g. close at
Left is my EURUSD 1H chart, right is the backtester during a test around the same time. I noticed this because I use the Python API to get data, and as on the left, the 6th hour bar does not exist, but it was traded on. Can anyone explain this
I already made an Indicator that shows Economical Events on chart as Labels. Now I want to show all those events on a AppDialog panel. Most of the times events list is long that overflow from the chart. So I need a vertical scroll on panel. Only ListView object has by default vertical scroll where
[Deleted]
I want to filter normal clicks on chart with clicks on objects I am using this code but its not working if (id == CHARTEVENT_CLICK && id!= CHARTEVENT_OBJECT_CLICK ) { //print something } How can I filter in these two types of clicks
  MT5 Tester issue  (6)
Hello everyone, I want to ask one thing about mt5 strategy tester, I am testing an EA on M5 chart, I select M5 in settings and when I click on START to open new tester window it start testing on D1, further the suspicious thing is that It shows M5 at above left corner of chart but candles are
Hey i developed an EA - it opens very much orders. 100 and more per day. I made there specific parameters for TP and SL. After some pips Profit it trails the SL to BE and then like a normal trailing stop. In the backtests it works perfect. When i do it on a live account the trailing system doesn't
Dear all, In reference to this tutorial at https://www.youtube.com/watch?v=TAzM5Vd9nLs where I need to convert Symbol values into my accounts currency. I am looking to resolve the following: How can I know (programmatically) the currency of a non forex Symbol say UK100, GER40 or XAUUSD ...! I have
Attached Code of My EA (relavant parts only) //+-----------------------------------------------------------------------------------------------------------------------------+ //| INPUT: Input for variable used in the expert advisor //| NOTE: Indicator parameters defaluted in CBase class (