안녕하세요?
현재 교차매매되어있는데, 포지션 청산후 신호나올때 들어가도록 수정부탁드립니다.
감사합니다.
input : 양봉틱수(5),음봉틱수(5);
input : 익절틱수(50),손절틱수(50);
if O > C[1] and C == O+양봉틱수*PriceScale Then
buy();
if O < C[1] and C == O-음봉틱수*PriceScale Then
sell();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
답변 1
예스스탁
예스스탁 답변
2020-01-03 14:27:35
안녕하세요
예스스탁입니다.
input : 양봉틱수(5),음봉틱수(5);
input : 익절틱수(50),손절틱수(50);
if MarketPosition == 0 and O > C[1] and C == O+양봉틱수*PriceScale Then
buy();
if MarketPosition == 0 and O < C[1] and C == O-음봉틱수*PriceScale Then
sell();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요
> 대구어린울프 님이 쓴 글입니다.
> 제목 : 수정부탁드립니다.
> 안녕하세요?
현재 교차매매되어있는데, 포지션 청산후 신호나올때 들어가도록 수정부탁드립니다.
감사합니다.
input : 양봉틱수(5),음봉틱수(5);
input : 익절틱수(50),손절틱수(50);
if O > C[1] and C == O+양봉틱수*PriceScale Then
buy();
if O < C[1] and C == O-음봉틱수*PriceScale Then
sell();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);