커뮤니티

선물차트로콜옵션풋옵션시스템매매식부탁드립니다

프로필 이미지
외국인
2011-04-25 13:28:28
671
글번호 37895
답변완료
하기의 식을 이용하여선물차트5분봉이용 콜옵션(data2),풋옵션(data3)거래 할수있도록 부탁드립니다 매수전용계좌용으로부탁드립니다 봉 미완성시 즉시 신호발생할수있도록부탁합니다. var : cnt(0); var1 = ma(c,5); var2 = ma(c,20); if date != date[1] then cnt = 0; if stime >= 90000 and stime < 150000 then{ if crossup(var1,var2) and cnt < 1 then{ buy("매수"); cnt = 1; } if crossdown(var1,var2) and cnt < 1 then{ sell("매도"); cnt = 1; } if cnt == 1 and BarsSinceEntry() > 3 and crossdown(var1,var2) then{ exitlong("매수청산"); sell("매도1"); } if cnt == 1 and BarsSinceEntry() > 3 and crossup(var1,var2) then{ exitshort(); buy("매수1"); } } if (BarsSinceEntry() > 3 and crossdown(var1,var2)) or stime == 150000 then exitlong("매수청산1"); if (BarsSinceEntry() > 3 and crossup(var1,var2)) or stime == 150000 then exitshort("매도청산"); //1.매수후3개봉이내에서 매도금지 //2.매도후3개봉이내에서 매수금지
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-04-25 14:19:53

안녕하세요 예스스탁입니다. 선물을 이용해서 콜과 풋을 거래하셔야 하므로 주종목이 콜이나 풋이 되어야 합니다. 주종목 콜, 참조(data2) 선물 주종목 풋, 참조(data2) 선물 2개의 차트를 만드신 후에 식을 각각 걸어주시면 됩니다. 1. 콜 var : va1(0,data2),va2(0,data2),cnt(0); va1 = ma(c,5); va2 = ma(c,20); if data2(date != date[1]) then cnt = 0; if data2(stime >= 90000 and stime < 150000) then{ if data2(crossup(va1,va2) and cnt < 1) then{ buy("매수"); cnt = 1; } if data2(cnt == 1 and BarsSinceEntry() > 3 and crossup(va1,va2)) then{ buy("매수1"); } if data2(cnt == 1 and BarsSinceEntry() > 3 and crossdown(va1,va2)) then{ ExitLong("청산2"); } } if (BarsSinceEntry() > 3 and crossdown(va1,va2)) or data2(stime == 150000) then exitlong("매수청산1"); 2. 풋 var : va1(0,data2),va2(0,data2),cnt(0); va1 = ma(c,5); va2 = ma(c,20); if data2(date != date[1]) then cnt = 0; if data2(stime >= 90000 and stime < 150000) then{ if data2(crossdown(va1,va2) and cnt < 1) then{ buy("매수"); cnt = 1; } if data2(cnt == 1 and BarsSinceEntry() > 3 and crossdown(va1,va2)) then{ buy("매도1"); } if data2(cnt == 1 and BarsSinceEntry() > 3 and crossup(va1,va2)) then{ ExitLong("매수2"); } } if (BarsSinceEntry() > 3 and crossup(va1,va2)) or data2(stime == 150000) then ExitLong("매도청산"); 즐거운 하루되세요 > 외국인 님이 쓴 글입니다. > 제목 : 선물차트로콜옵션풋옵션시스템매매식부탁드립니다 > 하기의 식을 이용하여선물차트5분봉이용 콜옵션(data2),풋옵션(data3)거래 할수있도록 부탁드립니다 매수전용계좌용으로부탁드립니다 봉 미완성시 즉시 신호발생할수있도록부탁합니다. var : cnt(0); var1 = ma(c,5); var2 = ma(c,20); if date != date[1] then cnt = 0; if stime >= 90000 and stime < 150000 then{ if crossup(var1,var2) and cnt < 1 then{ buy("매수"); cnt = 1; } if crossdown(var1,var2) and cnt < 1 then{ sell("매도"); cnt = 1; } if cnt == 1 and BarsSinceEntry() > 3 and crossdown(var1,var2) then{ exitlong("매수청산"); sell("매도1"); } if cnt == 1 and BarsSinceEntry() > 3 and crossup(var1,var2) then{ exitshort(); buy("매수1"); } } if (BarsSinceEntry() > 3 and crossdown(var1,var2)) or stime == 150000 then exitlong("매수청산1"); if (BarsSinceEntry() > 3 and crossup(var1,var2)) or stime == 150000 then exitshort("매도청산"); //1.매수후3개봉이내에서 매도금지 //2.매도후3개봉이내에서 매수금지