I have included some built in indicators in my EA, but i don't want to show them on the chart, how to achieve that
*** how can i only buy @ the close not when the candle is still forming? trade.Buy(1.00,NULL,Ask,Ask-2.5 , Ask+3.5,"buying"); ***
hello, I was wondering if there is a script or a small function i can add to a chart with a EA.., that trades the EA the same way , but trade the signals opposite of that they would have been. where buy signals would become sells...or sells become buys.. but everything else in the EA would function
Hello, Bellow is the Sample EA code found on https://docs.mql4.com/chart_operations/chartxytotimeprice. Currently, Y axis numbers are descending as they follow the arrow upwards Can you please amend the code so that Y axis numbers are ascending as they follow the arrow...upwards. X axis is OK , Why
Hello Everyone, How can i manage slippage in mqltraderequest ? i am sending a sell request and i want to tell the expert advisor to pay attention if there is a pending order within a slippage. Is it the same as the deviation
hello every one I am new to mql5 but have good programming skills. I want to do the following: make all open buy positions with same tp i tried using the codes in the documentation but it is really hard and i cant find a way out. any help or advice will be highly appreciated
Hello, I use MT platform on my iPhone mobile phone. Is it possible to your MQL5 automated copy trading via my Mobile phone? Kind regards, Metin
Hello, I hope everyone is keeping safe and well. I have written an EA which uses Terminal global variables. What happens to these variables when you migrate the EA to a VPS with "migrate all" option? I am guessing the variables get copied to the VPS along with the Terminal. My question is if I
hello , first of all sorry for my english if i say something wrong. I have this trobule with this code where it suppose to move to BE after 20 pips profit (it does) and then after being in BE do a trailing stop with 50 pips. The problem appears after being moved to BE, the EA as i see tries to do
The MT5 backtest presents inconsistent and contradictory values when it is executed successively with exactly the same parameters and the same data set. The cache (added in newer versions) is possibly hiding flaws in the backtest procedure from the latest versions. The test set has 100 roles and
I am trying to calculate Lot Volume in mt5 based on risk% and stop loss based on ATR(14), also i need pip value for the current instrument. I am new to MT4/5 and C++, but i have managed to learn a lot and have managed to convert an MT4 Oscar indicator to work in MT5. 1. I have seen the code below
I'm using ShellExecuteW from shell32.dll: int value= ShellExecuteW(0, "open", "C:\test.bat", strParameters, "", 1); The batch file runs WEKA to make a prediction which seems to open but returns an error and quickly the console window closes. I want to capture the error from the console. I've tried
Hi, is there any way to get the Time Zone of a server? I have an EA that I want to use on 2 different brokers who operate in different time zones. I'd like it to only trade within a certain window of time each day, and would prefer to be able to set this time limit to my local time and have the EA
Hello, I have an expert advisor to get indicator data (bband, rsi, rvi, ...), write it in a file to import the indicator data in database. I have one EA by indicator, the goal of this is just to write data in file, and not to do display. It's work good manualy, but when i try to load this EA in
Hi there, I'm trying to implement a reversal close module into my new advisor. This is a multipair advisor and all the algorithm is working into this loop, where the value for _Symbol is 'SName': for ( int s= 0 ;s< SymbolsTotal ( true );s++){ string SName= SymbolName (s, true ); The code is
Hi everyone! I am using CTrade library to open a long position at the market price then get the order ticket number. The CTrade document says "Successful completion of the PositionOpen(...) method does not always mean successful execution of the trade operation.", so I want to check if the order is
Hello there, I have an extremely profitable strategy but I need help coding it. It is a scalping strategy with only one key indicator. I'm trying to constrict the TenkanSen and KijunSen buffers of the ichimoku into the indicator chart window with levels 0-100 as the minimum - maximum levels. Please
Hello, Do you know any tool or software that would allow to analyse a portifolio including several strategy reports, including margin levels? The idea is to understand whether specific margin requirements would not be met by trading several pairs at the same time during a specific period. Thanks
I am looking for a script that will allow me write my account history to an external file. I have found exactly what I need using MQL4, but I need someway to convert it to MQL5 or find a script that allows me to do something similar The MQL4 script is here https://www.mql5.com/en/code/13885 The
[Deleted]
I found a few good "script order" that are helpful but none them had auto-trailing stop, and 0 in stop loss is the price of entry. What up with that. Null does not work. I post this topic in hope that someone guide me or send me to an article on how to create an auto-trailing & set stop loss to
[Deleted]
Anyone know an ea that stop other ea from trading & close all current trades after passing a certain price in a chart
Hi all, I want my EA, with strategy tester, to automatically run again after or just before the strategy tester is done. So: run with indicator values, change values after its done or almost done and run it again. I've got the running with indicator part, I also know how to change values I just need
Hello everyone I am trying to place a pending buy limit when the current price of the tick becomes below the Initial price that the trade started with. Unfortunately i am getting the following error: 2020.07.22 11:22:26.992 2020.07.01 00:00:00 failed modify #2 buy 0.1 XAUUSD sl: 0.000, tp: 0.000 ->
Hi everybody, I'am are very new in mql5, i try to develop a EA but i need get the datetime for last open trade. I have the next code but i get forever "2020-07-22 01:00:00" without work. Thank you, Regards datetime GetLastTradeOpenTime() { uint TotalNumberOfDeals = HistoryDealsTotal (); ulong
Is there any way to find an object's name if you only have it's price value? Specifically, I want to be able to determine if a Horizontal Line exists at a given price, knowing only the price value; and get the name of such a line if one exists. I've racked my brain trying to figure out how to do
Hi - I am looking for an opening range breakout indicator and trading EA for MT4 There are just a few on here in the marketplace with not so good reviews - does anyone know of any others available Thanks
Using IG forex mt4 broker Using paid spider pro, USD/EUR on m15 When I use it on my demo account, it works and trades. When I try to initialize it on live account gives me: 2020.07.21 10:44:32.739 Spider Crazy Pro EURUSD,M15: zero divide in 'Spider Crazy Pro.mq4' (1251,36) Could there be a setting
Hi Guys, Just curious I see brokers has business accounts and not sure what people do with it. Do people run networks of accounts? If so, what do they use to run the mt4/mt5? Do they use vps or some special software to trade accounts without mt4/mt5 etc
trade.Buy( 0.02 , NULL ,PriceInfo[ 1 ].close,PriceInfo[ 1 ].low, 2 *PriceInfo[ 1 ].high-PriceInfo[ 9 ].low, NULL ); How come does this open multiple trades on a candle instead of only on the value of the previous low
i'd like to delete a pending order if the price moved 500 points without executing it Here's my attempt CTrade trade; MqlRates pricedata []; ArraySetAsSeries(pricedata,true); int data =CopyRates(Symbol(),Period(),0,550,pricedata); for ( int i = OrdersTotal () - 1 ; i >= 0 ; i-- ) { ulong

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.