커뮤니티
설명좀부탁드립니다
2011-06-18 17:12:15
653
글번호 39916
안녕하세요 차이점이무었인지요?
if dayindex > 0 then{
if dayindex > 1 then{
Condition1 = IsExitName("StopProfittarget",1) and ExitDate(1) == sdate;
((Condition1 == true and BarsSinceExit(1) >= 1) or Condition1 == false) and MarketPosition == 0 Then
((Condition1 == true and BarsSinceExit(1) >= 1) or Condition1 == false) Then
답변 1
예스스탁 예스스탁 답변
2011-06-20 11:16:28
안녕하세요
예스스탁입니다.
dayindex는 당일 첫봉이 0 두번째가 1 세번째가 2 순으로 번호가 매겨지므로
dayindex > 0 은 당일 두번째 봉부터
dayindex > 1 은 당일 세번째 봉부터라는의미입니다.
Condition1 = IsExitName("StopProfittarget",1) and ExitDate(1) == sdate;
청산날짜가 당일이고(당일 청산된 신호이고)
청산이 setStopProfittarget(목표수익청산)이면 true,아니면 false
가 리턴됩니다. 즉 당일 바로 직전에 발생한 청산이 목표수익 청산이면
true를 아니면 false를 나타냅니다.
((Condition1 == true and BarsSinceExit(1) >= 1) or Condition1 == false) and MarketPosition == 0 Then
무포지션 상태에서
당일 직전청산이 목표수익 청산이면 청산후 1봉경과후부터
당일 직전청산이 목표수익 청산이 아니면 청산봉수 관계없이
조건만족하면 신호발생
((Condition1 == true and BarsSinceExit(1) >= 1) or Condition1 == false) Then
은 위와 같습니다. 다만 무포지션 관계없이 신호 발생합니다.
즐거운 하루되세요
> 외국인 님이 쓴 글입니다.
> 제목 : 설명좀부탁드립니다
> 안녕하세요 차이점이무었인지요?
if dayindex > 0 then{
if dayindex > 1 then{
Condition1 = IsExitName("StopProfittarget",1) and ExitDate(1) == sdate;
((Condition1 == true and BarsSinceExit(1) >= 1) or Condition1 == false) and MarketPosition == 0 Then
((Condition1 == true and BarsSinceExit(1) >= 1) or Condition1 == false) Then