커뮤니티

행복; 시스템식 작성 바랍니다

프로필 이미지
행복한가방
2017-08-01 07:48:46
100
글번호 111701
답변완료
한국의 금융산업 발전을 위해 불철주야 애쓰시는 귀하의 노고를 높이 평가합니다 시스템식 관련입니다 (질문 54282)에 대한 << 아래 >>의 답변 잘 받았습니다 ==========<< 아래 시작 >>========================================== input : 총투자금(10000000); if MarketPosition == 0 and 조건A Then buy("b1",OnClose,def,Floor((총투자금*0.2)/C)); if MarketPosition == 1 and MaxEntries == 1 Then{ if 조건B Then buy("b2",OnClose,def,Floor((총투자금*0.19)/C)); if PositionProfit <= -300000 Then ExitLong("bx1"); } if MarketPosition == 1 and MaxEntries == 2 Then{ if 조건C Then buy("b3",OnClose,def,Floor((총투자금*0.18)/C)); if PositionProfit <= -400000 Then ExitLong("bx2"); } if MarketPosition == 1 and MaxEntries == 3 then{ if 조건D Then buy("b4",OnClose,def,Floor((총투자금*0.17)/C)); if PositionProfit <= -500000 Then ExitLong("bx3"); } if MarketPosition == 1 and MaxEntries == 4 Then{ if 조건E Then buy("b5",OnClose,def,Floor((총투자금*0.16)/C)); if PositionProfit <= -600000 Then ExitLong("bx4"); } if MarketPosition == 1 and MaxEntries == 5 Then{ if 조건F Then ExitLong("bx5"); } ==========<< 아래 끝 >>========================================== 이 시스템식에 << 다음 >> 과 같이 조건A, 조건B, 조건C, 조건D, 조건E, 조건F 를 대입하였을 때 삼성전자에서 1차 매수만 되고 2~5차 매수와 그 이후에 매도가 이루어지지 않습니다 무엇이 잘못된 것인지 바로잡아 주시기 바랍니다 ==========<< 다음 시작 >>========================================== Input : 총투자금(100000000); Var : 조건A(False), 조건B(false), 조건C(false), 조건D(false), 조건E(false), 조건F(false); 조건A = (sDate == 20161215); 조건B = (sDate == 20161222); 조건C = (sDate == 20161223); 조건D = (sDate == 20161226); 조건E = (sDate == 20161228); 조건F = (sDate == 20170731); If MarketPosition == 0 and 조건A Then buy("b1",OnClose,def,Floor((총투자금*0.2)/C)); If MarketPosition == 1 and MaxEntries == 1 Then{ If 조건B Then buy("b2",OnClose,def,Floor((총투자금*0.19)/C)); If PositionProfit <= -30000000 Then ExitLong("bx1"); } If MarketPosition == 1 and MaxEntries == 2 Then{ If 조건C Then buy("b3",OnClose,def,Floor((총투자금*0.18)/C)); If PositionProfit <= -40000000 Then ExitLong("bx2"); } If MarketPosition == 1 and MaxEntries == 3 then{ If 조건D Then buy("b4",OnClose,def,Floor((총투자금*0.17)/C)); If PositionProfit <= -50000000 Then ExitLong("bx3"); } If MarketPosition == 1 and MaxEntries == 4 Then{ If 조건E Then buy("b5",OnClose,def,Floor((총투자금*0.16)/C)); If PositionProfit <= -60000000 Then ExitLong("bx4"); } If MarketPosition == 1 and MaxEntries == 5 Then{ If 조건F Then ExitLong("bx5"); } ==========<< 다음 끝 >>========================================== 시스템식 작성바랍니다 수고하십시요^^
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-08-01 10:26:10

안녕하세요 예스스탁입니다. 설정창의 피라미딩 탭에서 피라미딩을 모든진입신호로 설정하고 적용하시면 됩니다. 추가진입하는 식은 모드 피라미딩을 직접 설정하셔야 합니다. 즐거운 하루되세요 > 행복한가방 님이 쓴 글입니다. > 제목 : 행복; 시스템식 작성 바랍니다 > 한국의 금융산업 발전을 위해 불철주야 애쓰시는 귀하의 노고를 높이 평가합니다 시스템식 관련입니다 (질문 54282)에 대한 << 아래 >>의 답변 잘 받았습니다 ==========<< 아래 시작 >>========================================== input : 총투자금(10000000); if MarketPosition == 0 and 조건A Then buy("b1",OnClose,def,Floor((총투자금*0.2)/C)); if MarketPosition == 1 and MaxEntries == 1 Then{ if 조건B Then buy("b2",OnClose,def,Floor((총투자금*0.19)/C)); if PositionProfit <= -300000 Then ExitLong("bx1"); } if MarketPosition == 1 and MaxEntries == 2 Then{ if 조건C Then buy("b3",OnClose,def,Floor((총투자금*0.18)/C)); if PositionProfit <= -400000 Then ExitLong("bx2"); } if MarketPosition == 1 and MaxEntries == 3 then{ if 조건D Then buy("b4",OnClose,def,Floor((총투자금*0.17)/C)); if PositionProfit <= -500000 Then ExitLong("bx3"); } if MarketPosition == 1 and MaxEntries == 4 Then{ if 조건E Then buy("b5",OnClose,def,Floor((총투자금*0.16)/C)); if PositionProfit <= -600000 Then ExitLong("bx4"); } if MarketPosition == 1 and MaxEntries == 5 Then{ if 조건F Then ExitLong("bx5"); } ==========<< 아래 끝 >>========================================== 이 시스템식에 << 다음 >> 과 같이 조건A, 조건B, 조건C, 조건D, 조건E, 조건F 를 대입하였을 때 삼성전자에서 1차 매수만 되고 2~5차 매수와 그 이후에 매도가 이루어지지 않습니다 무엇이 잘못된 것인지 바로잡아 주시기 바랍니다 ==========<< 다음 시작 >>========================================== Input : 총투자금(100000000); Var : 조건A(False), 조건B(false), 조건C(false), 조건D(false), 조건E(false), 조건F(false); 조건A = (sDate == 20161215); 조건B = (sDate == 20161222); 조건C = (sDate == 20161223); 조건D = (sDate == 20161226); 조건E = (sDate == 20161228); 조건F = (sDate == 20170731); If MarketPosition == 0 and 조건A Then buy("b1",OnClose,def,Floor((총투자금*0.2)/C)); If MarketPosition == 1 and MaxEntries == 1 Then{ If 조건B Then buy("b2",OnClose,def,Floor((총투자금*0.19)/C)); If PositionProfit <= -30000000 Then ExitLong("bx1"); } If MarketPosition == 1 and MaxEntries == 2 Then{ If 조건C Then buy("b3",OnClose,def,Floor((총투자금*0.18)/C)); If PositionProfit <= -40000000 Then ExitLong("bx2"); } If MarketPosition == 1 and MaxEntries == 3 then{ If 조건D Then buy("b4",OnClose,def,Floor((총투자금*0.17)/C)); If PositionProfit <= -50000000 Then ExitLong("bx3"); } If MarketPosition == 1 and MaxEntries == 4 Then{ If 조건E Then buy("b5",OnClose,def,Floor((총투자금*0.16)/C)); If PositionProfit <= -60000000 Then ExitLong("bx4"); } If MarketPosition == 1 and MaxEntries == 5 Then{ If 조건F Then ExitLong("bx5"); } ==========<< 다음 끝 >>========================================== 시스템식 작성바랍니다 수고하십시요^^