커뮤니티

질문 부탁드립니다

프로필 이미지
째일
2020-07-15 11:28:58
1879
글번호 140671
답변완료
수식도움 감사드립니다~~ 아래수식에서~~ 매수청산 300봉후부터(300봉내에서는 매수중지) 매수신호! 정상 작동되도록 가능할까요~?? 매도청산 1100봉후부터(1100봉까지는 매도중지) 매도신호! 정상자동 부탁드립니다~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ input : 단(50),중(150),장(1200),천(2000); var : 단기(0),중기(0),이천(0),장기(0); 단기 = ma(c,단); 중기 = ma(c,중); 장기 = ma(c,장); 이천 = ma(c,천); if 중기 /장기 * 100 > 100.10 and 단기 > 중기[1300] and 이천 > 이천[200] Then buy("매수진"); if 중기 /장기 * 100 < 99.90 and 단기 < 중기[1300] and 이천 < 이천[200] Then Sell("매도진"); if MarketPosition == 1 Then { if ( 단기 < 중기[1300] and 이천 < 이천[200]) or (barssinceentry >= 1400 and 중기 /장기 * 100 > 99.80) Then exitlong("매수청"); } if MarketPosition == -1 Then { if (단기 > 중기[1300] and 이천 > 이천[200]) or (barssinceentry >= 1400 and 중기 /장기 * 100 < 100.20) Then exitshort("매도청"); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-07-15 12:59:10

안녕하세요 예스스탁입니다. input : 단(50),중(150),장(1200),천(2000); var : 단기(0),중기(0),이천(0),장기(0); 단기 = ma(c,단); 중기 = ma(c,중); 장기 = ma(c,장); 이천 = ma(c,천); Condition1 = MarketPosition == 0 and MarketPosition(1) == 1 and BarsSinceExit(1) < 300; Condition2 = MarketPosition == 0 and MarketPosition(1) == -1 and BarsSinceExit(1) < 1100; if 중기 /장기 * 100 > 100.10 and 단기 > 중기[1300] and 이천 > 이천[200] Then { if Condition1 == false then buy("매수진"); } if 중기 /장기 * 100 < 99.90 and 단기 < 중기[1300] and 이천 < 이천[200] Then { if Condition2 == false then Sell("매도진"); } if MarketPosition == 1 Then { if ( 단기 < 중기[1300] and 이천 < 이천[200]) or (barssinceentry >= 1400 and 중기 /장기 * 100 > 99.80) Then exitlong("매수청"); } if MarketPosition == -1 Then { if (단기 > 중기[1300] and 이천 > 이천[200]) or (barssinceentry >= 1400 and 중기 /장기 * 100 < 100.20) Then exitshort("매도청"); } 즐거운 하루되세요 > 째일 님이 쓴 글입니다. > 제목 : 질문 부탁드립니다 > 수식도움 감사드립니다~~ 아래수식에서~~ 매수청산 300봉후부터(300봉내에서는 매수중지) 매수신호! 정상 작동되도록 가능할까요~?? 매도청산 1100봉후부터(1100봉까지는 매도중지) 매도신호! 정상자동 부탁드립니다~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ input : 단(50),중(150),장(1200),천(2000); var : 단기(0),중기(0),이천(0),장기(0); 단기 = ma(c,단); 중기 = ma(c,중); 장기 = ma(c,장); 이천 = ma(c,천); if 중기 /장기 * 100 > 100.10 and 단기 > 중기[1300] and 이천 > 이천[200] Then buy("매수진"); if 중기 /장기 * 100 < 99.90 and 단기 < 중기[1300] and 이천 < 이천[200] Then Sell("매도진"); if MarketPosition == 1 Then { if ( 단기 < 중기[1300] and 이천 < 이천[200]) or (barssinceentry >= 1400 and 중기 /장기 * 100 > 99.80) Then exitlong("매수청"); } if MarketPosition == -1 Then { if (단기 > 중기[1300] and 이천 > 이천[200]) or (barssinceentry >= 1400 and 중기 /장기 * 100 < 100.20) Then exitshort("매도청"); }