커뮤니티
선생님 지도 부탁 드립니다
2019-06-12 16:40:42
313
글번호 129394
아래 시스탬 실행하면 신호가 나오지 않습니다
즉 실행이 안되는 듯 합ㄴ다
분봉 틱 공통사항 입니다
지도 부탁 드립니다
input : Period(5),손절틱수(15),익절틱수(20);
input : 윗꼬리(2),아랫꼬리(2),몸통(2);
var1 = ma(c,period);
if CrossDown(c[1],var1[1]) and
max(C,O) <= min(C,O)+PriceScale*몸통 and
H >= max(C,O)*PriceScale*윗꼬리 and
L <= min(C,O)*PriceScale*아랫꼬리 Then
sell("s",AtMarket);
if MarketPosition == -1 then
{
if crossup(C[1],var1[1]) and C > var1 Then
ExitShort("sx");
}
SetStopLoss(PriceScale*손절틱수,PointStop);
SetStopProfittarget(PriceScale*익절틱수,PointStop);
답변 1
예스스탁 예스스탁 답변
2019-06-12 16:46:26
안녕하세요
예스스탁입니다.
틱수 지정에 오류가 있었습니다.
수정한 식입니다.
input : Period(5),손절틱수(15),익절틱수(20);
input : 윗꼬리(2),아랫꼬리(2),몸통(2);
var1 = ma(c,period);
if CrossDown(c[1],var1[1]) and
max(C,O) <= min(C,O)+PriceScale*몸통 and
H >= max(C,O)+PriceScale*윗꼬리 and
L <= min(C,O)+PriceScale*아랫꼬리 Then
sell("s",AtMarket);
if MarketPosition == -1 then
{
if crossup(C[1],var1[1]) and C > var1 Then
ExitShort("sx");
}
SetStopLoss(PriceScale*손절틱수,PointStop);
SetStopProfittarget(PriceScale*익절틱수,PointStop);
즐거운 하루되세요
> 유로정복자 님이 쓴 글입니다.
> 제목 : 선생님 지도 부탁 드립니다
> 아래 시스탬 실행하면 신호가 나오지 않습니다
즉 실행이 안되는 듯 합ㄴ다
분봉 틱 공통사항 입니다
지도 부탁 드립니다
input : Period(5),손절틱수(15),익절틱수(20);
input : 윗꼬리(2),아랫꼬리(2),몸통(2);
var1 = ma(c,period);
if CrossDown(c[1],var1[1]) and
max(C,O) <= min(C,O)+PriceScale*몸통 and
H >= max(C,O)*PriceScale*윗꼬리 and
L <= min(C,O)*PriceScale*아랫꼬리 Then
sell("s",AtMarket);
if MarketPosition == -1 then
{
if crossup(C[1],var1[1]) and C > var1 Then
ExitShort("sx");
}
SetStopLoss(PriceScale*손절틱수,PointStop);
SetStopProfittarget(PriceScale*익절틱수,PointStop);
다음글
이전글