커뮤니티

안녕하세요 시스템 작성좀 부탁드립니다.

프로필 이미지
진짜원칙매매
2016-12-15 11:33:45
98
글번호 104990
답변완료
예전에 작성해 주신 식인데요.매도매수 청산조건좀 추가좀 부탁드립니다. input : P1(5),P2(10),P3(15); input : Period11(13),Period12(25),Period13(2); input : Period21(26),Period22(50),Period23(4); input : Period31(39),Period32(75),Period33(6); input : Period41(52),Period42(100),Period43(8); var : wma1(0),wma2(0),wma3(0); var : SMI1(0),SMI2(0),SMI3(0),SMI4(0); wma1 = wma(c,P1); wma2 = wma(c,P2); wma3 = wma(C,P3); SMI1 = SMI(Period11,Period12,Period13); SMI2 = SMI(Period21,Period22,Period23); SMI3 = SMI(Period31,Period32,Period33); SMI4 = SMI(Period41,Period42,Period43); if wma1 > wma2 and wma2 > wma3 and SMI3 > 0 and SMI4 > 0 and SMI3 > SMI4 and ((SMI2 > 0 and crossup(SMI1,0)) or (SMI1 > 0 and crossup(SMI2,0))) Then buy(); if wma1 < wma2 and wma2 < wma3 and SMI3 < 0 and SMI4 < 0 and SMI3 < SMI4 and ((SMI2 < 0 and CrossDown(SMI1,0)) or (SMI1 < 0 and CrossDown(SMI2,0))) Then sell(); 매도 청산 조건 스톡1>스톡2>스톡3>스톡4 매수 청산 조건 스톡1<스톡2<스톡3<스톡4
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-12-15 14:09:04

input : P1(5),P2(10),P3(15); input : Period11(13),Period12(25),Period13(2); input : Period21(26),Period22(50),Period23(4); input : Period31(39),Period32(75),Period33(6); input : Period41(52),Period42(100),Period43(8); var : wma1(0),wma2(0),wma3(0); var : SMI1(0),SMI2(0),SMI3(0),SMI4(0); wma1 = wma(c,P1); wma2 = wma(c,P2); wma3 = wma(C,P3); SMI1 = SMI(Period11,Period12,Period13); SMI2 = SMI(Period21,Period22,Period23); SMI3 = SMI(Period31,Period32,Period33); SMI4 = SMI(Period41,Period42,Period43); if wma1 > wma2 and wma2 > wma3 and SMI3 > 0 and SMI4 > 0 and SMI3 > SMI4 and ((SMI2 > 0 and crossup(SMI1,0)) or (SMI1 > 0 and crossup(SMI2,0))) Then buy(); if MarketPosition == 1 and SMI1 < SMI2 and SMI2 < SMI3 and SMI3 < SMI4 Then ExitLong(); if wma1 < wma2 and wma2 < wma3 and SMI3 < 0 and SMI4 < 0 and SMI3 < SMI4 and ((SMI2 < 0 and CrossDown(SMI1,0)) or (SMI1 < 0 and CrossDown(SMI2,0))) Then sell(); if MarketPosition == -1 and SMI1 > SMI2 and SMI2 > SMI3 and SMI3 > SMI4 Then ExitShort(); > 진짜원칙매매 님이 쓴 글입니다. > 제목 : 안녕하세요 시스템 작성좀 부탁드립니다. > 예전에 작성해 주신 식인데요.매도매수 청산조건좀 추가좀 부탁드립니다. input : P1(5),P2(10),P3(15); input : Period11(13),Period12(25),Period13(2); input : Period21(26),Period22(50),Period23(4); input : Period31(39),Period32(75),Period33(6); input : Period41(52),Period42(100),Period43(8); var : wma1(0),wma2(0),wma3(0); var : SMI1(0),SMI2(0),SMI3(0),SMI4(0); wma1 = wma(c,P1); wma2 = wma(c,P2); wma3 = wma(C,P3); SMI1 = SMI(Period11,Period12,Period13); SMI2 = SMI(Period21,Period22,Period23); SMI3 = SMI(Period31,Period32,Period33); SMI4 = SMI(Period41,Period42,Period43); if wma1 > wma2 and wma2 > wma3 and SMI3 > 0 and SMI4 > 0 and SMI3 > SMI4 and ((SMI2 > 0 and crossup(SMI1,0)) or (SMI1 > 0 and crossup(SMI2,0))) Then buy(); if wma1 < wma2 and wma2 < wma3 and SMI3 < 0 and SMI4 < 0 and SMI3 < SMI4 and ((SMI2 < 0 and CrossDown(SMI1,0)) or (SMI1 < 0 and CrossDown(SMI2,0))) Then sell(); 매도 청산 조건 스톡1>스톡2>스톡3>스톡4 매수 청산 조건 스톡1<스톡2<스톡3<스톡4