커뮤니티
수정부탁합니다
2015-12-08 10:34:35
110
글번호 93146
Inputs: 기준선기간(26),shortPeriod(5), longPeriod(20),x(1),y(1);
Variables: 기준선(0);
value1 = ma(C, shortPeriod);
value2 = ma(C, longPeriod);
기준선 = (Highest(High, 기준선기간) + Lowest(Low, 기준선기간)) / 2;
if Value1>Value2 and crossup(l[0],기준선 ) Then{
buy()
}
if Value1<Value2 and crossdown(h[0],기준선 ) Then{
sell()
}
setstoploss(x);
SetStopProfittarget(y);
감사합니다
답변 1
예스스탁 예스스탁 답변
2015-12-08 15:26:21
안녕하세요
예스스탁입니다.
Inputs: 기준선기간(26),shortPeriod(5), longPeriod(20),x(1),y(1);
Variables: 기준선(0);
value1 = ma(C, shortPeriod);
value2 = ma(C, longPeriod);
기준선 = (Highest(High, 기준선기간) + Lowest(Low, 기준선기간)) / 2;
if Value1>Value2 and crossup(l[0],기준선 ) Then{
buy();
}
if Value1<Value2 and crossdown(h[0],기준선 ) Then{
sell();
}
setstoploss(x);
SetStopProfittarget(y);
즐거운 하루되세요
> djhsfg 님이 쓴 글입니다.
> 제목 : 수정부탁합니다
> Inputs: 기준선기간(26),shortPeriod(5), longPeriod(20),x(1),y(1);
Variables: 기준선(0);
value1 = ma(C, shortPeriod);
value2 = ma(C, longPeriod);
기준선 = (Highest(High, 기준선기간) + Lowest(Low, 기준선기간)) / 2;
if Value1>Value2 and crossup(l[0],기준선 ) Then{
buy()
}
if Value1<Value2 and crossdown(h[0],기준선 ) Then{
sell()
}
setstoploss(x);
SetStopProfittarget(y);
감사합니다
다음글
이전글