This works well for us on 180 min bars. Stocks like MSFT, QQQ etc with pre and after market bars enabled. Play around, you might find it interesting.
Cheers,
Input:
K(1),
Rate(0.14);
If UpTicks > DownTicks Then
Buy Next Bar At Close - Rate Limit;
If UpTicks < DownTicks Then
SellShort Next Bar At Close + Rate Limit;
If MarketPosition = 1 Then
Sell Next Bar at EntryPrice + Rate/K Limit;
If MarketPosition = -1 Then
BuyToCover Next Bar at EntryPrice - Rate/K Limit;
Cheers,
Input:
K(1),
Rate(0.14);
If UpTicks > DownTicks Then
Buy Next Bar At Close - Rate Limit;
If UpTicks < DownTicks Then
SellShort Next Bar At Close + Rate Limit;
If MarketPosition = 1 Then
Sell Next Bar at EntryPrice + Rate/K Limit;
If MarketPosition = -1 Then
BuyToCover Next Bar at EntryPrice - Rate/K Limit;