Expert Advisors and Automated Trading - page 110

I am debugging an EA in strategy tester visual mode and found cases where stop loss (and also take profits( are not triggered timely. As you can see in the attached screen capture: 1- A sell order was executed on Jun 1srt, with a SL of 1.11285. 2- On the next day/candle, the price exceeded the
Hi all, I have written an ichimoku trading expert to place buy and sell trades when certain criteria are met. After deriving all of the individual variables using copy buffers, I use the following code to trigger the buy signal: if (tenkanSen > kijunSen && tenkanSen-1 < Kijunsen-1 &&
I am not using the cloud network, it is disabled in my adviser window. How do i fix this error?
Hey, So essentially I have been testing stuff using the metatrader strategy tester . I have been using a custome expert advisor for a while and it was working completely fine. However like 1 or 2 days ago, all the data seems to be wrong. Getting multiple issues now, with below being the 2 main
Hi , I have a simple question about MT4 platform and order executions by EA’s. Can an EA check the terminal price and the chart price prior open a trade ? Let’s say it won’t be more than “2pip” difference on price comparisons to confirm an order execution . I think an EA can check the chart price
Combine these 3 indicators in the way described here in this video and it will put you well on your way to consistently profitable trading. The indicators used are Stochastic RSI (K line only), CM Slingshot system (cloud only), and ATR stop loss finder. Play around with this simple trading strategy
Hi, I need to edit something in an indicator if you can helping me, please
Hi there, I'm lookin to log the onTradeTransaction() -events of my EA. Where can I find/activate the log files? Similar to the log file I attached. Thanks a lot
Hi all, I have had quite a challenge in that my code opens positions up to the limit of PositionsTotal()<=say 10. I wish to have one position per currency pair at any given time. Kindly find attached part of my code for that part which is not limiting open orders. Please point me to what I could am
I want to calculate the data through matrix and convert the one vector to array for indicator show. And it is found there is no output array function in matrix or vector. the "row" or "col" member only output vector. https://www.mql5.com/en/docs/basis/types/matrix_vector Is it necessary the get all
Since two years we are facing the same bug in MT5 which wasn´t there before. 2755 was the last build which made no problems, all builds afterwards come with the same issue. There must have been a general change within the task management of MetaTrader 5, but we got no help from MetaQuotes to isolate
  2 simple MA crossing  (12   1 2)
Hi, Can someone help me whit this EA based on 2 MA crossing. I have used the MQL Wizard to build it, however I am wondering how to add the buy and sale options to this and also the SL and TP? Thank you all for the the help. Also if this was already posted and resolved please point me in the right
  Normalizedouble  (2)
Below is a section of my code // count open positions int cntBuy, cntSell; if (!CountOpenPositions(cntBuy,cntSell)){ return ;} // check for buy positions if (cntBuy== 0 && bufferRSI[ 1 ]>=( 100 -RSI_Level) && bufferRSI[ 0 ]<( 100 -RSI_Level) && currentTick.ask>bufferMA[ 0 ]){ if
Hi, i just want to know if there is any way to get the name of an EA that placed an order that is already closed. I ve got the history of transactions in my terminal and i was looking old trades and there ir a period where the profitability was really good, but i do not know which EA i used. I think
Good evening everyone.. Is there an expert advisor or scripts that close losing deals based on the percentage of capital, for example, 3% or 5%
Is there a function in MQL4 allowing an expert to add an indicator to a chart
Hello, I have created a libraey that works with enumerations that I have created. The problem is that you can't import/export them. How can I do it? Thank you in advance for your help
This is the first part of a series introducing development of classes for custom indicators. In this part I create a class for a Donchian Channel indicator. Future parts will extend on this to include: * A second indicator * Inheritance * Development of an on screen indicator using these classes *
  Trading robot  (2)
no optimized parameter selected, please check input(s) to be optimized and set start, step and stop values please what does this mean
Hi guys, I'm new to coding in MQL4 and I was looking for some help. I'm following a course on coding your first MT4 robot and the EA is now fully coded. I've back tested the EA on around 520 trades and for the most part it works fine. I am not going to use the EA nor is it exactly profitable
Please can anyone help me with this error Ive tried using the CTrade class to modify sl and TP using the trade method, and PositionModify method but it keeps throwing me this error on the tester Heres the src code //+------------------------------------------------------------------+ //|
I'm trying to open an order but I'm getting this warning: declaration of 'myrequest' hides global declaration How can I solve this? This is my code: MqlTradeRequest myrequest; ... void OnTick()&nbsp;&nbsp;{... MqlTradeRequest myrequest; MqlTradeResult myresult; ZeroMemory(myrequest);...
Hi folks, I'm an IT professional with some coding experience but quite new to MQL5. I recently created my first EA which sends Buy Stop and Sell Stop orders via CTrade class. Although it does trigger the buy or sell order correctly, in the Strategy Tester, it does not triggers the TP and SL orders
I've built a cryptocurrency trading bot called GradientTrader, and in this video I'll show you the tools I used to build it! It uses a graphical interface that lets you back-test on historical data, simulate paper trading, and implement a custom trading strategy for the real markets. The technique
in my terminal i have 1 account open running my ea when i try to open the second one first account disconnects and the ea transfers to the 2nd account any idea on how to keep it open and running on the first account and be able to open another and start running the same ea on other account thanks
Please help guys, I can't seem to find this EA anywhere! The only EA's I'm seeing are those that close all orders when a profit target is reached but I don't want that. I just need an EA that closes an individual trade when a profit target has been reached. Can anyone help with this? Many thanks in
Hi, I'm not a programmer, but want to learn and made a very basic EA using some EA creator. The problem is that each time the TP/SL is hit, while the Entry condition is still met on that same candle, it opens a new trade, which most of the time is not the optimal entry - see attached. How to tell
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