커뮤니티
자동추세 매매시스템에서 마감시간설정 수식요청의건
2015-07-15 16:13:20
144
글번호 88477
수고하십니다
Yesglobal 자동추세매매시스템에서
새벽 05:00시에 올청산시킬려면
수식을 어떻게 만들면되나요?
====================================
아래수식은 거래 시간대를 설정한 수식으로 알고 있습니다
input : P1(20),P2(120);
var1 = ma(c,P1);
var2 = ma(c,P2);
if stime >= 130000 or stime < 050000 then{
if crossup(var1,var2) Then
buy("b",OnClose);
if CrossDown(var1,var2) Then
sell("s",OnClose);
}
SetStopLoss(PriceScale*10,PointStop);
답변 1
예스스탁 예스스탁 답변
2015-07-16 09:50:26
안녕하세요
예스스탁입니다.
아래수식은 거래 시간대를 설정한 수식으로 알고 있습니다
input : P1(20),P2(120);
var1 = ma(c,P1);
var2 = ma(c,P2);
if stime >= 130000 or stime < 050000 then{
if crossup(var1,var2) Then
buy("b",OnClose);
if CrossDown(var1,var2) Then
sell("s",OnClose);
}
SetStopLoss(PriceScale*10,PointStop);
if stime == 050000 or (stime > 050000 and stime[1] < 050000) Then{
exitlong();
ExitShort();
}
즐거운 하루되세요
> 강남쏠라 님이 쓴 글입니다.
> 제목 : 자동추세 매매시스템에서 마감시간설정 수식요청의건
> 수고하십니다
Yesglobal 자동추세매매시스템에서
새벽 05:00시에 올청산시킬려면
수식을 어떻게 만들면되나요?
====================================
아래수식은 거래 시간대를 설정한 수식으로 알고 있습니다
input : P1(20),P2(120);
var1 = ma(c,P1);
var2 = ma(c,P2);
if stime >= 130000 or stime < 050000 then{
if crossup(var1,var2) Then
buy("b",OnClose);
if CrossDown(var1,var2) Then
sell("s",OnClose);
}
SetStopLoss(PriceScale*10,PointStop);