커뮤니티

문의드립니다

프로필 이미지
2685up
2025-12-03 15:47:19
102
글번호 228635
답변완료

답변감사드림니다. 다름아니고 아래수식에  단위수량(10)을 추가부탁드립니다. 그리고 CC 는 어떤것을 가리키는것인가요?

Inputs: RSILength(10), OverSold(30),Period(10),Period1(5); input : 총자금(1000000),분할매수횟수(10); input : BB(5),CC(10),DD(0); var : R(0),value(0),AEP(0),MM(0); R = data1(RSI(RSILength)); value = data1(StochasticsK(Period,Period1)); MM = 총자금/분할매수횟수; If Crossup(R, OverSold) Then { if MarketPosition == 0 or (MarketPosition == 1 and MaxEntries < 5) Then Buy("RSI",OnClose,Def,Floor(MM/C)); } if MarketPosition == 1 Then { //진입발생 if CurrentContracts > CurrentContracts[1] Then { //평단가저장 AEP = AvgEntryPrice; //초기목표수익 BB% R = BB; } //청산발생 if CurrentContracts < CurrentContracts[1] Then { //목표수익 DD% 증가 R = R+DD; } ExitLong("bx",AtLimit,AEP*(1+R/100),"",max(Floor(MaxContracts*0.05),1),2); //일괄매도 If data1(CrossDown(value, 80)) Then ExitLong("x"); }


시스템
답변 2
프로필 이미지

예스스탁 예스스탁 답변

2025-12-03 15:49:46

안녕하세요 예스스탁입니다. Inputs: RSILength(10), OverSold(30),Period(10),Period1(5); input : 총자금(1000000),분할매수횟수(10); input : BB(5),CC(10),DD(0); var : R(0),value(0),AEP(0),MM(0); R = data1(RSI(RSILength)); value = data1(StochasticsK(Period,Period1)); MM = 총자금/분할매수횟수; If Crossup(R, OverSold) Then { if MarketPosition == 0 or (MarketPosition == 1 and MaxEntries < 5) Then Buy ("RSI",OnClose,Def,Floor(Floor(MM/C)/10)*10); } if MarketPosition == 1 Then { //진입발생 if CurrentContracts > CurrentContracts[1] Then { //평단가저장 AEP = AvgEntryPrice; //초기목표수익 BB% R = BB; } //청산발생 if CurrentContracts < CurrentContracts[1] Then { //목표수익 DD% 증가 R = R+DD; } ExitLong("bx",AtLimit,AEP*(1+R/100),"",max(Floor(MaxContracts*0.05),1),2); //일괄매도 If data1(CrossDown(value, 80)) Then ExitLong("x"); } 즐거운 하루되세요
프로필 이미지

예스스탁 예스스탁 답변

2025-12-04 10:44:14

안녕하세요
예스스탁입니다. 청산수량도 10주 단위로 수정해 드립니다. Inputs: RSILength(10), OverSold(30),Period(10),Period1(5); input : 총자금(1000000),분할매수횟수(10); input : BB(5),CC(10),DD(0); var : R(0),value(0),AEP(0),MM(0); R = data1(RSI(RSILength)); value = data1(StochasticsK(Period,Period1)); MM = 총자금/분할매수횟수; If Crossup(R, OverSold) Then { if MarketPosition == 0 or (MarketPosition == 1 and MaxEntries < 5) Then Buy ("RSI",OnClose,Def,Floor(Floor(MM/C)/10)*10); } if MarketPosition == 1 Then { //진입발생 if CurrentContracts > CurrentContracts[1] Then { //평단가저장 AEP = AvgEntryPrice; //초기목표수익 BB% R = BB; } //청산발생 if CurrentContracts < CurrentContracts[1] Then { //목표수익 DD% 증가 R = R+DD; } ExitLong("bx",AtLimit,AEP*(1+R/100),"",floor(max(Floor(MaxContracts*0.05),1)/10)*10,2); //일괄매도 If data1(CrossDown(value, 80)) Then ExitLong("x"); } 즐거운 하루되세요