--------------------------------------------------------------------
Pseudo Source Code of EU H1 - Strategy 13.89_5
  with parameter names.

  Generated by StrategyQuant version 3.8.2
  Generated at Mon Sep 10 17:52:00 GMT 2018
                                                          
  Tested on EURUSDtds, H1, 04.06.2003 - 31.12.2015
  Spread: 2.0, Slippage: 0.0, Min distance of stop from price: 5.0
--------------------------------------------------------------------
====================================================================
== Entry conditions
==================================================================== 
LongEntryCondition = (Hour <> 9)
ShortEntryCondition = (Hour <> 9)


====================================================================
== Entry orders
====================================================================
-- Long entry
if LongEntryCondition is true {
   if No position is open then Buy at KeltnerChannel_Middle(82, 0.8) + (0.7 * ABS(Lowest(10) - BollingerBand_Down(56, 7.0, 0))) Stop;
   Stop/Limit order expires after 9 bars.

   Stop Loss = (0.7 * ATR(60)) pips;

   // Stop trailing (on close)
   Move Stop to (Lowest(10) + (0.7) * ATR(90))) on bar close;
}

-- Short entry
if ShortEntryCondition is true {
   if No position is open then Sell at KeltnerChannel_Middle(82, 0.8) + (-0.7 * ABS(Highest(10) - BollingerBand_Up(56, 7, 0))) Stop;
   Stop/Limit order expires after 9 bars.

   Stop Loss = (0.7 * ATR(60)) pips;

   // Stop trailing (on close)
   Move Stop to (Highest(10) + (-0.7) * ATR(90))) on bar close;
}

====================================================================
== Exit orders
====================================================================
-- Long exit
if MarketPosition is Long {
   if Bearish Engulfing Candle Pattern {
      Close position at market;
   }
}

-- Short exit
if MarketPosition is Short {
   if Bullish Engulfing Candle Pattern {
      Close position at market;
   }
}


