Expert Advisors and Automated Trading - page 31

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, 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 | //|
When I use Meta Editor IDE, as soon as compilation finishes, the scripts gets removed / reloaded immediately in Trading Terminal. How can I achieve the same behaviour (reload / reinit scripts), when using command line compilation ? I can nicely compile the scripts using command line compilation, but
Hi guy for create GUI in fast mode exist some software like visual studio for draw a GUI very fast
I have 2 issues with the code - 1. There are no profitable trades in bullish side in past 1 year according to this code , which is not particularly possible . 2. There is issue with fib object creation as well ..... #include <Trade\Trade.mqh> CTrade trade; #define FIBO_OBJ "FIB_RETRACEMENT" input
I have a program that contains 3 EA's, is it possible that P 1 has three trades, P 2 has five trades and finally P 3 has ten trades all in all 18 Trades
I hope someone have a solution: 'Ticket' - undeclared identifier its used here: if(!m_trade.PositionModify(m_position.Ticket(), newSL, m_position.TakeProfit())) also the trade.mqh and Ctrade m_trade; are ok, since im using in other parts of the code. but i got this error to compile, any idea? the
Hi! I'm really with some doubts in selling agents to Meta Cloud Tester. I'm using META5 and I had enabled AGENTS via terminal, indicating my account number and checking the "Sell Computing Resources" box. So, my questions are: 1) Is my computer really enabled to sell time/processing to cloud? I can
i print the Ask(),Bid() in the ticks,but sell stop is invalid. for examp: Ask:2920.69 -- Bid:2920.63 ,i send the sell stop in 2920.54, is invalid price , Would you mind tell me the reason
I'm trying to automate placing orders starting from an external file. The parsing of file is working well. The issue is on create order. I'll show you the code used to creare a Request for and Order: MqlTradeRequest request; double point= SymbolInfoDouble (orders[i].symbol, SYMBOL_POINT
Hi everybody, I would like to ask for help here, please. I have an EA that generates good results in Strategy Tester yet does not take any live trades. Any recommendations what to check / what could be the reason behind no real trades taken ? Thanks in advance for any feedback. Alex
Hi guys i create a gui but when i load in chart if chart is not open full screen , the gui mix all input box button and other , why ? not understund this si my code i attach it, anyone can explain me ? thanks
Hello,  How can I set fixed spreads in MT5 backtesting ? It's always floating? Thank you.