//+------------------------------------------------------------------+ //| Copyright 2016, PipFinite | //+------------------------------------------------------------------+ #property copyright "Pipfinite" #property link "http://www.pipfinite.com" #property version "3.00" #property strict int shift = 1; //The shift used by this indicator //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit() { //--- //--- return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Expert deinitialization function | //+------------------------------------------------------------------+ void OnDeinit(const int reason) { //--- } //+------------------------------------------------------------------+ //| Expert tick function | //+------------------------------------------------------------------+ void OnTick() { //--- //Buy Buffer = 2 (Buy Value = 1) //Sell Buffer = 3 (Sell Value = -1) //Background Buffer = 10 (1 = Bullish, -1 = Bearish) /***Replace "Comment/Print" with your trade function***/ //Buy Signal + Bullish Background if( GetIndicatorValue(2) == 1 && GetIndicatorValue(10) == 1 ) Comment("iCustom: Razor Scalper >> Buy Signal + Bullish Background"); //Sell Signal + Bearish Background if( GetIndicatorValue(3) == -1 && GetIndicatorValue(10) == -1 ) Comment("iCustom: Razor Scalper >> Sell Signal + Bearish Background"); } //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| Get Indicator Buffer Value | //+------------------------------------------------------------------+ double GetIndicatorValue(int buffer) { return ( iCustom ( NULL, 0, "\\Market\\PipFinite_Razor_Scalper",//File Path of indicator //NEXT LINES WILL BE INDCATOR INPUTS " ", 7, 1000, //END FOR INPUTS buffer,//Index Buffer shift )); }