커뮤니티
문의 드립니다.~~~~
답변 감사합니다.
아래식을 실행시켜 보니 저의 의도대로 실행이 되지 않아
다시 부탁드립니다.
아래식을 각행마다 주석 부탁 드립니다.
답변 1
예스스탁 예스스탁 답변
2026-10-06 11:20:45
안녕하세요
예스스탁입니다.
피라미딩은 모든진입신호 허용으로 설정하고 적용하시면 됩니다.
var : a틱(3),c틱(5),n틱(10),m틱(10);
if MarketPosition <= 0 and
CountIf(C<O,2) == 2 and
abs(C-H[1]) >= PriceScale*a틱 Then
Buy("b");
if MarketPosition >= 0 and
CountIf(C>O,2) == 2 and
abs(C-L[1]) >= PriceScale*a틱 Then
Sell("s");
if MarketPosition == 1 Then
{
if CountIf(C<O and abs(C-H) >= PriceScale*c틱,2) == 2 Then
Buy("bb");
ExitLong("bpx",AtLimit,AvgEntryPrice+PriceScale*n틱);
ExitLong("blx",AtLimit,LatestEntryPrice(0)-PriceScale*m틱);
}
if MarketPosition == -1 Then
{
if CountIf(C>O and abs(C-L) >= PriceScale*c틱,2) == 2 Then
Sell("ss");
ExitShort("spx",AtLimit,AvgEntryPrice-PriceScale*n틱);
ExitShort("slx",AtLimit,LatestEntryPrice(0)+PriceScale*m틱);
}
답변 1
예스스탁 예스스탁 답변
2026-10-07 15:43:06