Tuesday, March 7, 2017

MicroTrendCheckerMT4

MicroTrendCheckerMT4


Signal MicroTrendChecker LED monitors on the terminal price chart of the currency pair. Yet the trend level returns to the value of Ask points upwards and accordingly to the value of Bid points down.




Input parameters



  • MaxSpread - the maximum spread (recommended to put it more than the average spread of the instrument), it is necessary to filter widening of spreads during of news.

  • * wits - the first indicator parameter (a positive integer value of 2 or more);

  • * body - second parameter indicator (positive integer value of 2 or more) are generally greater than the value size0;

  • * sense - third indicator parameter (a positive integer value of 2 or more);

  • * points - the number of points of indentation from the current price (Ask / Bid);

  • * delta - Trend value / evaluation of the flat (fractional value greater than zero);

  • tracker - Switch tracking modes for the price (the default values true/false). If you enter true, in indicator buffers will never be null (EMPTY_VALUE), if false, in indicator buffers usually appear null values ​​when the trend, with new label indicator on the chart will not be fixed during the formation of the bar.




Example of the indicator code advisor


input int _MaxSpread = 15;
input int _size0 = 2; // * wits
input int _size1 = 21; // * body
input int _size2 = 2; // * sense
input int _point = 10; // * points
input double _dlt = 1; // * delta
input bool _tracker = true;
// + ----------------------------------------------- ------------------- +
// | Expert initialization function |
// + ----------------------------------------------- ------------------- +
int OnInit ()
  {
// ---
// ---
   return (INIT_SUCCEEDED);
  }
// + ----------------------------------------------- ------------------- +
// | Expert deinitialization function |
// + ----------------------------------------------- ------------------- +
void OnDeinit (const int reason)
  {
// ---
  }
// + ----------------------------------------------- ------------------- +
// | Expert tick function |
// + ----------------------------------------------- ------------------- +
void OnTick ()
  {
   double _buyStopValue = iCustom (Symbol (), 0, "microTrendChecker", _ MaxSpread, _size0, _size1, _size2, _point, _dlt, _tracker, 0,0);
   double _sellStopValue = iCustom (Symbol (), 0, "microTrendChecker", _ MaxSpread, _size0, _size1, _size2, _point, _dlt, _tracker, 1,0);
   if (ExistPositions ()>0) TreilingPositions ();
   if (OrdersTotal ()<1)
{
      YourTradeFunc (_buyStopValue);
      YourTradeFunc (_sellStopValue);
     }
   if (ExistPositions ()<1 && ExistStopOrders ()>0)
     {
      ModifyStopOrder (_sellStopValue);
      ModifyStopOrder (_buyStopValue);
     }
   if (ExistPositions ()>0 && ExistStopOrders ()>0)
     {
      DeleteStopOrders ();
     }
  }



Additionally


This indicator is used in the EA USDCatch.


MicroTrendCheckerMT4

Related posts




  • RightDirection


    RightDirection Indicator RightDirection great tool and assistant to work with the trend. He performed well when paired with other indicators that signal...




  • AFX RSI Trendline


    AFX RSI Trendline AFX RSI Trendline automatically draws all the trend lines based on the indicator RSI. Features Indicator AFX RSI Trendline The...




  • Vidente


    Vidente Advantage: The others do not know (yet). Indicator Vidente for MetaTrader - tool to determine the price trend . For beginners it is a great help...




Next posts


No comments:

Post a Comment

Batman

Batman Batman Advisor is based on a very simple system that uses ZigZag indicator and breakdown strategy. Transactions are opened only whe...