Expert Advisors and Automated Trading - page 88

Hello, Greeting, I want to change a number according to the changes in the prices of ask and bid. It means that, for example, for every two point change in each of these two ask and bid prices, my number changes by one point, just like what happens in the trail of a position. Can you tell which
Hi, my broker has mini lots forex 0.01 while for indices 0.1. Doing an expert test on GBPUSD 0.01 and 0.1 profits correspond to lot size. With indices the results are huge, as if it were a whole lot. Who has this happened to and what could be the problem? I can't test the indexes correctly thank
i am getting this error during verification 2020.02 . 03 00 : 02 : 30 current account state: Balance: 1.00 , Credit: 0.00 , Commission: 0.00 , Accumulated: 0.00 , Assets: 0.00 , Liabilities: 0.00 , Equity 1.00 , Margin: 0.00 , FreeMargin: 1.00 2020.02 . 03 00 : 02 : 30 calculated account state
Hello I was wondering if spreads were taken into account when backtesting in Metatrader 5
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