커뮤니티
수식질문드립니다.익절관련..
2010-01-07 13:17:29
855
글번호 27293
익절을 조건에 따라 변화시키고 싶습니다.
이런식으로 하면 맞는건지요?
if 조건A then {
buy();
setstopprofittarget(1,point);}
if 조건b and marketposition(0) == 1 then {
setstopprofittarget(2,point);}
답변 1
예스스탁 예스스탁 답변
2010-01-07 14:56:54
안녕하세요
예스스탁입니다.
풀어서 작성하셔야 하는 내용 같습니다.
매수이후에 +1수익이고 조건B가 만족한 이후에는 +2로 변경됩니다.
if MarketPosition == 1 and countif(조건B,BarsSinceEntry) < 1 Then
exitlong("bx1",AtLimit,EntryPrice+1);
if MarketPosition == 1 and countif(조건B,BarsSinceEntry) >= 1 Then
exitlong("bx2",AtLimit,EntryPrice+2);
즐거운 하루되세요
> 천억벌자 님이 쓴 글입니다.
> 제목 : 수식질문드립니다.익절관련..
> 익절을 조건에 따라 변화시키고 싶습니다.
이런식으로 하면 맞는건지요?
if 조건A then {
buy();
setstopprofittarget(1,point);}
if 조건b and marketposition(0) == 1 then {
setstopprofittarget(2,point);}
다음글
이전글