커뮤니티
손실한정
2016-09-02 15:31:15
101
글번호 101625
거래시간은 오전 10시부터 12시 까지매매시간입니다
진입청산이 끈난후에 수익이50틱이상나오면 다음신호부터 매매정지하고
손실이40틱이상 나오면 다음신호부터 매매정지
시스템식 부탁합니다
답변 1
예스스탁 예스스탁 답변
2016-09-02 18:33:47
안녕하세요
예스스탁입니다.
아래 수식구조 및 내용 참고하시기 바랍니다.
var : NP(0),N1(0),DayPL(0);
NP = NetProfit;
if stime == 100000 or (stime > 100000 and stime[1] < 100000) Then
N1 = NP;
if stime >= 100000 and stime < 120000 Then{
dayPL = NP-N1+PositionProfit;
if 매수진입조건 Then{
if (daypl >= -PriceScale*40 and daypl <= PriceScale*50) then
buy();
Else
ExitShort();
}
if 매도진입조건 Then{
if (daypl >= -PriceScale*40 and daypl <= PriceScale*50) then
sell();
Else
exitlong();
}
if MarketPosition == 1 and 매수청산조건 Then
exitlong();
if MarketPosition == -1 and 매도청산조건 Then
ExitShort();
}
즐거운 하루되세요
> 수원 님이 쓴 글입니다.
> 제목 : 손실한정
> 거래시간은 오전 10시부터 12시 까지매매시간입니다
진입청산이 끈난후에 수익이50틱이상나오면 다음신호부터 매매정지하고
손실이40틱이상 나오면 다음신호부터 매매정지
시스템식 부탁합니다
다음글
이전글