커뮤니티

수정부탁합니다

프로필 이미지
djhsfg
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); 감사합니다