예스스탁
예스스탁 답변
2022-07-21 13:44:17
안녕하세요
예스스탁입니다.
피라미딩은 다른진입신호만 허용으로 설정하고 적용하셔야 합니다.
if MarketPosition >= 0 and DayHigh < DayOpen+PriceScale*200 Then
Sell("s1",AtLimit,DayOpen+PriceScale*200,1);
if MarketPosition == -1 Then
{
if DayHigh < DayOpen+PriceScale*300 Then
Sell("s2",AtLimit,DayOpen+PriceScale*300,1);
if DayHigh < DayOpen+PriceScale*400 Then
Sell("s3",AtLimit,DayOpen+PriceScale*400,1);
ExitShort("sl1",AtStop,DayOpen+PriceScale*500,"s1");
ExitShort("sl2",AtStop,DayOpen+PriceScale*550,"s2");
ExitShort("sl3",AtStop,DayOpen+PriceScale*600,"s3");
ExitShort("sp1",AtLimit,DayOpen-PriceScale*70,"s1");
ExitShort("sp2",AtLimit,DayOpen-PriceScale*100,"s2");
ExitShort("sp3",AtLimit,DayOpen-PriceScale*120,"s3");
}
if MarketPosition <= 0 and DayLow > DayOpen-PriceScale*200 Then
Buy("b1",AtLimit,DayOpen-PriceScale*200,1);
if MarketPosition == 1 Then
{
if DayLow > DayOpen-PriceScale*300 Then
Buy("b2",AtLimit,DayOpen-PriceScale*300,1);
if DayLow > DayOpen-PriceScale*400 Then
Buy("b3",AtLimit,DayOpen-PriceScale*400,1);
ExitLong("bl1",AtStop,DayOpen-PriceScale*500,"b1");
ExitLong("bl2",AtStop,DayOpen-PriceScale*550,"b2");
ExitLong("bl3",AtStop,DayOpen-PriceScale*600,"b3");
ExitLong("bp1",AtLimit,DayOpen+PriceScale*70,"b1");
ExitLong("bp2",AtLimit,DayOpen+PriceScale*100,"b2");
ExitLong("bp3",AtLimit,DayOpen+PriceScale*120,"b3");
}
즐거운 하루되세요
> 신나는파파 님이 쓴 글입니다.
> 제목 : 시스템식 부탁드립니다.
>
매도1: 시가대비+200틱(1계약)
매도2: 시가대비+300틱(1계약)
매도3: 시가대비+400틱(1계약)
손절1:시가대비+500틱(1계약)
손절2:시가대비+550틱(1계약)
손절3:시가대비+600틱(1계약)
익절: 1계약진입일경우 ------------------> 70틱 수익시 실현(1계약);
2계약진입일경우 ------------------> 1계약은(70틱실현), 나머지1계약은(100틱실현)
3계약진입일경우 ------------------> 1계약은(70틱실현), 나머지1계약은(100틱실현), 또 나머지 1계약은(120틱실현)
#-------------------------------------------------------------------------------------------------------------------------------
매수1: 시가대비-200틱(1계약)
매수2: 시가대비-300틱(1계약)
매수3: 시가대비-400틱(1계약)
손절1:시가대비-500틱(1계약)
손절2:시가대비-550틱(1계약)
손절3:시가대비-600틱(1계약)
익절: 1계약진입일경우 ------------------> 70틱 수익시 실현(1계약);
2계약진입일경우 ------------------> 1계약은(70틱실현), 나머지1계약은(100틱실현)
3계약진입일경우 ------------------> 1계약은(70틱실현), 나머지1계약은(100틱실현), 또 나머지 1계약은(120틱실현)