커뮤니티
시스템식 어떤것이 잘못되었는지한번 봐주세요..
2011-06-10 17:18:21
758
글번호 39632
input : P1(5),PL1(5),P2(2);
Input : shortPeriod(36), longPeriod(78), Period(27);
value1 = ema(C,shortPeriod);
value2 = ema(C,longPeriod);
MACD_OSC = (value1-value2)-ema(value1-value2,Period);
if stime >= 092000 and stime < 143000 Then{
if MACD_OSC-MACD_OSC(1) > 0
and abs(ma(C,120)-ma(C,60)) <= abs(ma(C(1),120)-ma(C(1),60))
and ma(C,60)-ma(C(1),60) > -0.003
and Crossup(C,ma(C,20)) then
buy("b",AtLimit,C+PriceScale);}
SetStopLoss(PriceScale*PL1,PointStop);
답변 1
예스스탁 예스스탁 답변
2011-06-10 17:38:11
안녕하세요
예스스탁입니다.
input : P1(5),PL1(5),P2(2);
Input : shortPeriod(36), longPeriod(78), Period(27);
var : MACDOSC(0);
value1 = ema(C,shortPeriod);
value2 = ema(C,longPeriod);
MACDOSC = (value1-value2)-ema(value1-value2,Period);
if stime >= 092000 and stime < 143000 Then{
if MACDOSC-MACDOSC[1] > 0
and abs(ma(C,120)-ma(C,60)) <= abs(ma(C[1],120)-ma(C[1],60))
and ma(C,60)-ma(C[1],60) > -0.003
and Crossup(C,ma(C,20)) then
buy("b",AtLimit,C+PriceScale);}
SetStopLoss(PriceScale*PL1,PointStop);
변수를 만드신 후에는 선언을 하고 사용하셔야 하며
이전봉의 값은 [1]과 같이 표현하셔야 합니다.
즐거운 하루되세요
> 족구마왕 님이 쓴 글입니다.
> 제목 : 시스템식 어떤것이 잘못되었는지한번 봐주세요..
> input : P1(5),PL1(5),P2(2);
Input : shortPeriod(36), longPeriod(78), Period(27);
value1 = ema(C,shortPeriod);
value2 = ema(C,longPeriod);
MACD_OSC = (value1-value2)-ema(value1-value2,Period);
if stime >= 092000 and stime < 143000 Then{
if MACD_OSC-MACD_OSC(1) > 0
and abs(ma(C,120)-ma(C,60)) <= abs(ma(C(1),120)-ma(C(1),60))
and ma(C,60)-ma(C(1),60) > -0.003
and Crossup(C,ma(C,20)) then
buy("b",AtLimit,C+PriceScale);}
SetStopLoss(PriceScale*PL1,PointStop);
다음글
이전글