커뮤니티
청산 수식 문의드립니다.
2014-02-14 11:32:40
162
글번호 72561
아래 청산식은 1분 종가캔들상 익절과 손절 전략입니다.
현재는 익절과 손절 모두 종가캔들(1분봉) 기준으로 되어 있는데요.
여기서 익절은 종가캔들 현재대로 유지하고, 손절은 6틱 틱으로만 찍어도 손절이 나가게끔 수정하고 싶습니다.
답변 부탁드릴께요.
매번 감사합니다.
---------------------------------------------------------------------------------
if stime >= 110000 and stime < 130000 Then{
if MarketPosition == 1 Then{
if C >= EntryPrice+PriceScale*2 Then
ExitLong("1");
if C <= EntryPrice-PriceScale*6 Then
ExitLong("2");
}
if MarketPosition == -1 Then{
if C <= EntryPrice-PriceScale*2 Then
ExitShort("3");
if C >= EntryPrice+PriceScale*6 Then
ExitShort("4");
}
}
Else{
if MarketPosition == 1 Then{
if C >= EntryPrice+PriceScale*4 Then
ExitLong("5");
if C <= EntryPrice-PriceScale*6 Then
ExitLong("6");
}
if MarketPosition == -1 Then{
if C <= EntryPrice-PriceScale*4 Then
ExitShort("7");
if C >= EntryPrice+PriceScale*6 Then
ExitShort("8");
}
}
답변 1
예스스탁 예스스탁 답변
2014-02-14 12:49:47
안녕하세요
예스스탁입니다.
if stime >= 110000 and stime < 130000 Then{
if MarketPosition == 1 Then{
if C >= EntryPrice+PriceScale*2 Then
ExitLong("1");
}
if MarketPosition == -1 Then{
if C <= EntryPrice-PriceScale*2 Then
ExitShort("3");
}
}
Else{
if MarketPosition == 1 Then{
if C >= EntryPrice+PriceScale*4 Then
ExitLong("5");
}
if MarketPosition == -1 Then{
if C <= EntryPrice-PriceScale*4 Then
ExitShort("7");
}
}
SetStopProfittarget(PriceScale*6,PointStop);
즐거운 하루되세요
> 로렌스 님이 쓴 글입니다.
> 제목 : 청산 수식 문의드립니다.
> 아래 청산식은 1분 종가캔들상 익절과 손절 전략입니다.
현재는 익절과 손절 모두 종가캔들(1분봉) 기준으로 되어 있는데요.
여기서 익절은 종가캔들 현재대로 유지하고, 손절은 6틱 틱으로만 찍어도 손절이 나가게끔 수정하고 싶습니다.
답변 부탁드릴께요.
매번 감사합니다.
---------------------------------------------------------------------------------
if stime >= 110000 and stime < 130000 Then{
if MarketPosition == 1 Then{
if C >= EntryPrice+PriceScale*2 Then
ExitLong("1");
if C <= EntryPrice-PriceScale*6 Then
ExitLong("2");
}
if MarketPosition == -1 Then{
if C <= EntryPrice-PriceScale*2 Then
ExitShort("3");
if C >= EntryPrice+PriceScale*6 Then
ExitShort("4");
}
}
Else{
if MarketPosition == 1 Then{
if C >= EntryPrice+PriceScale*4 Then
ExitLong("5");
if C <= EntryPrice-PriceScale*6 Then
ExitLong("6");
}
if MarketPosition == -1 Then{
if C <= EntryPrice-PriceScale*4 Then
ExitShort("7");
if C >= EntryPrice+PriceScale*6 Then
ExitShort("8");
}
}
이전글