Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Intraday Trading 5 Minute Chart Indicator - MetaTrader 4 Script | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

If you want to copy directly then here is the code, if you have downloaded the code from above you will need to set the chart to 5 minute mode but if you want to drag and drop then copy the code below and go to the meta editor and press ctrl+n or in mac command +n and select script then select new then paste and save then just restart the terminal.

//+------------------------------------------------------------------+
//| Advanced v3.0.mq4 |
//| Linkan Knight|
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property Copyright "RinkanKnight"
#property link "https://www.mql5.com"
#Attribute version "1.00"
#Property strict #property script_show_inputs Integer outside here Take Profit = 10 ; // Unnecessary, because this is part of my EA, only here Integer outside here Stop Loss = 20 ; // Unnecessary, because this is part of my EA, only here Double outside here Lot size = 1 ; // Unnecessary, because this is part of my EA, only here blank when starting ()
  {
  
alert ( "script_start" ); // Know that the script starts with a still integer ticket = 0 ; // Unnecessary because this is part of my EA and only doubles TakeProfitLevel_buy = Bid + TakeProfit* View here; // 0.0001 // Unnecessary because this is part of my EA and only doubles StopLossLevel_buy = Bid - StopLoss* View ; // Unnecessary because this is my EA part, only double here bb = i band ( symbol (), 5,20,2,0 , PRICE_CLOSE ,MODE_MASTER, 0 ) ; //middle bb 
Double horse ten = ima ( symbol (),5, 10 , 0 , mode_EMA , PRICE_CLOSE , 0 ); // moving average 10
Double horse_fifty= ima ( symbol (), 5,50,0 , mode_EMA , PRICE_CLOSE , 0 ) ; //moving average 50
double SAR = synthetic aperture radar ( symbol (),5, 0.02 , 0.2 , 0 ); // parabolic sar
Double red = stochastic indicator ( symbol (),5, 5 , 3 , 3 , mode_EMA , 0 ,mode_signal, 0 ); // Stochastic signal line double blue = stochastic indicator ( symbol (),5, 5 , 3 , 3 , mode_EMA , 0 ,mode_main, 0 ); // Main Stochastic Line Doubled Smoothed Convergence and Divergence Moving Average = Smoothed Convergence and Divergence Moving Average ( symbol (), 5, 12 , 26 , 9 , PRICE_CLOSE , mode_main, 0 ); // macd main line double relative strength index = RSI ( symbol (), 5, 14 , PRICE_CLOSE , 0 ); // Relative Strength Index /*  
                           Alert("The current price is", Close[0] 
                Alert("bb is", middlebb );
                Alert("ma10 price is", ma_ten );
                Alert("ma50e is", ma_fifty );
                Alert("macd is", macd );
                Alert("sar is", sar );
                Alert("rsi is", rsi );
                Alert("The red sign L is", red );
                Alert("The blue value is", blue );
 
                */  
 
 
  
  
  
 
 
  
 
  
if ( middlebb < close [ 0 ] && ma_ten < close [ 0 ] && ma_fifty < close [ 0 ] && sar < close [ 0 ] && blue > red && MACD > 0 && RSI > 50 ) // Check buy conditions { alert ( "buy" ); } else if ( middlebb > close [ 0 ] && ma_ten > close [ 0 ] && ma_fifty > close [ 0 ] && sar > close [ 0 ] && blue < red && MACD < 0 && RSI < 50 ) { alert ( "Sell" ); } else { alert ( "Do not buy if conditions are not met" ); } }



Attachment download

📎 signal_only.mq4 (2.52 KB)

📎 signalonly2.mq4 (3.72 KB)

Source: MQL5 #25717

Verification code Refresh