if (Position.MarketPosition == MarketPosition.Long && CrossAbove(High, Bollinger(2, 20).Upper, 1) || High[0] > Bollinger(2, 20).Upper[0])
{
if ( Typical[0] * 1.03 >= Bollinger(2, 20).Upper[0])
{
Print("Trailing Stop Activated");
SetTrailStop(CalculationMode.Percent, 0.03);
}
else
{
Print("Bollinger Top Sell Activated");
ExitLong("Bollinger Top Sell", "");
}
#region Output
Print("Exit Long: " + ToDay(Time[0]));
Print("Bollinger Band Top");
Print("Sell Price: " + Close[0]);
Print("");
#endregion
}
Enter Long: 20051209
# of Long Indicators: 1
Buy Price: 410
Long Stop Price (S1): 402.89
RSI(2): 0
RSI Div: 0
EMA(5): 1
EMA(13) > EMA(26): 1
Reg Ch: 1
Bollinger: 0
# of Short Indicators: 0
RSI(2): 0
RSI Div: 0
EMA(5): 0
EMA(13) > EMA(26): 0
Reg Ch: 0
Bollinger: 0
Trailing Stop Activated
Exit Long: 20051216
Bollinger Band Top
Sell Price: 430.1
Trailing Stop Activated
Exit Long: 20051219
Bollinger Band Top
Sell Price: 424.9
Trailing Stop Activated
Exit Long: 20051221
Bollinger Band Top
Sell Price: 426
Trailing Stop Activated
Exit Long: 20060104
Bollinger Band Top
Sell Price: 445.73
Trailing Stop Activated
Exit Long: 20060105
Bollinger Band Top
Sell Price: 451.6
Trailing Stop Activated
Exit Long: 20060106
Bollinger Band Top
Sell Price: 465.3
Trailing Stop Activated
Exit Long: 20060109
Bollinger Band Top
Sell Price: 467.4
Trailing Stop Activated
Exit Long: 20060110
Bollinger Band Top
Sell Price: 470.35
[B] Trailing Stop Activated
Exit Long: 20060111
Bollinger Band Top
Sell Price: 473
Date: 20060131
Typical Price: 389.653333333333
Long Stop Price: 402.89
S1: 402.89[/B]
Trailing Stop Activated
Exit Long: 20060329
Bollinger Band Top
Sell Price: 394.97
Trailing Stop Activated
Exit Long: 20060330
Bollinger Band Top
Sell Price: 388.43

Comment