Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Scripts

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

Rinkan Rohit Jena
Published by:
Rinkan Rohit
Views:
20420
Rating:
(22)
Published:
2019.06.04 08:25
Updated:
2019.06.04 12:00
\MQL4\Scripts\
signal only.mq4 (2.52 KB) view
signalonly2.mq4 (3.72 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

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  ");
                 
                  
                  
               }
             
              
            
 }


JohnBollinger_Ovrl JohnBollinger_Ovrl

EA based on parameters of the BOOK of John Bollinger with Lot size calculator and position overlaping.

Export Summary Grouped by Symbols (MT4) Export Summary Grouped by Symbols (MT4)

The script exports summary of closed trades grouped by each currency pair to .csv file

Math Utils (MT4) Math Utils (MT4)

Handy functions for comparison, rounding, formatting and debugging of doubles (prices, lots and money).

Adaptive Moving Average - AMA Adaptive Moving Average - AMA

Adaptive Moving Average - AMA