커뮤니티

수식부탁합니다

프로필 이미지
k07
2013-07-10 17:32:19
208
글번호 65180
답변완료
수식부탁합니다 1)지정가이탈시매도 매도후 목표가도달시 진입수량의반청산 2)지정가돌파시매수 매도후 목표가도달시 진입수량의반청산 도일봉에서는진입금지 대신은분할매도가없음니다 If position= -1Then If crossup(close,price2) Then Call buy("매수1",Atmarket) End If End If If position= 0Then If crossup(close, price2) Then Call buy("매수11",Atmarket) End If End If If position= 1Then If crossdn(close,price) Then Call exitlong("매수1청산",Atmarket) End If End If If position= 0Then If crossdn(close,price1) Then Call sell("매도1",Atmarket) End If End If If position= 0Then If crossdn(close,price) Then Call sell("매도11",Atmarket) End If End If
시스템
답변 3
프로필 이미지

예스스탁 예스스탁 답변

2013-07-10 16:41:18

안녕하세요? 예스스탁입니다. 문의하신 내용 답변드립니다. input : 목표가(1.0), 매수지정가(250), 매도지정가(249); if MarketPosition <> -1 Then sell("S",atstop, 매도지정가, 10); if MarketPosition == -1 Then ExitShort("ES", atlimit, EntryPrice-목표가, def, 5); if MarketPosition <> -1 Then buy("B",atstop, 매수지정가, 10); if MarketPosition == 1 Then Exitlong("EL", atlimit, EntryPrice+목표가, def, 5); SetStopEndofday(1500); 즐거운 날 되세요. > k07 님이 쓴 글입니다. > 제목 : 수식부탁합니다 > 수식부탁합니다 1)지정가이탈시매도 매도후 목표가도달시 진입수량의반청산 2)지정가돌파시매수 매도후 목표가도달시 진입수량의반청산 도일봉에서는진입금지
프로필 이미지

예스스탁 예스스탁 답변

2013-07-10 17:51:03

통화한 내용으로 추가 답변드립니다. input : 수량(10),Price(1.5), Price1(1.5), Price2(1.5), 목표가(1.0); If Marketposition == -1 Then If crossup(close,price2) Then buy("매수1",Atmarket, def, 수량); If Marketposition == 0 Then If crossup(close, price2) Then buy("매수11",Atmarket, def, 수량); If Marketposition == 1 Then If crossdown(close,price) Then exitlong("매수1청산",Atmarket, def, def, int(수량/2)); If Marketposition == 0 Then If crossdown(close,price1) Then sell("매도1",Atmarket, def, 수량); If Marketposition == 0 Then If crossdown(close,price) Then sell("매도11",Atmarket, def, 수량); if MarketPosition == -1 Then ExitShort("ES", atlimit, EntryPrice-목표가, def, int(수량/2)); if MarketPosition == 1 Then Exitlong("EL", atlimit, EntryPrice+목표가, def, int(수량/2));
프로필 이미지

예스스탁 예스스탁 답변

2013-07-11 11:30:34

통화한 내용 답변드립니다. 시간을 지정한 식입니다. 예를들어 10시 30분 이후에 신호가 나오도록 하려면 시간지정변수에 103000 을 입력하시면 됩니다. input : 시간지정(094000), 수량(10), 매수가(3.0), 매도가(2.0), 목표가(0.5); Condition1 = date==exitdate(1) And MarketPosition(1) == 1; Condition2 = date==exitdate(1) And MarketPosition(1) == -1; if stime >= 시간지정 and stime < 150000 then { if Condition1 == false and H < 매수가 Then buy("B", atstop, 매수가, 수량); if Condition2 == false and L > 매도가 Then sell("S", atstop, 매도가, 수량); } if MarketPosition == 1 Then Exitlong("EL", atlimit, EntryPrice+목표가, def, int(수량/2)); if MarketPosition == -1 Then ExitShort("ES", atlimit, EntryPrice-목표가, def, int(수량/2)); SetStopEndofday(1500); > 예스스탁 님이 쓴 글입니다. > 제목 : Re : Re : 수식부탁합니다 > 통화한 내용으로 추가 답변드립니다. input : 수량(10),Price(1.5), Price1(1.5), Price2(1.5), 목표가(1.0); If Marketposition == -1 Then If crossup(close,price2) Then buy("매수1",Atmarket, def, 수량); If Marketposition == 0 Then If crossup(close, price2) Then buy("매수11",Atmarket, def, 수량); If Marketposition == 1 Then If crossdown(close,price) Then exitlong("매수1청산",Atmarket, def, def, int(수량/2)); If Marketposition == 0 Then If crossdown(close,price1) Then sell("매도1",Atmarket, def, 수량); If Marketposition == 0 Then If crossdown(close,price) Then sell("매도11",Atmarket, def, 수량); if MarketPosition == -1 Then ExitShort("ES", atlimit, EntryPrice-목표가, def, int(수량/2)); if MarketPosition == 1 Then Exitlong("EL", atlimit, EntryPrice+목표가, def, int(수량/2));