Login / Register
Add a review
Log in
Sign UP
[bws_google_captcha]

GS trendS is a trend indicator that can be used for any Forex financial instruments.

The indicator does not redraw and does not lag. The recommended timeframe is H1. 

Displays the trend direction in color:

  • yellow-the direction can be SELL or BUY (S_B)
  • blue – uptrend (BUY)
  • red – downtrend (SELL)

The indicator panel displays the trend values of the timeframes M5, M15, H1, D1 for the current price level.

The trend value is fixed by the indicator when the next candle is opened.

      • Trend period = 24; – determines the number of candles used by the algorithm
      • Trend filter = 2; – parameter for the criterion for the existence of a trend. The higher the value, the stricter the criterion.
      • Trend panel Offset from right corner =100;
      • Next, the color settings.

      Example of the text of an Expert Advisor testing an appeal to the indicator:

      #property description “GS test v1.0 – Expert Advisor”
      #property description “This EA use for test”
      #property strict
      #resource “IndicatorsGS_trendS.ex4”

      extern string Version__ = “————-GS test v1.0 ————-“;
      input int NN=10;//Limit

      // ——————————————————————
      //| Expert initialization function                                   |
      // ——————————————————————
      int OnInit()
      {
      //————Timer
         EventSetTimer(1);   
         return(INIT_SUCCEEDED);
        }
      // ——————————————————————
      //| Expert Timer function                                            |
      // ——————————————————————
      void OnTimer()
      { static int i=0;
        if (i>NN) return;
        double r=iCustom(NULL,0,”::IndicatorsGS_trendS.ex4″,3,i);
        Alert(“i=” (string)i “: GS trendS Signal = ” DoubleToString(r,5) ((r==1)?” (SELL_BUY)”:(r==2)?” BUY”:” SELL”));
        i ;
       }

      [spoiler title=”Read More…”]

      Example of the text of an Expert Advisor testing an appeal to the indicator:

      #property description “GS test v1.0 – Expert Advisor”
      #property description “This EA use for test”
      #property strict
      #resource “IndicatorsGS_trendS.ex4”

      extern string Version__ = “————-GS test v1.0 ————-“;
      input int NN=10;//Limit

      // ——————————————————————
      //| Expert initialization function                                   |
      // ——————————————————————
      int OnInit()
      {
      //————Timer
         EventSetTimer(1);   
         return(INIT_SUCCEEDED);
        }
      // ——————————————————————
      //| Expert Timer function                                            |
      // ——————————————————————
      void OnTimer()
      { static int i=0;
        if (i>NN) return;
        double r=iCustom(NULL,0,”::IndicatorsGS_trendS.ex4″,3,i);
        Alert(“i=” (string)i “: GS trendS Signal = ” DoubleToString(r,5) ((r==1)?” (SELL_BUY)”:(r==2)?” BUY”:” SELL”));
        i ;
       }

      #property description “GS test v1.0 – Expert Advisor”
      #property description “This EA use for test”
      #property strict
      #resource “IndicatorsGS_trendS.ex4”

      extern string Version__ = “————-GS test v1.0 ————-“;
      input int NN=10;//Limit

      // ——————————————————————
      //| Expert initialization function                                   |
      // ——————————————————————
      int OnInit()
      {
      //————Timer
         EventSetTimer(1);   
         return(INIT_SUCCEEDED);
        }
      // ——————————————————————
      //| Expert Timer function                                            |
      // ——————————————————————
      void OnTimer()
      { static int i=0;
        if (i>NN) return;
        double r=iCustom(NULL,0,”::IndicatorsGS_trendS.ex4″,3,i);
        Alert(“i=” (string)i “: GS trendS Signal = ” DoubleToString(r,5) ((r==1)?” (SELL_BUY)”:(r==2)?” BUY”:” SELL”));
        i ;
       }

      The Expert Advisor displays the indicator values every second corresponding to the history from the current candle to the previous ones (the number is set by the Limit parameter)

      The index 3 of the indicator returns the values:

      • 1 – SELL or BUY
      • 2 – BUY
      • 3 – SELL

      [/spoiler]

      Add review
      Reviews ( 0 ):