커뮤니티

문의

프로필 이미지
목마와숙녀
2021-12-16 12:04:55
977
글번호 154543
답변완료
예제 수식에 청산 수식 a),b) 추가 부탁 드립니다. 1)PercentStop ex) if c > dayopen + 0.05 then buy(); a)0.55 퍼센트 이상 수익을 내고 있을 때 SetStopLoss(0.2,PercentStop); SetStopTrailing(1.5,0,PercentStop,1); SetStopInactivity(0.2,50,PercentStop); b)0.75 퍼센트 이상 수익을 내고 있을 때 SetStopLoss(0.3,PercentStop); SetStopTrailing(1.6,0,PercentStop,1); SetStopInactivity(0.3,50,PercentStop); 2)PriceStop ex) if c > dayopen + 0.05 then buy(); a) 2.00 포인트 이상 수익을 내고 있을 때 SetStopLoss(2.00,PriceStop); SetStopTrailing(4.00,0,PriceStop); SetStopInactivity(1.00,50,PriceStop); b)3.00 포인트 이상 수익을 내고 있을 때 SetStopLoss(2.20,PriceStop); SetStopTrailing(4.20,0,PriceStop); SetStopInactivity(1.20,50,PriceStop);
시스템
답변 4
프로필 이미지

예스스탁 예스스탁 답변

2021-12-16 12:59:26

안녕하세요 예스스탁입니다. SetStopInactivity은 추가가 가능하지 않습니다. SetStopInactivity은 진입후 n번쨰 봉에서 지정한 수익이상 수익이 발생되어 있지 않으면 청산하는식입니다. 지정한 수익조건이 해당함수에 지정한 부분보다 많습니다. 1 input : 수익1(0.55),수익2(0.75); input : loss1(0.2),loss2(0.3); input : Tr1(0.2),Tr2(0.3); if c > dayopen + 0.05 then buy(); if MarketPosition == 1 Then { if Highest(H,BarsSinceEntry) >= EntryPrice*(1+수익1/100) and Highest(h,BarsSinceEntry) < EntryPrice*(1+수익2/100) Then { ExitLong("bl1",AtStop,EntryPrice*(1-loss1/100)); ExitLong("btr1",AtStop,Highest(h,BarsSinceEntry)*(1-TR1/100)); } if Highest(H,BarsSinceEntry) >= EntryPrice*(1+수익2/100) Then { ExitLong("bl2",AtStop,EntryPrice*(1-loss2/100)); ExitLong("btr2",AtStop,Highest(h,BarsSinceEntry)*(1-TR1/100)); } } 2 input : 수익1(2),수익2(3); input : loss1(2),loss2(2.2); input : Tr1(4),Tr2(4.2); if c > dayopen + 0.05 then buy(); if MarketPosition == 1 Then { if Highest(H,BarsSinceEntry) >= EntryPrice+수익1 and Highest(h,BarsSinceEntry) < EntryPrice+수익2 Then { ExitLong("bl1",AtStop,EntryPrice-loss1); ExitLong("btr1",AtStop,Highest(h,BarsSinceEntry)-TR1); } if Highest(H,BarsSinceEntry) >= EntryPrice+수익2 Then { ExitLong("bl2",AtStop,EntryPrice-loss2); ExitLong("btr2",AtStop,Highest(h,BarsSinceEntry)-TR1); } } 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 문의 > 예제 수식에 청산 수식 a),b) 추가 부탁 드립니다. 1)PercentStop ex) if c > dayopen + 0.05 then buy(); a)0.55 퍼센트 이상 수익을 내고 있을 때 SetStopLoss(0.2,PercentStop); SetStopTrailing(1.5,0,PercentStop,1); SetStopInactivity(0.2,50,PercentStop); b)0.75 퍼센트 이상 수익을 내고 있을 때 SetStopLoss(0.3,PercentStop); SetStopTrailing(1.6,0,PercentStop,1); SetStopInactivity(0.3,50,PercentStop); 2)PriceStop ex) if c > dayopen + 0.05 then buy(); a) 2.00 포인트 이상 수익을 내고 있을 때 SetStopLoss(2.00,PriceStop); SetStopTrailing(4.00,0,PriceStop); SetStopInactivity(1.00,50,PriceStop); b)3.00 포인트 이상 수익을 내고 있을 때 SetStopLoss(2.20,PriceStop); SetStopTrailing(4.20,0,PriceStop); SetStopInactivity(1.20,50,PriceStop);
프로필 이미지

목마와숙녀

2021-12-16 13:11:00

답변 고맙습니다. setstop 강제청산함수를 사용할 수는 없는지요? > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 문의 > 안녕하세요 예스스탁입니다. SetStopInactivity은 추가가 가능하지 않습니다. SetStopInactivity은 진입후 n번쨰 봉에서 지정한 수익이상 수익이 발생되어 있지 않으면 청산하는식입니다. 지정한 수익조건이 해당함수에 지정한 부분보다 많습니다. 1 input : 수익1(0.55),수익2(0.75); input : loss1(0.2),loss2(0.3); input : Tr1(0.2),Tr2(0.3); if c > dayopen + 0.05 then buy(); if MarketPosition == 1 Then { if Highest(H,BarsSinceEntry) >= EntryPrice*(1+수익1/100) and Highest(h,BarsSinceEntry) < EntryPrice*(1+수익2/100) Then { ExitLong("bl1",AtStop,EntryPrice*(1-loss1/100)); ExitLong("btr1",AtStop,Highest(h,BarsSinceEntry)*(1-TR1/100)); } if Highest(H,BarsSinceEntry) >= EntryPrice*(1+수익2/100) Then { ExitLong("bl2",AtStop,EntryPrice*(1-loss2/100)); ExitLong("btr2",AtStop,Highest(h,BarsSinceEntry)*(1-TR1/100)); } } 2 input : 수익1(2),수익2(3); input : loss1(2),loss2(2.2); input : Tr1(4),Tr2(4.2); if c > dayopen + 0.05 then buy(); if MarketPosition == 1 Then { if Highest(H,BarsSinceEntry) >= EntryPrice+수익1 and Highest(h,BarsSinceEntry) < EntryPrice+수익2 Then { ExitLong("bl1",AtStop,EntryPrice-loss1); ExitLong("btr1",AtStop,Highest(h,BarsSinceEntry)-TR1); } if Highest(H,BarsSinceEntry) >= EntryPrice+수익2 Then { ExitLong("bl2",AtStop,EntryPrice-loss2); ExitLong("btr2",AtStop,Highest(h,BarsSinceEntry)-TR1); } } 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 문의 > 예제 수식에 청산 수식 a),b) 추가 부탁 드립니다. 1)PercentStop ex) if c > dayopen + 0.05 then buy(); a)0.55 퍼센트 이상 수익을 내고 있을 때 SetStopLoss(0.2,PercentStop); SetStopTrailing(1.5,0,PercentStop,1); SetStopInactivity(0.2,50,PercentStop); b)0.75 퍼센트 이상 수익을 내고 있을 때 SetStopLoss(0.3,PercentStop); SetStopTrailing(1.6,0,PercentStop,1); SetStopInactivity(0.3,50,PercentStop); 2)PriceStop ex) if c > dayopen + 0.05 then buy(); a) 2.00 포인트 이상 수익을 내고 있을 때 SetStopLoss(2.00,PriceStop); SetStopTrailing(4.00,0,PriceStop); SetStopInactivity(1.00,50,PriceStop); b)3.00 포인트 이상 수익을 내고 있을 때 SetStopLoss(2.20,PriceStop); SetStopTrailing(4.20,0,PriceStop); SetStopInactivity(1.20,50,PriceStop);
프로필 이미지

예스스탁 예스스탁 답변

2021-12-16 13:38:40

안녕하세요 예스스탁입니다. 예를들어 SetStopTrailing같은 함수는 진입이후 최고수익지점을 계산하게 되는데 중간에 셋팅을 변경하면 해당 지점부터 파악하기에 진입이후 최고수익을 계산하지 못합니다. 조건에 따라 값이 달리셋팅이 되는 내용은 풀어서 작성하셔야 합니다. 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : Re : Re : 문의 > 답변 고맙습니다. setstop 강제청산함수를 사용할 수는 없는지요? > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 문의 > 안녕하세요 예스스탁입니다. SetStopInactivity은 추가가 가능하지 않습니다. SetStopInactivity은 진입후 n번쨰 봉에서 지정한 수익이상 수익이 발생되어 있지 않으면 청산하는식입니다. 지정한 수익조건이 해당함수에 지정한 부분보다 많습니다. 1 input : 수익1(0.55),수익2(0.75); input : loss1(0.2),loss2(0.3); input : Tr1(0.2),Tr2(0.3); if c > dayopen + 0.05 then buy(); if MarketPosition == 1 Then { if Highest(H,BarsSinceEntry) >= EntryPrice*(1+수익1/100) and Highest(h,BarsSinceEntry) < EntryPrice*(1+수익2/100) Then { ExitLong("bl1",AtStop,EntryPrice*(1-loss1/100)); ExitLong("btr1",AtStop,Highest(h,BarsSinceEntry)*(1-TR1/100)); } if Highest(H,BarsSinceEntry) >= EntryPrice*(1+수익2/100) Then { ExitLong("bl2",AtStop,EntryPrice*(1-loss2/100)); ExitLong("btr2",AtStop,Highest(h,BarsSinceEntry)*(1-TR1/100)); } } 2 input : 수익1(2),수익2(3); input : loss1(2),loss2(2.2); input : Tr1(4),Tr2(4.2); if c > dayopen + 0.05 then buy(); if MarketPosition == 1 Then { if Highest(H,BarsSinceEntry) >= EntryPrice+수익1 and Highest(h,BarsSinceEntry) < EntryPrice+수익2 Then { ExitLong("bl1",AtStop,EntryPrice-loss1); ExitLong("btr1",AtStop,Highest(h,BarsSinceEntry)-TR1); } if Highest(H,BarsSinceEntry) >= EntryPrice+수익2 Then { ExitLong("bl2",AtStop,EntryPrice-loss2); ExitLong("btr2",AtStop,Highest(h,BarsSinceEntry)-TR1); } } 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 문의 > 예제 수식에 청산 수식 a),b) 추가 부탁 드립니다. 1)PercentStop ex) if c > dayopen + 0.05 then buy(); a)0.55 퍼센트 이상 수익을 내고 있을 때 SetStopLoss(0.2,PercentStop); SetStopTrailing(1.5,0,PercentStop,1); SetStopInactivity(0.2,50,PercentStop); b)0.75 퍼센트 이상 수익을 내고 있을 때 SetStopLoss(0.3,PercentStop); SetStopTrailing(1.6,0,PercentStop,1); SetStopInactivity(0.3,50,PercentStop); 2)PriceStop ex) if c > dayopen + 0.05 then buy(); a) 2.00 포인트 이상 수익을 내고 있을 때 SetStopLoss(2.00,PriceStop); SetStopTrailing(4.00,0,PriceStop); SetStopInactivity(1.00,50,PriceStop); b)3.00 포인트 이상 수익을 내고 있을 때 SetStopLoss(2.20,PriceStop); SetStopTrailing(4.20,0,PriceStop); SetStopInactivity(1.20,50,PriceStop);
프로필 이미지

목마와숙녀

2021-12-16 14:20:35

목마와숙녀 님에 의해 삭제된 답변입니다.