Indicators

Notification Publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section you may use the Copyright Infringement Notification form to submit a claim.
How to install
by mfejza
free  18 Jan 2023
Shadow True Strength Index indicator Use shadow color as trade sentiment; green for Long; red for Short
by mfejza
free  17 Jan 2023
DonChain Percentage oscillator displays a relative price position inside the Donchian channel as oscillator. Remark, indicator above or below level 50 for sentiment zone.
by mfejza
free  17 Jan 2023
HiLo Range Fan indicator. Trade long when all indicator components are above zero level, trade Short when all indicator components are below the zero level.
HiLo Range indicator
  1
  0
  103
by mfejza
free  16 Jan 2023
HiLo Range indicator. Trade long when indicator is above zero level, trade Short when indicator is below the zero level.
by mfejza
free  15 Jan 2023
The general idea of using SwingArms is to provide a visual confirmation of a trend change, define of trailing price and entering zone. This indicator and FIR Slope generate useful signals to trade
Swingarm ATR
  1
  0
  134
free  14 Jan 2023
//+------------------------------------------------------------------+ //|                                      Indicator: Swingarm ATR.mq4 | //|                                       Created with EABuilder.com | //|                                        https://www.eabuilder.com | //+------------------------------------------------------------------+ #property copyright "Created with EABuilder.com" #property link      "https://www.eabuilder.com" #property version   "1.00" #property description "" #include <stdlib.mqh> #include <stderror.mqh> //--- indicator settings #property indicator_chart_window #property indicator_buffers 1 #property indicator_type1 DRAW_ARROW #property indicator_width1 1 #property indicator_color1 0xFFAA00 #property indicator_label1 "Buy" //--- indicator buffers double Buffer1[]; double myPoint; //initialized in OnInit void myAlert(string type, string message)   {    if(type == "print")       Print(message);    else if(type == "error")      {       Print(type+" | Swingarm ATR @ "+Symbol()+","+IntegerToString(Period())+" | "+message);      }    else if(type == "order")      {      }    else if(type == "modify")      {      }   } //+------------------------------------------------------------------+ //| Custom indicator initialization function                         | //+------------------------------------------------------------------+ int OnInit()   {       IndicatorBuffers(1);    SetIndexBuffer(0, Buffer1);    SetIndexEmptyValue(0, EMPTY_VALUE);    SetIndexArrow(0, 241);    //initialize myPoint    myPoint = Point();    if(Digits() == 5 || Digits() == 3)      {       myPoint *= 10;      }    return(INIT_SUCCEEDED);   } //+------------------------------------------------------------------+ //| Custom indicator iteration function                              | //+------------------------------------------------------------------+ int OnCalculate(const int rates_total,                 const int prev_calculated,                 const datetime& time[],                 const double& open[],                 const double& high[],                 const double& low[],                 const double& close[],                 const long& tick_volume[],                 const long& volume[],                 const int& spread[])   {    int limit = rates_total - prev_calculated;    //--- counting from 0 to rates_total    ArraySetAsSeries(Buffer1, true);    //--- initial zero    if(prev_calculated < 1)      {       ArrayInitialize(Buffer1, EMPTY_VALUE);      }    else       limit++;        //--- main loop    for(int i = limit-1; i >= 0; i--)      {       if (i >= MathMin(5000-1, rates_total-1-50)) continue; //omit some old rates to prevent "Array out of range" or slow calculation                 //Indicator Buffer 1       if(#———————————–       input trailType = {default modified, unmodified};       input ATRPeriod = 28;       input ATRFactor = 5;       input firstTrade = {default long, short};       input averageType = AverageType.WILDERS;              input fib1Level = 61.8;       input fib2Level = 78.6;       input fib3Level = 88.6;              Assert(ATRFactor > 0, “‘atr factor’ must be positive: ” + ATRFactor);              def HiLo = Min(high – low, 1.5 * Average(high – low, ATRPeriod));       def HRef = if low <= high[1]       then high – close[1]       else (high – close[1]) – 0.5 * (low – high[1]);       def LRef = if high >= low[1]       then close[1] – low       else (close[1] – low) – 0.5 * (low[1] – high);              def trueRange;       switch (trailType) {       case modified:       trueRange = Max(HiLo, Max(HRef, LRef));       case unmodified:       trueRange = TrueRange(high, close, low);       }       def loss = ATRFactor * MovingAverage(averageType, trueRange, ATRPeriod);              def state = {default init, long, short};       def trail;       switch (state[1]) {       case init:       if (!IsNaN(loss)) {       switch (firstTrade) {       case long:       state = state.long;       trail = close – loss;       case short:       state = state.short;       trail = close + loss;       }       } else {       state = state.init;       trail = Double.NaN;       }       case long:       if (close > trail[1]) {       state = state.long;       trail = Max(trail[1], close – loss);       } else {       state = state.short;       trail = close + loss;       }       case short:       if (close < trail[1]) {       state = state.short;       trail = Min(trail[1], close + loss);       } else {       state = state.long;       trail = close – loss;       }       }              def BuySignal = Crosses(state == state.long, 0, CrossingDirection.ABOVE);       def SellSignal = Crosses(state == state.short, 0, CrossingDirection.ABOVE);              def ex = if BuySignal then high else if SellSignal then low else if state == state.long then Max(ex[1], high) else if state == state.short then Min(ex[1], low) else ex[1];              plot TrailingStop = trail;              TrailingStop.SetPaintingStrategy(PaintingStrategy.POINTS);       TrailingStop.DefineColor(“Long”, Color.GREEN);       TrailingStop.DefineColor(“Short”, Color.RED);       TrailingStop.AssignValueColor(if state == state.long       then TrailingStop.Color(“Long”)       else Tra //Custom Code       )         {          Buffer1[i] = Low[i]; //Set indicator value at Candlestick Low         }       else         {          Buffer1[i] = EMPTY_VALUE;         }      }    return(rates_total);   } //+------------------------------------------------------------------+
FIR Slope indicator
  2
  0
  136
by mfejza
free  13 Jan 2023
The indicator result, is calculated from FIR (Finite Impulse Response Filter) indicator and price levels Use histogram as short term trend and dots (green and red) as open position trigger. For more information about FIR indicator click here
by mfejza
free  09 Jan 2023
Directional Volatility indicator. The indicator displays two volatility lines; bullish (green component) and bearish (red component).
CoVariance indicator
  4
  0
  148
by mfejza
free  09 Jan 2023
CoVariance function as indicator to interpret trade sentiment zones
by mfejza
free  06 Jan 2023
This indicator is used for positions trailing stop, and is calculated separately for long (green component) and short (red component) trades, based on price cycles.  
by mfejza
free  06 Jan 2023
Volatility Channel by Larry Williams indicator Conditions Long: price > (top channel + bottom channel)/2 Short: price < (top channel + bottom channel)/2 Note, increase calculation periods, to increase projection (in bars)
free  04 Jan 2023
This code simply displays the current spread on the chart. You can change its position or color. My current unit is Points (0.1 pips). - Visit https://ctrader.com/users/profile/55833 to see my other robots. - Visit http://fx4u.net/robot/ to download my other robots file.