예스스탁
예스스탁 답변
2024-06-27 17:23:06
안녕하세요
예스스탁입니다.
피라미딩은 다른진입신호만 허용으로 설정하고 적용하시면 됩니다.
var1 = ma(C,20);
var2 = ma(C,60);
if MarketPosition <= 0 and CrossUp(var1,var2) Then
Buy("b",OnClose,Def,1);
if MarketPosition == 1 Then
{
if MaxEntries == 1 Then
Buy("bb",AtLimit,EntryPrice-PriceScale*50,2);
if CurrentContracts == MaxContracts Then
ExitLong("bp1",AtLimit,EntryPrice+PriceScale*50,"",1,1);
Else
ExitLong("bp2",AtLimit,EntryPrice+PriceScale*100,"",1,1);
if MaxEntries == 2 Then
ExitLong("bl",AtStop,LatestEntryPrice(0)-PriceScale*20);
}
if MarketPosition >= 0 and CrossDown(var1,var2) Then
Sell("s",OnClose,Def,1);
if MarketPosition == -1 Then
{
if MaxEntries == 1 Then
Sell("ss",AtLimit,EntryPrice+PriceScale*50,2);
if CurrentContracts == MaxContracts Then
ExitShort("sp1",AtLimit,EntryPrice-PriceScale*50,"",1,1);
Else
ExitShort("sp2",AtLimit,EntryPrice-PriceScale*100,"",1,1);
if MaxEntries == 2 Then
ExitShort("sl",AtStop,LatestEntryPrice(0)+PriceScale*20);
}
즐거운 하루되세요
> 왈라스 님이 쓴 글입니다.
> 제목 : 시스템식 부탁드립니다.
> ^나스닥매매^
총 3개진입합니다.
1 . 진입식 20이평과 60이평 크로스
2.진입수량 : 신호가에 1개 , 50틱손실볼때 물타기 2개
3.청산 : 1개는 본절에 청산 , 1개는 50틱에 익절 나머지 한개는 반대신호 나올때 청산
4.손절 : 물타기한 가격에서 20틱빠지면 전부 손절청산
5.진입과 청산은 시장가