안녕하세요
예스스탁입니다.
if CrossUp(source, upper_band) Then
Buy("Buy");
if CrossDown(source, lower_band) Then
Sell("Sell");
if MarketPosition == 1 Then
{
if BarsSinceEntry >= 2 and CountIf(C<O,2)== 2 Then
ExitLong("bx");
}
if MarketPosition == -1 Then
{
if BarsSinceEntry >= 2 and CountIf(C>O,2)== 2 Then
ExitShort("sx");
}
if MarketPosition == 0 and MarketPosition(1) == 1 and
IsExitName("bx",1) == true and CountIf(C>O,2)== 2 Then
Buy("bb");
if MarketPosition == 0 and MarketPosition(1) == -1 and
IsExitName("sx",1) == true and CountIf(C<O,2)== 2 Then
Sell("ss");
즐거운 하루되세요