Idea Creator: artem1985, Code Developer: barabashkakvn.
Opening a BUY Position:
When the Tenkan-sen on bar #1 is < Kijun-sen on bar #0 AND
the Tenkan-sen on bar #0 is >= Kijun-sen on bar #0 AND
the Close of bar #0 is > Senkou Span B on bar #0.
the Tenkan-sen on bar #0 is >= Kijun-sen on bar #0 AND
the Close of bar #0 is > Senkou Span B on bar #0.

Opening a SELL Position: The process is slightly different (highlighted in yellow):
When the Tenkan-sen on bar #1 is > Kijun-sen on bar #0 AND
the Tenkan-sen on bar #0 is <= Kijun-sen on bar #0 AND
the Close of bar #0 is < Senkou Span B on bar #0.
the Tenkan-sen on bar #0 is <= Kijun-sen on bar #0 AND
the Close of bar #0 is < Senkou Span B on bar #0.
Test Results on EUR/USD, Daily Chart:

Input Parameters
- Lots: Volume of the position;
- Stop Loss BUY: (in pips) Stop loss for BUY positions;
- Take Profit BUY: (in pips) Take profit for BUY positions;
- Stop Loss SELL: (in pips) Stop loss for SELL positions;
- Take Profit SELL: (in pips) Take profit for SELL positions;
- Trailing Stop BUY: (in pips) Trailing stop for BUY positions;
- Trailing Stop SELL: (in pips) Trailing stop for SELL positions;
- Use Trade Hours: Enable/disable time filter;
- Start Hour: Hour to begin trading;
- End Hour: Hour to stop trading;
- Ichimoku: Period of Tenkan-sen;
- Ichimoku: Period of Kijun-sen;
- Ichimoku: Period of Senkou Span B;
- Magic Number: Unique identifier for the Expert Advisor.
Comments 0