커뮤니티

수식문의

프로필 이미지
민선생1
2014-04-14 21:12:54
168
글번호 74439
답변완료
안녕하세요 아래식에서 당일거래중 수익이 50만원되면 즉시 거래정지되게 부탁드립니다 감사합니다 If stime < 150000 Then{ if stime > 090000 then{ If MarketPosition==0 then{ buy("매수",Atstop,DayOpen+0.6); sell("매도",Atstop,DayOpen-0.6); } if MarketPosition == -1 Then buy("역매수",Atstop,lowest(low,BarsSinceEntry+1)+0.8); if MarketPosition == 1 Then sell("역매도",Atstop,highest(high,BarsSinceEntry+1)-0.8); } }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-04-15 10:35:11

안녕하세요 예스스탁입니다. input:하루이익(1);#1포인트 var : NP(0),PreNP(0),DayPl(0); NP = NetProfit; if date != date[1] Then PreNP = NP[1]; DayPL = NP-PreNP; If stime < 150000 Then{ if stime > 090000 and DayPL < 하루이익 then{ If MarketPosition==0 then{ buy("매수",Atstop,DayOpen+0.6); sell("매도",Atstop,DayOpen-0.6); } if MarketPosition == -1 Then buy("역매수",Atstop,lowest(low,BarsSinceEntry+1)+0.8); if MarketPosition == 1 Then sell("역매도",Atstop,highest(high,BarsSinceEntry+1)-0.8); } } if MarketPosition == 1 Then{ ExitLong("bx2",AtLimit,EntryPrice+((하루이익)-(DayPL))); } if MarketPosition == -1 Then{ ExitShort("sx2",AtLimit,EntryPrice+(-(하루이익)+(DayPL))); } 즐거운 하루되세요 > 민선생1 님이 쓴 글입니다. > 제목 : 수식문의 > 안녕하세요 아래식에서 당일거래중 수익이 50만원되면 즉시 거래정지되게 부탁드립니다 감사합니다 If stime < 150000 Then{ if stime > 090000 then{ If MarketPosition==0 then{ buy("매수",Atstop,DayOpen+0.6); sell("매도",Atstop,DayOpen-0.6); } if MarketPosition == -1 Then buy("역매수",Atstop,lowest(low,BarsSinceEntry+1)+0.8); if MarketPosition == 1 Then sell("역매도",Atstop,highest(high,BarsSinceEntry+1)-0.8); } }