커뮤니티
수식 추가부탁드립니다.
2019-07-22 23:32:09
226
글번호 130522
안녕하세요?
아래와 같은 답변 감사히 받았습니다.
추가하고싶은것 한가지가 있어서 질문드렸구요,
아래의 수식에서 하루 매매횟수를 변수로 지정하였으면 합니다.
감사합니다.
수고하세요~!!!
input : 매수틱(5),매도틱(5);
input : 익절틱수(20),손절틱수(20);
if C == O+PriceScale*매수틱 Then#지정한 틱수의 몸통이면 ==
buy("b");
if C == O-PriceScale*매도틱 Then#지정한 틱수의 몸통이면 ==
sell("s");
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
답변 1
예스스탁 예스스탁 답변
2019-07-23 11:23:15
안녕하세요
예스스탁입니다.
input : 매수틱(5),매도틱(5),n(3);
input : 익절틱수(20),손절틱수(20);
var : entry(0);
if bdate != bdate[1] Then
entry = 0;
if MarketPosition(0) != 0 and MarketPosition(0) != MarketPosition(0)[1] Then
entry = entry + 1;
if entry < n and C == O+PriceScale*매수틱 Then#지정한 틱수의 몸통이면 ==
buy("b");
if entry < n and C == O-PriceScale*매도틱 Then#지정한 틱수의 몸통이면 ==
sell("s");
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요
> 대구어린울프 님이 쓴 글입니다.
> 제목 : 수식 추가부탁드립니다.
> 안녕하세요?
아래와 같은 답변 감사히 받았습니다.
추가하고싶은것 한가지가 있어서 질문드렸구요,
아래의 수식에서 하루 매매횟수를 변수로 지정하였으면 합니다.
감사합니다.
수고하세요~!!!
input : 매수틱(5),매도틱(5);
input : 익절틱수(20),손절틱수(20);
if C == O+PriceScale*매수틱 Then#지정한 틱수의 몸통이면 ==
buy("b");
if C == O-PriceScale*매도틱 Then#지정한 틱수의 몸통이면 ==
sell("s");
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
다음글
이전글