• Overview
  • Reviews
  • Comments (2)
  • What's new

Doji Finder EA

This EA searches for Japanese Doji candlesticks on the chart and opens a trade after such a candlestick is closed. The direction of the trade is the opposite of the direction of the previous candles, as the Doji signals a reversal or correction. You can customize the parameters of the candlestick by which the trade will be opened: the minimum length of the candlestick shadow (the longer the candlestick shadow, the better the reversal signal, but fewer trades); the maximum length of the candlestick body (the larger the candlestick body, the less similar it is to Doji and the weaker the reversal). Also, the number of previous candles in one direction before the Doji reversal strongly influences (the longer the trend was before the reversal, the more reliable the signal can be, but with a large number of candles in one direction there will be few deals). Some parameters of Doji signal candles can be displayed on the chart as lines when displaying information.

For a better entry into a trade, additional indicators can be analyzed, the settings of which are also available for optimization. The EA can trade on various currency pairs and timeframes with appropriate preliminary optimization.

Input parameters

  • Lots - lot size (at 0, the lot will be calculated from the percentage of free funds on the account);
  • Percentage of free money - percentage of free funds for opening each new deal (works when Lots = 0);
  • IncLotAfterProfit - increase the lot after the profitable closing of the previous deal;
  • DecLotAfterLoss - decrease the lot after unprofitable closing of the previous deal;
  • OrdersComments - a comment to deals;
  • MaxSpread - maximum spread for opening a trade (so that a trade is opened when the spread is not higher than this value);
  • Magic - a unique identifier (you need to make it different if several Expert Advisors are running in the same terminal);
  • StopLoss - order closing price when the loss level is reached;
  • TakeProfit - order closing price when the profitability level is reached;
  • Stop to breakeven after - set stop loss to breakeven after passing the specified number of points;
  • EnableAutoClose - automatic closing of orders upon an opposite signal;
  • TrailingStopValue - the value of the trailing stop in points, if the value is set to 0, the usual trailing stop is not used;
  • StopToParabolicStep - parabolic trailing stop (step of the Parabolic SAR indicator, 0 = off);
  • MinLongShadowPercent - the minimum length of the Doji candlestick shadow for opening a deal (as a percentage of the entire candlestick, 1-99%);
  • MaxCandleBodyPercent - maximum length of the Doji candlestick body (0.1% - 20%);
  • CountLastCandles - the number of previous candles in one direction before the Doji reversal (1-10);
  • MinCandleLenghtPercent - the minimum length of the Doji candlestick in percentage to several previous ones (0, off, 1-200%);
  • FastMAPeriod - period of the Moving Average indicator for filtering signals (0 - do not use MA filtering);
  • SlowMAPeriod - period of the second Moving Average indicator for filtering signals;
  • AppliedPriceMA - used price type for the Moving Average indicator;
  • StochasticFilterPeriod - period of the Stochastic indicator for filtering trades (0 - do not use the filter by Stochastic indicator);
  • StochasticSlowing - slowing down of the Stochastic indicator;
  • StochasticLevels - levels of the Stochastic indicator (1-99);
  • AdxPeriod - period of the ADX indicator;
  • MinAdxLevel - the minimum level of the ADX indicator (for example, 6.5);
  • Trading start hour - trading start hour;
  • Trading end hour - trading end hour;
  • CntHoursForVerificationOrder - the number of bars to check - whether at least one deal was opened (only for optimization, 0 - do not use, like the next 2 parameters);
  • ProfitToLossRatio - the amount of profit to loss (for optimization);
  • MaxAllowableLoss - maximum allowable loss in the account currency for the specified number of bars (for optimization);
  • ShowInfo - show some information and parameters of found Doji candles.

Recommended products
No reviews
Version 1.1 2020.09.23
Added drawing of signal candles on history when placing an advisor on a chart.