커뮤니티
오류 수정 부탁드려요
2018-10-06 17:25:55
134
글번호 122492
아래의식이 아예 먹통 입니다.
매매가 이루어지지않습니다.
분명 조건은 계속나옵니다.
뭐가 문제인걸까요? 확인좀 부탁드립니다
감사합니다.
input : n1(3),n2(5),n3(7);
input : 익절틱수(20),손절틱수(20),최소수익틱수(10),이익감소틱수(5);
var1 = abs(C-O);
var2 = ma(C,5);
var3 = ma(C,20);
if var1 > var2 and
C > O and
(var1 == PriceScale*n1 or
var1 == PriceScale*n2 or
var1 == PriceScale*n3) and
C > dayopen Then
buy();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStoploss(PriceScale*손절틱수,PointStop);
SetStopTrailing(이익감소틱수,최소수익틱수,PointStop);
답변 1
예스스탁 예스스탁 답변
2018-10-08 14:01:00
안녕하세요
예스스탁입니다.
이평이 잘못처리되어 있어
수정했습니다.
input : n1(3),n2(5),n3(7);
input : 익절틱수(20),손절틱수(20),최소수익틱수(10),이익감소틱수(5);
var1 = abs(C-O);
var2 = ma(C,5);
var3 = ma(C,20);
if var2 > var3 and
C > O and
(var1 == PriceScale*n1 or
var1 == PriceScale*n2 or
var1 == PriceScale*n3) and
C > dayopen Then
buy();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStoploss(PriceScale*손절틱수,PointStop);
SetStopTrailing(이익감소틱수,최소수익틱수,PointStop);
즐거운 하루되세요
> 대구어린울프 님이 쓴 글입니다.
> 제목 : 오류 수정 부탁드려요
> 아래의식이 아예 먹통 입니다.
매매가 이루어지지않습니다.
분명 조건은 계속나옵니다.
뭐가 문제인걸까요? 확인좀 부탁드립니다
감사합니다.
input : n1(3),n2(5),n3(7);
input : 익절틱수(20),손절틱수(20),최소수익틱수(10),이익감소틱수(5);
var1 = abs(C-O);
var2 = ma(C,5);
var3 = ma(C,20);
if var1 > var2 and
C > O and
(var1 == PriceScale*n1 or
var1 == PriceScale*n2 or
var1 == PriceScale*n3) and
C > dayopen Then
buy();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStoploss(PriceScale*손절틱수,PointStop);
SetStopTrailing(이익감소틱수,최소수익틱수,PointStop);
다음글
이전글