Nabeel Bashir / Publications
Forum
how to search signals for non-algorithmic trades
My question is about MQL5 signals listed here: Trading Signals and Social Trading in MetaTrader 5 – Forex Signals I want to filter signals who DO NOT use algorithmic trading, but I can't figure out a way to search for them. Anyone can help
Why HistoryDealSelect() function is not working as expected
This is a very simple code snippet. I am trying to iterate over all the closed orders and print the deal numbers for now. Why the function returns 4755 error code after the 1st iteration? If the comment out the inner `if` condition, the deal numbers are printed correctly otherwise only in the 1st
Function to calculate TODAY's profit
Why did you post your coding question in the MT 5 General section (a miscellaneous catch-all category) instead of the MT 5 EA section (non-indicator coding)? General rules and best pratices of the Forum. - General - MQL5 programming forum ? (20 17 ) Next time, post in the correct place. I
How to add a trailing stop loss using standard functions
I have been trying to find an answer for this but still unsuccessful. Seniors, kindly guide. I want to do it using MQL5
input parameter default value based on chart timeframe
How can I set the default value of an integer input parameter based on chart timeframe ? For example if loaded in 1min, the default value becomes 123 and for 5min chart it becomes 456
Switching from local agents to MQL5 Cloud agents during a running test
I started backtesting an EA using MQL5 Cloud and after about 70% passes, my balance finished, so I enabled my local CPU cores then but the passes are still running after 1 day. I want to know if I add balance to my MQL5 Cloud account and Enable Cloud Agents in strategy tester, will it resume from
Is this MQL5 Cloud Network fee correct in my sceanrio?
Using MQL5 Cloud Network setting, I tried to backtest my EA for historical data between 1st June 2024 and 12 February 2025. It shows 196,800 passes are needed and already charged $ 158.78 from my balance. After about 80% testing I see the message Not Enough Money . Am I being charged too much
How to close a partial position using standard functions
I open a trade using the below code: MqlTradeRequest request = {}; request.action = TRADE_ACTION_DEAL ; // Specify a market order request.symbol = _Symbol ; request.volume = lot; request.type = ORDER_TYPE_BUY ; request.price = SymbolInfoDouble ( _Symbol , SYMBOL_ASK ); request.deviation =
Is AccountInfoDouble(ACCOUNT_PROFIT) the function for my need?
Is the value returned by `AccountInfoDouble( ACCOUNT_PROFIT )` function the profit of all the currently open positions or today's profit of all the CLOSED + OPEN trades? I want to know the today's profit of my EA. How should I use this function
"array out of range" error while accessing double &volume[]
This is a very simple practice indicator, with minimal code. I drag it to BTCUSD 15m chart and I get "array out of range" error. Why is it so and what is the workaround? //+------------------------------------------------------------------+ //|