indicator for day trading 5 min chart - script for MetaTrader 4




Here is the code if you directly wants to copy ,if you have downloaded the code from the above you need to set the chart in 5 min mode but in case you want to drag and drop , then copy the code below and go to your meta editor and then press ctrl+n or in mac command +n then choose Script then then  new and then just paste and save then restart the terminal and here you go.

//+------------------------------------------------------------------+
//|                                               advancedv3.0.mq4 |
//|                                                     RinkanKnight |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "RinkanKnight"
#property link      "https://www.mql5.com"
#property version   "1.00"
#property strict
#property script_show_inputs


extern int     TakeProfit           = 10; //not necessary as this is a part of my EA this is here only
extern int     StopLoss             = 20;//not necessary as this is a part of my EA this is here only
extern double  lots =1 ;//not necessary as this is a part of my EA this is here only



void OnStart()
  {
             
             Alert("script started ");//to know the script started 
             static int  ticket = 0;//not necessary as this is a part of my EA this is here only
             double TakeProfitLevel_buy = Bid + TakeProfit*Point;   //0.0001//not necessary as this is a part of my EA this is here only
             double StopLossLevel_buy = Bid - StopLoss*Point;//not necessary as this is a part of my EA this is here only

             double middlebb=iBands(Symbol(),5,20,2,0,PRICE_CLOSE,MODE_MAIN,0); //middle bb 
             double ma_ten = iMA(Symbol(),5,10,0,MODE_EMA,PRICE_CLOSE,0); // moving avg 10
             double ma_fifty = iMA(Symbol(),5,50,0,MODE_EMA,PRICE_CLOSE,0); //moving avg 50
             double sar = iSAR(Symbol(),5,0.02,0.2,0); // parabloic sar
             double red = iStochastic(Symbol(),5,5,3,3,MODE_EMA,0,MODE_SIGNAL,0); // stochatic signal line 
             double blue = iStochastic(Symbol(),5,5,3,3,MODE_EMA,0,MODE_MAIN,0); // main stochatic line
             double macd =iMACD(Symbol(),5,12,26,9,PRICE_CLOSE,MODE_MAIN,0);  // macd main
             double rsi = iRSI(Symbol(),5,14,PRICE_CLOSE,0); //relative strength index 
             
/*             
                Alert("the ckising price is ", Close[0] 
                Alert("the bb  is ", middlebb );
                Alert("the ma10 price is ", ma_ten );
                Alert("the ma50e is ", ma_fifty );
                Alert("the macd is ", macd );
                Alert("the sar is ", sar );
                Alert("the rsi is ", rsi );
                Alert("the red signL 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 ) //checking condition for buy
               {
                     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 ("condition are not matching do not buy  ");
                 
                  
                  
               }
             
              
            
 }



Download indicator for day trading 5 min chart - script for MetaTrader 4




Related News




Latest News
Bitcoin Falls Below $10,000 Level as Safe-Haven Appeal Wears Off
22.08.2019 06:27
Investing.com - Bitcoin traded lower on Thursday in Asia and fell below the key $10,000 level. Bitccoin traded 3% lower to $9,954.0 at 1:50 AM ET (05:50 GMT). Ethereum was down 2% to $185.47, while XRP and Litecoin were down 0.5% and 1.8%. It was discussed earlier this month as whether Bitcoin, the crypto king, is a safe-haven asset. it showed a
Read more
Swiss telecom Sunrise touts $6.4 billion UPC deal, blasts shareholder as 'self-serving'
22.08.2019 06:24
ZURICH (Reuters) - Swiss telecommunications company Sunrise Communications (S:SRCG) on Thursday escalated its defence of its planned takeover of Liberty Global's (O:LBTYA) Swiss unit UPC, touting additional synergies and blasting a shareholder that is fighting the deal. German telecoms group Freenet (DE:FNTGn), Sunrise's largest
Read more
Japan's Yokohama says to join race to host newly legalized casino
22.08.2019 06:21
TOKYO (Reuters) - Yokohama, Japan's second-largest city, raised its hand on Thursday to host a casino resort, a newly legalized industry the government hopes will stimulate the economy and tourism. Yokohama, facing Tokyo Bay and located a short train ride from the capital, joins other candidates such as Osaka, Nagasaki and Wakayama vying to
Read more
Amazon's 'Carnival Row' mixes crime thriller, love story, fantasy
22.08.2019 06:18
LOS ANGELES (Reuters) - Amazon.com (NASDAQ:AMZN) Inc's next original series will take viewers to "Carnival (NYSE:CCL) Row," a lavish Victorian-era fantasy world where mythical creatures are forced from their homeland and must live uneasily alongside humans. The eight-episode drama stars Cara Delevingne as a refugee fairy opposite Orlando
Read more
China's Warning to Global CEOs: Toe the Party Line on Hong Kong
22.08.2019 06:15
(Bloomberg) -- As anti-government protests in Hong Kong intensified this month, KPMG issued a directive to its employees in the city: Don’t speak on behalf of the company in public. It went on to say that the firm supports China’s policy for governing Hong Kong. PwC, another Big Four accounting giant, sent a similar message to staff telling them
Read more