커뮤니티
이게 잘 안되네요..
2009-12-07 01:19:06
631
글번호 26532
SetStopTrailing(10,30,0)를
풀어서 쓴다면 어떻게 표현할수 있을까요?
트레일링스탑에 추가적인필터와,청산명을 넣어주고 싶어서 입니다.
답변 1
예스스탁 예스스탁 답변
2009-12-07 10:26:57
안녕하세요
예스스탁입니다.
if MarketPosition == 1 Then{
var1 = highest(H,BarsSinceEntry);
if var1 >= EntryPrice*1.3 Then
exitlong("BX",AtStop,var1-(var1-EntryPrice)*0.1);
}
if MarketPosition == -1 Then{
var2 = Lowest(L,BarsSinceEntry);
if var2 <= EntryPrice*0.7 Then
ExitShort("SX",AtStop,var2+(EntryPrice-var2)*0.1);
}
즐거운 하루되세요
> 데이비슨 님이 쓴 글입니다.
> 제목 : 이게 잘 안되네요..
> SetStopTrailing(10,30,0)를
풀어서 쓴다면 어떻게 표현할수 있을까요?
트레일링스탑에 추가적인필터와,청산명을 넣어주고 싶어서 입니다.