Exemplo n.º 1
0
 protected override void InPosition(PositionMode position, PriceBars priceBar, BarItemType barType)
 {
     if (priceBar.LastItem.Time >= new DateTime(2012, 8, 2, 4, 0, 0))
     {
     }
     if ((position == PositionMode.Long && psar.Direction() == -1) ||
         (position == PositionMode.Short && psar.Direction() == 1))
     {
         Exit();
     }
 }
Exemplo n.º 2
0
 private bool IsLongSetup(PriceBars priceBar)
 {
     return(stoc.PercentK() > 63 && psar.Direction(1) != psar.Direction() && psar.Direction() == 1 && priceBar.LastItem.Close > ema.Value());
 }
Exemplo n.º 3
0
 private bool IsLongSetup(PriceBars priceBar)
 {
     return(adx.PlusDI() > adx.MinusDI() && psar.Direction() == 1);
 }
Exemplo n.º 4
0
 private bool IsLongSetup(PriceBars priceBar)
 {
     return(buySignal == 2 && barSignalCount <= signalLookbackPeriod && macd.MACDValue() > macd.SignalLine() && psar.Direction() == 1);
 }