anuj71
anuj71
anuj71
Added topic Creating Virtual Trailing Stop
Hello, My existing code : void TrailingStopLoss( int TrailingStopLoss_magic)   { // Loop through all open orders    for ( int i = OrdersTotal () - 1 ; i >= 0 ; i--)      {
anuj71
Added topic Best way to filter Orders with Symbol and Magic Number
Which will be more effective, reliable and faster? Code 1 : void CloseOpenAndPendingTrades( int trade_close_magic)   {    for ( int pos_0 = OrdersTotal () - 1 ; pos_0 >= 0 ; pos_0--)      {
anuj71
Added topic Error Code 1 with OrderModify
Hello, What does Error Code 1 means, i am getting this while order Modification. extern double Trailing_Gap = 3.0 ; extern double Trailing_TP = 30.0 ;    if ( Digits == 3 || Digits == 5 )       Pips = 10.0 *
anuj71
Added topic EA Does not work in Zero Spread account
Hello, I have an EA that works well in trading accounts with some spread, but it does not function properly in trading accounts where the spread is zero. In a zero spread account, the limit orders automatically close instantly after being opened, and
anuj71
Added topic Changing Chart Comments to Right Side
Hello, In default, all the Comments texts shown on Left side. I want to change this to Right side. void OnTick () { ChartComment(); } void ChartComment()   {    string buy_l = (Buy_Limit && !Close_Buy_Limit) ? "Active"
anuj71
Added topic Using Trailing Stop Loss in MQL4 EA
Hello, I am attempting to develop a trailing stop loss feature for my EA. Here is the logic: Obtain the entry price of the open trade. Determine the trailing price: Entry Price + Take Profit. Define the trailing gap as follows: For Buy orders, Bid -
anuj71
Added topic 4200 Error on object
I am getting 4200 error, i tried to fix but failed.using RSI to change object. void textobject_side()   {    textobject_array[ 0 ] = "-------------------------------------------" ;    textobject_array[ 1 ] = "" ;
anuj71
Added topic Understanding Trailing Stop Loss
Hello, I am finding little difficult in understanding Trailing Stop loss . How does it work, does it take value from Stop Limit, Trade Entry Price or Current Price or Highest Peak in Favorable direction. After reading some blogs about Trailing Stop
anuj71
Added topic What does OrderType() > OP_SELL mean?
Hello, What does OrderType() > OP_SELL mean? There are a few instances in the EA I am working with that have some if conditions with OrderType() > OP_SELL . I understand that OrderType() == OP_SELL means it should be equal to a sell order , and
anuj71
Added topic Unique Magic Number based on Currency Pairs
Hello, I am trying to add Automatic Unique Magic number based on Currency pairs for my EA. Code 1 : //+------------------------------------------------------------------+
anuj71
Added topic Bool to String
Can we do like this? bool takeprofit = TRUE; Print (booltostring(takeprofit)); Output should be : TRUE
anuj71
Added topic Get Margin Call and Stop Out
Hello, Is it possible to get information like Margin call and Stop out values from Trading account
anuj71
Added topic Unable to add Cents account in Signals
Hello, I am unable to add Real Cents account and Demo account in Signals
anuj71
Added topic Getting Error => Error code = 4200
All the news and vertical line successfully showing in chart but in Experts tab under Terminal keep showing Error code = 4200 for both TextObject and Vertical Line. Error : Error code = 4200
anuj71
Added topic Sorting currency pair by Spread
Is there anyway to sort currency pair in Market watch by Spread (Low to High) and currencies Pair (A-Z) orders
anuj71
Added topic exceed 64 parameters - wrong parameters count
Hello, I am unable to add more to comment.    string commentText = StringConcatenate ( " ---------------------------------------------" ,            "\n :: ===>EA<==="
anuj71
Added topic How to write If-else sequence in MQL4
Hello, What is correct way to add if else statement. Type 1 : if (TradingAccountType == "Demo" )     {         UserTradeAccount = "Active" ;     }
anuj71
Added topic Overwrite .xml file periodically
Hello, I am fetching news from http://nfs.faireconomy.media/ff_calendar_thisweek.xml and it save the file inside terminal/MQL4\Files as  FFCPing(Symbol)-ffcal_week_this.xml (eg, FFCPingGBPUSD-ffcal_week_this.xml). I have added a code to check
anuj71
Added topic Closing Trades if floating balace is in X% In negative
Hello, Logic i am looking for : If floating Balance is less than 1% in negative of account balance => Close the trade (OR) if floating balance is less than $100 in negative => Close the trade Code : extern int negative_equity_percentage = 1 ;
anuj71
Added topic EA Backtest result (Vs) EA Live Market Result
Hello, I have always wondered why the backtest results of an EA differ from its live market results. Throughout my trading experience, I have tested thousands of EAs in both backtest and live market conditions. While most EAs yield impressive