Expert Advisors and Automated Trading - page 20

I want to build two information panels in one indicator and use the Canvas class for that. Because I want only 2 bitmap label objects on chart. I could find this article for creating a panel using canvas class , but unfortunately, it is only possible to create one panel in each indicator. - If you
Hi, i need help. I would to display a bar, cloured, to indicate a status. What i have to do ? Is it possible to have an example of code ? thank you
hi guys i have this part of code , i call it from button void CPanelDialog::OnClickButtonSellLimit( void ) { // Magic Number double lotSize = StringToDouble (m_edit.Text()); // Reads the lot size value double stopLoss = StringToDouble (m_editPrice1STP1oco.Text()); // Stop Loss (0
Hello everyone, I am working on an EA that follows an Alternating Buy/Sell strategy based on price movements, but I have encountered an issue where it keeps opening consecutive Sell orders instead of alternating between Buy and Sell . Strategy Requirements: The EA starts with a manual Buy order (0.1
consider the following code: /* * Curiously recurring template pattern * In my use case the following inheritance tree was intended to work with Candlestick Patterns */ #include <Arrays\ArrayObj.mqh> // base class for all patterns template < typename Derived> class CBase: public CObject {
Hi, i got a few strategies developed and coded by me, i test them to be profitable for the last 7 years (2018-2024 included). i now have a strategy in my hands that is decently profitable 2016-2024 but is not profitable 2012-2015, is that a reason to not take it into consideration? In my mind is the
  Please Help  (25   1 2 3)
Please Help What is the solution to this problem ?? Please help and thank you
Hi guys The strategy tester test my strategy well on major currency pairs such as EURUSD、USDCHF. But when I test my strategy on index such as US500、JP255,the profit and loss shown in the strategy tester is much larger than I expected. The contract size of my US500 is 1. So each 1.0 move of the
Hi all, I'm trying to recall the attached indicator with the followng expert, but it doesn't work. Probably parameters settings are not correct. Could you check please? double Open_Line[] ; int Open_handle ; int Bars = Bars ( Symbol (), PERIOD_CURRENT ); void OnInit () { ArraySetAsSeries
Why do i got "failed instant buy 0.01 XAUUSD at 1810.70 [Invalid volume]" message when doing EA validation ? My product needs user to select the forex pair before it can trade
Hi guys, I am very new to this platform so please bare with me... I have recently started building an ea using mql5. I have coded it in such a way that if the previous DEAL_ENTRY_OUT returns a negative profit value, the buy/sell will not be executed until a new bar has been printed. As part of the
I want script that close all pending orders When OnTick accures. I tested this but not happens: #include <Trade/Trade.mqh> void OnTick () { int total= OrdersTotal (); for ( int i= 0 ;i<total;i++) { ulong ticket= OrderGetTicket (i); if (ticket== 0 ) continue ;
Hi everyone, I'm having trouble attaching my custom Expert Advisor (EA) to MT4. I’ve written a VWAP Scalping Strategy and saved the .mq4 file in the MQL4/Experts/ folder. I also compiled it in MetaEditor, and there were no errors. However, when I try to attach the EA to a chart, nothing happens
Hi guys i have a part of panel dialog that create a edit box //+------------------------------------------------------------------+ //| Create the "Edit_Lott" button | //+------------------------------------------------------------------+ bool
I have an EA with 2 Timeframes of 2 different indicators, both are in the input variable I want to optimize input ENUM_TIMEFRAMES timeframeIND1 = PERIOD_M10 ; input ENUM_TIMEFRAMES timeframeIND2 = PERIOD_M30 ; but there is a condition: timeframeIND1 < timeframeIND2. Actually to get out of the way
I need the correction for this code as I am getting the error warning: -------------------------------------------------------------------------------------- double GetPriceValue(string cPair, int nPeriod, int bar) double price[1]; int priceHandle = iClose(cPair,nTimeFrame1,0);
... let me explain. I want to use the iSAR. My Code looks kind of like this: double asar[]; int OnInit (){ ArrayResize (asar, 4 ); ArraySetAsSeries (asar, true ); sar = iSAR ( _Symbol , timeframe, sarStep, sarMaximum); // aktueller SAR-Wert } int OnTick (){ CopyBuffer (sar, 0 , 1 , 2
Hello traders. im opening this topic in order to discuss and find the way of using HFT eas in normal brokers.. lets see if we can figure it out
Hello, I'm backtesting an EA, but I receive completely different results on two different brokers (GMT offset is equal to -7200 for both brokers). One probable reason is that on one broker time stamp of historical data looks erroneous. Look at attachment: 2017.07.08 is Saturday, but historical data...
I know that this topic has been discussed more than hundred of times. But still...  The code is following: void OnTick()  {  int m_magic = 123456;   // Magic Number   MqlTradeRequest m_request;   MqlTradeResult m_result;//-- Clear structures m_request,m_result   ZeroMemory(m_request);...
Calling positionClose from the CTrade class doesn't trigger the onTradeTransaction event. Is there a different way I should close a position
  Better NN EA  (161   1 2 3 4 5 ... 16 17)
Hi Better has really good EA and is winning the championship Participants - Automated Trading Championship 2007 Profile Better - Automated Trading Championship 2007 What is NN ? Where are the NN threads in this forum? Can anyone here make this EA El cid
I have a problem with reading and Opening File . I guess my Code is fine. The Problem is where the File is created, when i create one with int fileHandle = FileOpen ( "DasisteinTestFile.csv" , FILE_WRITE ); Its Created and directly deleted after the test in
Is the MetaTrader5 Python API still fully functional? I haven't been able to use it to login to my terminal or get my trade history
Hi together! As the title said: I want to kind of reimport the parameters of the results for a longer test run in the strategy Tester after I separated and deleted bad ones. First I want to ask if you know any solution for this? The only one I can imagine is : 1.Exporting the results. 2.Delete all
I am a beginner in IT and I would like to write one condition for my EA. Namely, I have two EAs: Tema_Dema and 2xEma. Description of the situation: I turn on my EA Tema_Dema Condition: 1. If STOPLOSS occurs, trigger the reverse transaction. then 2. turn off EA Tema_Dema. then 3. turn on EA 2xEma Can
I don't understand why this happens https://imgur.com/a/qsr36lT (I don't know how to add images) This is the code. Go to the end to see the buy programming. The strategy uses sma, macd and parabolic sar. When the sma crosses a positive candle, the sar is below the sma and the macd is above zero, I
Hello and thanks for reading. edit : it seems i have posted in the wrong section being tired. i am so sorry about this. First I must apologize if this has been answered somewhere else. I've tried looking here and with google , but everything I found was either to complicated for me to understand
  Expert Advisor  (4)
Hi, good day. Am new here, i need help in building an EA to trade crash 1000, i don't have the resources to pay someone to do it for me. can anyone help me
I have been trying for a long time but could not fix this error. Compatible with MT5. Can you check the code I wrote for errors? //+------------------------------------------------------------------+ //| EmaRibbonEA.mq5 | //|