커뮤니티
질문합니다 -!
2015-12-09 09:32:57
94
글번호 93215
예를 들어 열시종가에 매수0.50 매도0.50 포인트에 진입해서
30분경과 시점에서 손실이면 청산 .
이익이면 0.50포인트에서 이익실현하는 시스템을 알고 싶습니다 ~!
답변 1
예스스탁 예스스탁 답변
2015-12-09 13:08:29
안녕하세요
예스스탁입니다.
#매수진입 후
if MarketPosition == 1 Then{
#0.5포인트 수익이면 청산
ExitLong("BP",atlimit,EntryPrice+0.5);
#30분 경과시점에 종가가 진입가보다 작으면 청산
if C < EntryPrice and
((TimeToMinutes(stime) == TimeToMinutes(EntryTime)+30) or
(TimeToMinutes(stime) > TimeToMinutes(EntryTime)+30 and
TimeToMinutes(stime[1]) < TimeToMinutes(EntryTime)+30)) Then
exitlong();
}
#매도진입후
if MarketPosition == -1 Then{
#0.5포인트 수익이면 청산
ExitShort("SP",atlimit,EntryPrice-0.5);
#30분 경과시점에 종가가 진입가보다 크면 청산
if C > EntryPrice and
((TimeToMinutes(stime) == TimeToMinutes(EntryTime)+30) or
(TimeToMinutes(stime) > TimeToMinutes(EntryTime)+30 and
TimeToMinutes(stime[1]) < TimeToMinutes(EntryTime)+30)) Then
ExitShort();
}
즐거운 하루되세요
> yooneee7 님이 쓴 글입니다.
> 제목 : 질문합니다 -!
> 예를 들어 열시종가에 매수0.50 매도0.50 포인트에 진입해서
30분경과 시점에서 손실이면 청산 .
이익이면 0.50포인트에서 이익실현하는 시스템을 알고 싶습니다 ~!
다음글