It means i have a ea and in that EA Trailing stop is mandatory for profitability but my brokers Spread are not allowing the trail to workout! I want to add Live Spread into Trailing stop how can i do that
in this simple snippet I get the following compilation error: 'ticket' - undeclared identifier An idea how to resolve? Improperly formatted code removed by moderator
Hi, I'm currently learning about class for the first time. I have 2 strategy that using the same include variable file, one for long position and the other for short position. In variable file, some of the variable contains trade direction such as SymbolsLong and SymbolsShort and it is used only for
Hi I want to use an EA on several charts (1 is master mode for writing to the file, others are slave mode for reading from the file) int OnInit () { if (InpMaster) Handle = FileOpen (InpFileName + ".csv" , FILE_WRITE | FILE_SHARE_READ | FILE_CSV | FILE_COMMON , "," ); else Handle =
Hello, I am curious about the limit for requests to the latest info available on an economic event. When I went to the mql5 website and tried to scrape the data, my ip got banned shortly after and therefor made me concerned if the same thing could happen if i was to write an EA with a loop, and
Hi, MqlTradeRequest request; MqlTradeResult result; ZeroMemory (request); ZeroMemory (result); request.action = TRADE_ACTION_DEAL ; request.type = ORDER_TYPE_BUY ; request.symbol = _Symbol ; request.volume = NormalizeDouble (buy_volume, _Digits ); double price = SymbolInfoDouble (
Is this Correct Trailing Start & Step Source code ? #include <Trade/Trade.mqh> CTrade trade; void Trail(){ int PT = PositionsTotal (); for ( int i=PT; i>= 0 ; i--){ ulong tick = PositionGetTicket (i); if ( PositionSelectByTicket (tick)){ if (
Hello! I am wondering where I can get information about how the computational process during the strategy optimization works in Metatrader 5. How can I get the best computational results during that process. There is any limit of memory RAM per Core that Metatrader 5 has during the Strategy
Hi everyone, just started working with MQL5 Python integration and found a question that I just can't get right import MetaTrader5 as mt5 time_now = datetime.now(pytz.timezone( "UTC" )) today_start = time_now.replace(hour= 0 , minute= 0 , second= 0 , microsecond= 0 ) print(f "START TIME -
Hi, does anyone know which CPU would be faster for strategy tester: Intel Xeon E5-2690v2, 10x 3,0 GHz (Turbo 3,6 GHz), 20 Threads or Intel Xeon E5-4657Lv2, 12x 2,4 GHz (Turbo 2,9 GHz), 24 Threads Thanks
I’m in the process of learning how to use MT5 with python. My demo account through the broker had a starting balance of £1,000, and it looks like this: account_info=mt.account_info() account_info AccountInfo( trade_mode=0, leverage=1, limit_orders=200, margin_so_mode=0, trade_allowed=True
Hi everyone, There is a fantastic tool for the MT4 called toggle border. This tool makes the light blue edge/frame of all charts disappear (multichart) and thus reduces the view to the most necessary/important thing, namely the chart. I combed through everything to find this script for the MT5 too
Hi everyone, I'm trying to program cleanly, what do you recommend for storing trade information and being able to manipulate it until the trade is closed? I'm hesitating between creating a structure type variable , and creating a class with object manipulation to store all this information. thank
[Deleted]
Eas not open position when the price reach EMA25 pls help me fix Thanks
Hey Guys, I have a reasonably profitable EA that always generate large drawdowns during major news announcements but it doesn't have the capability to pause "autotrading". Does anybody know of a good EA that can pause Auto Trading during major news announcements and turn it back on...
Hi everyone. I am new to MQL5 but have managed to create some code that buy and sell as I want but I am having trouble with the closing of the trades. I want the trade to close as soon as the next and oppisite trade opens, can anyone help? TIA #include <Trade\Trade.mqh> #include
Hey guys, I'm quite new to MQL5 so this might be a noob question. When I get my entry signal I want to open 4 positions, each with the same Stop loss but but different Take profits. So I guess my question is how to I open 4 positions and how do I set each position with its own take profit level? I'm
I'm trying to get the upper and lower values from iBand... void OnTick () { double upperBand[]; double lowerBand[]; double range; int handle = iBands ( _Symbol , _Period , 20 , 2 , 0 , PRICE_CLOSE ); // CopyBuffer(handle, which band, period, no. values, where to store)
I'm talking about const members of simple types that are not static (and are not pointers). class CFoo { private : const int i; public : CFoo() { i = 1 ; // 'i' - constant cannot be modified } }; Why is it possible to make members of simple types const? Such a member will not
I want to run OnTick on history in different symbols one after the other Each time the balance must be reset Is it possible to do it via code
Good morning How are you ? I'm looking at the terminal log to debug some of my code for data synchronization between the server and the terminal. Here it is IM 0 09 : 57 : 10.990 (GOLD,M1) History check for GOLD for timeframe M1 FF 0 09 : 57 : 10.990 (GOLD,M1)
Can a function be accessible only to an include file
Good day I want a script to enlarge a chart to the maximum size That is: When Expert mode occurs on the chart, the chart is enlarged to its maximum size automatically Thank you all
New to mql language I'm getting: 'iclose' - cannot convert enum' error on this line of code: h = iHigh(_Symbol, _Period, iHighest(_Symbol, _Period, iClose(_Symbol, smoothTimeframe, 0), trendPeriod, 0));(Symbol(), PERIOD_M1, 0) any help appreciated
Hi all, When running a single simulation in the Strategy Tester with the "visual mode with the display of charts, indicators and trades" checked ON (Settings tab), I get a new separate window with the full simulation. That is what I want. However, I also get another (undesired) chart in the terminal
So I transferred my VPS to another brokerage account. Then I transferred it back to the original one I had it on. All of the sudden, migration keeps failing. I looked for answers here, and one of the suggestions was to try connecting to another server and restarting my terminal. So I did that. It
Hi together, I (think I) read alot about how to calculate profits and loss of open tickets/deals. In some MQL4/5 talks there so many different opinions and guesses. Im really confused now what is the way or the best way to calculate PnL for the open tickets/deals. The last thing I read that should
I'm getting the below 2 warnings when I compile my expert advisor . Can someone please point me in the right direction to get the 2 functions working implicit conversion from 'number' to 'string' TrendBotV2.mq5 68 27 implicit conversion from 'number' to 'string' TrendBotV2.mq5 116 25
Hi, I want to change code below to a template so that I can used it on enum data type, bool GetIniKey( string fileName, string section, string key, int &ReturnedValue) { string result=GetRawIniString(fileName,section,key); if ( StringLen (result)> 0 ) { ReturnedValue=( int )
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.