커뮤니티

문의드립니다

프로필 이미지
noriter
2013-03-19 11:29:19
336
글번호 60913
답변완료
Input : af(0.02), maxAF(0.2) ; Var : value(0),entryP(0); value = csar(af,maxAF); If MarketPosition == 0 and crossup(C,value)Then{ Buy("b1"); entryP = C; } if MarketPosition == 1 Then{ if CurrentEntries == 1 and C >= H[1]*1.03 Then{ buy("b2",OnClose,def,CurrentContracts*2); entryP = C; } if CurrentEntries == 2 and C >= H[1]*1.03 Then{ buy("b3",OnClose,def,CurrentContracts*3); entryP = C; } exitlong("손절",AtStop,entryp*0.9); if C < value Then ExitLong(); } SetStopTrailing(4,5,PercentStop,1); 수고많으십니다 위 식에서 각각(b1,b2,b3)의 손절율과 SetStopTrailing의 조건을 따로 정하게 부탁드립니다 EX> b1은 손절 10% SetStopTrailing은 5%돌파 4%하락 b2은 손절 5% SetStopTrailing은 3%돌파 2%하락 b3은 손절 3% SetStopTrailing은 2%돌파 1%하락
시스템
답변 4
프로필 이미지

예스스탁 예스스탁 답변

2013-03-19 13:38:16

안녕하세요 예스스탁입니다. Input : af(0.02), maxAF(0.2) ; Var : value(0),entryP1(0),entryP2(0),entryP3(0),h1(0),h2(0),h3(0); value = csar(af,maxAF); If MarketPosition == 0 and crossup(C,value)Then{ Buy("b1"); entryP1 = C; h1 = H; } if MarketPosition == 1 Then{ if CurrentEntries == 1 and C >= H[1]*1.03 Then{ buy("b2",OnClose,def,CurrentContracts*2); entryP2 = C; H2 = H; } if CurrentEntries == 2 and C >= H[1]*1.03 Then{ buy("b3",OnClose,def,CurrentContracts*3); entryP3 = C; h3 = H; } if H > h1 Then h1 = H; if H > h2 Then h2 = h; if H > h3 Then h3 = h; if C < value Then ExitLong(); if MaxEntries >= 1 Then{ exitlong("손절1",AtStop,entryp1*0.9,"b1"); if h1 >= entryP1*1.05 Then ExitLong("tr1",AtStop,h1*0.96); } if MaxEntries >= 2 Then{ exitlong("손절2",AtStop,entryp2*0.9,"b2"); if h2 >= entryP2*1.03 Then ExitLong("tr2",AtStop,h1*0.98); } if MaxEntries >= 3 Then{ exitlong("손절3",AtStop,entryp3*0.9,"b3"); if h3 >= entryP3*1.02 Then ExitLong("tr3",AtStop,h1*0.99); } } 즐거운 하루되세요 > noriter 님이 쓴 글입니다. > 제목 : 문의드립니다 > Input : af(0.02), maxAF(0.2) ; Var : value(0),entryP(0); value = csar(af,maxAF); If MarketPosition == 0 and crossup(C,value)Then{ Buy("b1"); entryP = C; } if MarketPosition == 1 Then{ if CurrentEntries == 1 and C >= H[1]*1.03 Then{ buy("b2",OnClose,def,CurrentContracts*2); entryP = C; } if CurrentEntries == 2 and C >= H[1]*1.03 Then{ buy("b3",OnClose,def,CurrentContracts*3); entryP = C; } exitlong("손절",AtStop,entryp*0.9); if C < value Then ExitLong(); } SetStopTrailing(4,5,PercentStop,1); 수고많으십니다 위 식에서 각각(b1,b2,b3)의 손절율과 SetStopTrailing의 조건을 따로 정하게 부탁드립니다 EX> b1은 손절 10% SetStopTrailing은 5%돌파 4%하락 b2은 손절 5% SetStopTrailing은 3%돌파 2%하락 b3은 손절 3% SetStopTrailing은 2%돌파 1%하락
프로필 이미지

noriter

2013-03-19 14:17:35

아래 시스템식으로 하니깐 "tr2"로 b1,b2,b3이 같이 매수청산이 납니다 수정부탁드립니다.. > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 문의드립니다 > 안녕하세요 예스스탁입니다. Input : af(0.02), maxAF(0.2) ; Var : value(0),entryP1(0),entryP2(0),entryP3(0),h1(0),h2(0),h3(0); value = csar(af,maxAF); If MarketPosition == 0 and crossup(C,value)Then{ Buy("b1"); entryP1 = C; h1 = H; } if MarketPosition == 1 Then{ if CurrentEntries == 1 and C >= H[1]*1.03 Then{ buy("b2",OnClose,def,CurrentContracts*2); entryP2 = C; H2 = H; } if CurrentEntries == 2 and C >= H[1]*1.03 Then{ buy("b3",OnClose,def,CurrentContracts*3); entryP3 = C; h3 = H; } if H > h1 Then h1 = H; if H > h2 Then h2 = h; if H > h3 Then h3 = h; if C < value Then ExitLong(); if MaxEntries >= 1 Then{ exitlong("손절1",AtStop,entryp1*0.9,"b1"); if h1 >= entryP1*1.05 Then ExitLong("tr1",AtStop,h1*0.96); } if MaxEntries >= 2 Then{ exitlong("손절2",AtStop,entryp2*0.9,"b2"); if h2 >= entryP2*1.03 Then ExitLong("tr2",AtStop,h1*0.98); } if MaxEntries >= 3 Then{ exitlong("손절3",AtStop,entryp3*0.9,"b3"); if h3 >= entryP3*1.02 Then ExitLong("tr3",AtStop,h1*0.99); } } 즐거운 하루되세요 > noriter 님이 쓴 글입니다. > 제목 : 문의드립니다 > Input : af(0.02), maxAF(0.2) ; Var : value(0),entryP(0); value = csar(af,maxAF); If MarketPosition == 0 and crossup(C,value)Then{ Buy("b1"); entryP = C; } if MarketPosition == 1 Then{ if CurrentEntries == 1 and C >= H[1]*1.03 Then{ buy("b2",OnClose,def,CurrentContracts*2); entryP = C; } if CurrentEntries == 2 and C >= H[1]*1.03 Then{ buy("b3",OnClose,def,CurrentContracts*3); entryP = C; } exitlong("손절",AtStop,entryp*0.9); if C < value Then ExitLong(); } SetStopTrailing(4,5,PercentStop,1); 수고많으십니다 위 식에서 각각(b1,b2,b3)의 손절율과 SetStopTrailing의 조건을 따로 정하게 부탁드립니다 EX> b1은 손절 10% SetStopTrailing은 5%돌파 4%하락 b2은 손절 5% SetStopTrailing은 3%돌파 2%하락 b3은 손절 3% SetStopTrailing은 2%돌파 1%하락
프로필 이미지

noriter

2013-03-19 14:17:02

noriter 님에 의해 삭제된 답변입니다.
프로필 이미지

예스스탁 예스스탁 답변

2013-03-19 14:25:29

안녕하세요 예스스탁입니다. 식을 수정했습니다. Input : af(0.02), maxAF(0.2) ; Var : value(0),entryP1(0),entryP2(0),entryP3(0),h1(0),h2(0),h3(0); value = csar(af,maxAF); If MarketPosition == 0 and crossup(C,value)Then{ Buy("b1"); entryP1 = C; h1 = H; } if MarketPosition == 1 Then{ if CurrentEntries == 1 and C >= H[1]*1.03 Then{ buy("b2",OnClose,def,CurrentContracts*2); entryP2 = C; H2 = H; } if CurrentEntries == 2 and C >= H[1]*1.03 Then{ buy("b3",OnClose,def,CurrentContracts*3); entryP3 = C; h3 = H; } if H > h1 Then h1 = H; if H > h2 Then h2 = h; if H > h3 Then h3 = h; if C < value Then ExitLong(); if MaxEntries >= 1 Then{ exitlong("손절1",AtStop,entryp1*0.9,"b1"); if h1 >= entryP1*1.05 Then ExitLong("tr1",AtStop,h1*0.96,"b1"); } if MaxEntries >= 2 Then{ exitlong("손절2",AtStop,entryp2*0.95,"b2"); if h2 >= entryP2*1.03 Then ExitLong("tr2",AtStop,h1*0.98,"b2"); } if MaxEntries >= 3 Then{ exitlong("손절3",AtStop,entryp3*0.97,"b3"); if h3 >= entryP3*1.02 Then ExitLong("tr3",AtStop,h1*0.99,"b3"); } } 즐거운 하루되세요 > noriter 님이 쓴 글입니다. > 제목 : Re : Re : 문의드립니다 > 아래 시스템식으로 하니깐 "tr2"로 b1,b2,b3이 같이 매수청산이 납니다 수정부탁드립니다.. > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 문의드립니다 > 안녕하세요 예스스탁입니다. Input : af(0.02), maxAF(0.2) ; Var : value(0),entryP1(0),entryP2(0),entryP3(0),h1(0),h2(0),h3(0); value = csar(af,maxAF); If MarketPosition == 0 and crossup(C,value)Then{ Buy("b1"); entryP1 = C; h1 = H; } if MarketPosition == 1 Then{ if CurrentEntries == 1 and C >= H[1]*1.03 Then{ buy("b2",OnClose,def,CurrentContracts*2); entryP2 = C; H2 = H; } if CurrentEntries == 2 and C >= H[1]*1.03 Then{ buy("b3",OnClose,def,CurrentContracts*3); entryP3 = C; h3 = H; } if H > h1 Then h1 = H; if H > h2 Then h2 = h; if H > h3 Then h3 = h; if C < value Then ExitLong(); if MaxEntries >= 1 Then{ exitlong("손절1",AtStop,entryp1*0.9,"b1"); if h1 >= entryP1*1.05 Then ExitLong("tr1",AtStop,h1*0.96); } if MaxEntries >= 2 Then{ exitlong("손절2",AtStop,entryp2*0.9,"b2"); if h2 >= entryP2*1.03 Then ExitLong("tr2",AtStop,h1*0.98); } if MaxEntries >= 3 Then{ exitlong("손절3",AtStop,entryp3*0.9,"b3"); if h3 >= entryP3*1.02 Then ExitLong("tr3",AtStop,h1*0.99); } } 즐거운 하루되세요 > noriter 님이 쓴 글입니다. > 제목 : 문의드립니다 > Input : af(0.02), maxAF(0.2) ; Var : value(0),entryP(0); value = csar(af,maxAF); If MarketPosition == 0 and crossup(C,value)Then{ Buy("b1"); entryP = C; } if MarketPosition == 1 Then{ if CurrentEntries == 1 and C >= H[1]*1.03 Then{ buy("b2",OnClose,def,CurrentContracts*2); entryP = C; } if CurrentEntries == 2 and C >= H[1]*1.03 Then{ buy("b3",OnClose,def,CurrentContracts*3); entryP = C; } exitlong("손절",AtStop,entryp*0.9); if C < value Then ExitLong(); } SetStopTrailing(4,5,PercentStop,1); 수고많으십니다 위 식에서 각각(b1,b2,b3)의 손절율과 SetStopTrailing의 조건을 따로 정하게 부탁드립니다 EX> b1은 손절 10% SetStopTrailing은 5%돌파 4%하락 b2은 손절 5% SetStopTrailing은 3%돌파 2%하락 b3은 손절 3% SetStopTrailing은 2%돌파 1%하락