안녕하세요
예스스탁입니다.
문의하신 내용이 진입시 피라미딩여부, 트레일링스탑 형태에 따라 다릅니다.
아래식 참고하시기 바랍니다.
var : Xcond1(False),Xcond2(False),Xcond3(False);
if MarketPosition == 1 Then
{
if CurrentContracts < CurrentContracts[1] Then
{
if LatestExitName(0) == "bx1" Then
Xcond1 = true;
if LatestExitName(0) == "bx2" Then
Xcond2 = true;
if LatestExitName(0) == "bx3" Then
Xcond3 = true;
}
if highest(H,BarsSinceEntry) >= EntryPrice*1.05 Then
{
if Xcond1 == False Then
ExitLong("bx1",AtStop,highest(H,BarsSinceEntry)*0.99,"",Floor(MaxContracts*0.3),1);
if Xcond2 == False Then
ExitLong("bx2",AtStop,highest(H,BarsSinceEntry)*0.99,"",Floor(MaxContracts*0.3),1);
if Xcond3 == False Then
ExitLong("bx3",AtStop,highest(H,BarsSinceEntry)*0.99);
}
}
Else
{
Xcond1 = False;
Xcond2 = False;
Xcond3 = False;
}
즐거운 하루되세요