커뮤니티
수식 문의
2019-07-04 12:42:48
251
글번호 130052
15분봉상 20일이평선 돌파시 아래와 같은 조건으로 손절매 이익실현을 하려는데
전략시물레이션이 작동을 안해요..검중은 완료되었는데
무엇이 잘못되었나요
var1 - ma(C,20);
if crossup(c,var1) Then
buy("b");
SetStopLoss(PriceScale*30,PointStop);
SetStopProfittarget(PriceScale*60,PointStop);
답변 1
예스스탁 예스스탁 답변
2019-07-04 13:30:58
안녕하세요
예스스탁입니다.
죄송합니다. 이전 답변에 오타가 있었습니다.
var1 - ma(C,20);
변수에 값의 저장은 = 이 사용되어야 합니다.
수정한 식입니다.
1
var1 = ma(C,20);
if crossup(c,var1) Then
buy("b");
SetStopLoss(PriceScale*30,PointStop);
SetStopProfittarget(PriceScale*60,PointStop);
2
var1 = ma(C,20);
if CrossDown(c,var1) Then
buy("b");
SetStopLoss(PriceScale*30,PointStop);
SetStopProfittarget(PriceScale*60,PointStop);
즐거운 하루되세요
> 100억번남 님이 쓴 글입니다.
> 제목 : 수식 문의
> 15분봉상 20일이평선 돌파시 아래와 같은 조건으로 손절매 이익실현을 하려는데
전략시물레이션이 작동을 안해요..검중은 완료되었는데
무엇이 잘못되었나요
var1 - ma(C,20);
if crossup(c,var1) Then
buy("b");
SetStopLoss(PriceScale*30,PointStop);
SetStopProfittarget(PriceScale*60,PointStop);