커뮤니티
부탁드립니다.
2010-01-05 13:12:48
762
글번호 27230
if IsEntryName("양봉2") == true or IsEntryName("음봉2") == true Then
SetStopLoss(1.5,PointStop);
Else
SetStopLoss(2.5,PointStop);
==================================
위에식을 타주기참조(data2)로 하고싶습니다.
부탁드립니다
답변 1
예스스탁 예스스탁 답변
2010-01-05 16:30:28
안녕하세요
예스스탁입니다.
타종목의 값을 이용은 봉완성시만 가능합니다.
var1 = data2(c);
if IsEntryName("양봉2") == true or IsEntryName("음봉2") == true Then{
if MarketPosition == 1 and data2(L) <= var1[BarsSinceEntry]-1.5 Then
exitlong();
if MarketPosition == -1 and data2(H) >= var1[BarsSinceEntry]+1.5 Then
ExitShort();
}
Else {
if MarketPosition == 1 and data2(L) <= var1[BarsSinceEntry]-2.5 Then
exitlong();
if MarketPosition == -1 and data2(H) >= var1[BarsSinceEntry]+2.5 Then
ExitShort();
}
즐거운 하루되세요
> ckswns 님이 쓴 글입니다.
> 제목 : 부탁드립니다.
> if IsEntryName("양봉2") == true or IsEntryName("음봉2") == true Then
SetStopLoss(1.5,PointStop);
Else
SetStopLoss(2.5,PointStop);
==================================
위에식을 타주기참조(data2)로 하고싶습니다.
부탁드립니다