커뮤니티
문의드립니다.
2018-03-13 20:05:42
170
글번호 117361
* 해외선물에서 매일 08시에 매도진입
* 청산: 진입후. 30틱 ~40틱사이의 수익시 10틱하락하면 청산
진입후 41 틱 이상 수익시 31틱 수익 보존(41틱 이상 수익시에는 31틱까지 내려오기 전엔 개속 홀딩)
* 익일 05시에 일괄청산
감사합니다.....
답변 1
예스스탁 예스스탁 답변
2018-03-14 10:58:36
안녕하세요
예스스탁입니다.
1
if bdate != bdate[1] Then
sell();
if MarketPosition == -1 Then{
var2 = lowest(l,BarsSinceEntry);
if var2 <= EntryPrice-PriceScale*30 and var2 >= EntryPrice-PriceScale*40 Then
ExitShort("sx1",AtStop,var2+PriceScale*10);
if var2 <= EntryPrice-PriceScale*41 Then
ExitShort("sx2",AtStop,EntryPrice-PriceScale*31);
if stime >= 050000 and stime[1] < 050000 Then
exitlong();
}
2
이전 답변에 41틱이상시 31틱 수익보전이 잘못작성해 드려
수정식 올려드립니다.
if bdate != bdate[1] Then
buy();
if MarketPosition == 1 Then{
var1 = highest(h,BarsSinceEntry);
if var1 >= EntryPrice+PriceScale*30 and var1 <= EntryPrice+PriceScale*40 Then
ExitLong("bx1",AtStop,var1-PriceScale*10);
if var1 >= EntryPrice+PriceScale*41 Then
ExitLong("bx2",AtStop,EntryPrice+PriceScale*31);
if stime >= 050000 and stime[1] < 050000 Then
exitlong();
}
즐거운 하루되세요
> 하늘북 님이 쓴 글입니다.
> 제목 : 문의드립니다.
> * 해외선물에서 매일 08시에 매도진입
* 청산: 진입후. 30틱 ~40틱사이의 수익시 10틱하락하면 청산
진입후 41 틱 이상 수익시 31틱 수익 보존(41틱 이상 수익시에는 31틱까지 내려오기 전엔 개속 홀딩)
* 익일 05시에 일괄청산
감사합니다.....
다음글
이전글