anuj71
anuj71
anuj71
Added topic Close All Trade X hours before MarketClose & Start taking after X hours when market open
Hello, I am trying to achieve two operation, On friday before market close , close all the open trade before X hour and On monday after market open, Start taking new trade after X hour. I am trying like this int MinuteToAvoid = 60 ; void
anuj71
Added topic What to use along with OrderSelect? Break, Continue or return?
Hello, what should i use along with OrderSelect? if (! OrderSelect (i, SELECT_BY_POS, MODE_TRADES)) // Ensure order selection is successful          return ; if (! OrderSelect (i, SELECT_BY_POS, MODE_TRADES))
anuj71
Added topic Close All the Old trade except Most X recent Trade
Hello, I want to close all opened or which open trade automatically except 2 most recently opened trade. My code extern int BlindClose = 2 ; void CloseOldOrder( int MagicNumber) {    int OldOrderClose_totalOrders = OrdersTotal ();
anuj71
Added topic [CODE Help] RSI + BB + MA Indicator
I am trying to make a Indicator based on the RSI + BollingerBands + MA My Indicator doing great job by creating Arrows and Vertical line for Signal when matching the conditions but the problem is it not showing RSI, Bollinger Bands and MA in Chart
anuj71
Added topic Sharing My Secret Trend Reversal Strategy with an 80% Win Rate
Hello, I am sharing my strategy, which I am using for manual trading, and I am planning to build an EA based on this strategy soon. This strategy works for all currency pairs and timeframes, but the recommended timeframes are M1, M5, M15, and M30
anuj71
Added topic How to find trend using Moving Average?
Hello, How can I identify market movements (Uptrend, Downtrend, and Range market) using Moving Averages or any other indicators? Currently, I am using the 200 EMA: If the current price is above the 200 EMA → Uptrend If the current price is below the
anuj71
Added topic non-standard timeframes work in Live Market? or it only for Offline chart?
Hello, Article URL : https://docs.mql4.com/constants/chartconstants/enum_timeframes These timeframe only work with offline start or it also work with live market? if ( iRSI ( NULL , PERIOD_M1 , 14 , PRICE_CLOSE , 0 )>overbought)
anuj71
Added topic iClose, iHigh, iLow, iOpen provide the value of previous candle or current candle
Hello, Article : https://www.mql5.com/en/docs/series/iclose iClose, iHigh, iLow, iOpen these values provide the current/Live/real-time candle information or previously closed candle information?. How can iClose value is possible for Current candle
anuj71
Added topic Why is an EA profitable in backtests but blows the account in a real account?
Hello, There are several EAs in the market claiming profitable results by showing backtest data. I have tried tons of free and paid EAs with amazing backtest results. With backtest results, EAs show amazing returns and very low drawdown—even several
anuj71
Added topic If condition to function changing (To check Timeframe and Indicator)
I am redesigning EA, so it can have more accuracy and flexibility. Original code :      if (
anuj71
Added topic Check through all timeframe (RSI)
I am checking iRSI indicator with timeframe M1 to D1. for this i am using string gRandomSymbol = "EURUSD" extern ENUM_APPLIED_PRICE RSI_AppliedPrice = PRICE_CLOSE ; extern int RSI_Period = 14 ; extern int RSI_shift = 0 ; extern int RSI_UpLevel = 80 ;
anuj71
Added topic How to identify a trend or counter-trend using RSI, Stochastic, and Bollinger Bands?
Hello, How can I identify a trend or trend reversal (counter-trend) using RSI, Stochastic, and Bollinger Bands ? What are the recommended settings for RSI, Stochastic, and Bollinger Bands
anuj71
Added topic MarketInfo(Symbol(), MODE_POINT) vs MarketInfo(Symbol(), MODE_TICKSIZE) ?
Which should i use Point Value or Tick Size Value? what the difference and which one is more accurate? What is difference between MarketInfo(Symbol(), MODE_POINT) and MarketInfo(Symbol(), MODE_TICKSIZE)
anuj71
Added topic Not enough memory for X bars for indicator
Hello, I am getting these error from my EA : 2025.03 .24 19 : 23 : 23.626     Not enough memory for 6841107 bars for indicator Stochastic Oscillator (USDJPY,M1) 2025.03 .24 19 : 22 : 43.306     Not enough
anuj71
Added topic invalid takeprofit for OrderSend function & invalid stoploss for OrderSend function
Hello, I am frequently getting two error invalid takeprofit for OrderSend function and invalid stoploss for OrderSend function. Question 1 : I am getting these error in Expert tab not in Journal tab. If order-send is failed, then it should show in
anuj71
Added topic CodeBase Validation Error : no trading operations
My EA is working fine with MT4. What this error mean?. My EA is not stopping Strategy Tester and it not News-Based
anuj71
Added topic Volume Check and Adjust
Article URL : https://www.mql5.com/en/articles/2555#invalid_lot I am getting Error 131 To resolve this, I am trying something like Volume Error Handling . It update value automatically.    Buy_Lot_Size = MathMax ( SymbolInfoDouble
anuj71
Added topic What is the list of Forex Calendar News that creates a big price strike?
Hello, Could you please provide a list of Forex calendar news events that typically result in significant price movements (more than 500 pips) in the Forex market? For example: USD Non-Farm Payrolls (NFP): Average price movement is 500–1000 pips. USD
anuj71
Added topic How to get Stop Out Level and Margin call level
Hello, Different brokers have different Margin call and Stop out level percentage. How to get that using MQL4 code? I am trying something like this but not working double marginCallLevel = AccountInfoDouble (ACCOUNT_MARGIN_CALL_LEVEL); double
anuj71
Added topic Best Approch to calculate the Maxium Lot size
Hello, I am not taking Stop Out Level, Risk Percentage or Stop Loss into the consideration, The maximum lot size i can take in my account with Account Balance. While calculating the Lot size one major problem is Forex = 100000 Unit Gold = 100 Unit