예스스탁
예스스탁 답변
2021-11-15 15:48:25
안녕하세요
예스스탁입니다.
1
input : 조정틱(10),진입틱(20);
if L > L[1] and L < L[1]+PriceScale*조정틱 Then
Sell("s",AtLimit,L+PriceScale진입틱);
if H < H[1] and H > H[1]-PriceScale*조정틱 Then
Buy("b",AtLimit,H-PriceScale진입틱);
2
input : 조정틱(10),진입틱(20),매수2차(20),매도2차(20);
input : 익절틱(20),최소손실틱(20),손실감소틱(10);
var : HH(0),LL(0);
if MarketPosition >= 0 and L > L[1] and L < L[1]+PriceScale*조정틱 Then
Sell("s",AtLimit,L+PriceScale*진입틱);
if MarketPosition <= 0 and H < H[1] and H > H[1]-PriceScale*조정틱 Then
Buy("b1",AtLimit,H-PriceScale*진입틱);
if MarketPosition == 1 Then
{
if CurrentContracts > CurrentContracts[1] Then
LL = L;
if L < LL Then
LL = L;
if MaxEntries == 1 Then
Buy("b2",AtLimit,EntryPrice-PriceScale*매수2차);
ExitLong("bp",AtLimit,AvgEntryPrice+PriceScale*익절틱);
if MaxEntries == 2 and LL <= LatestEntryPrice(0)-PriceScale*최소손실틱 Then
exitlong("btr",AtStop,LL+PriceScale*손실감소틱);
}
if MarketPosition == -1 Then
{
if CurrentContracts > CurrentContracts[1] Then
HH = H;
if H > HH Then
HH = H;
if MaxEntries == 1 Then
Sell("s2",AtLimit,EntryPrice+PriceScale*매도2차);
ExitShort("sp",AtLimit,AvgEntryPrice+PriceScale*익절틱);
if MaxEntries == 2 and HH >= LatestEntryPrice(0)+PriceScale*최소손실틱 Then
ExitShort("str",AtStop,HH-PriceScale*손실감소틱);
}
즐거운 하루되세요
> 예스요 님이 쓴 글입니다.
> 제목 : 문의 드립니다.~~~~
> 항상 감사합니다!
다음 수식을 부탁드립니다.
1, 진입조건
- 10틱("조정틱"변수로)이상 상승하지 않은 저가에서
20틱("진입틱"변수로)이상 상승시에는
저가+20틱("진입틱" 변수로)에 역추세 매도진입
- 10틱("조정틱"변수로)이상 하락하지 않은 고가에서
20틱("진입틱"변수로)이상 하락시에는
고가-20틱("진입틱" 변수로)에 역추세 매수진입
2, 추가매수: 진입후 20틱("2차매수" 변수) 아래에서 2차매수(물타기)
추가매도: 진입후 20틱("2차매도" 변수) 위에서 2차매도(물타기)
2, 청산조건(물타기 포함)
익절청산은 20틱("익절틱" 변수로)
손절청산은 20틱 ("최소손실틱")을 변수로 하고
10틱 ("손실감소틱")을 변수로 하는 트레일링스탑입니다.
건강하세요.
아래식이 왜 틱차트에서는 작동되지 않나요?
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 문의 드립니다.~~~~
> 안녕하세요
예스스탁입니다.
1
input : 조정틱(10),진입틱(20);
if L > L[1] and L < L[1]+PriceScale*조정틱 Then
Sell("s",AtLimit,L+PriceScale진입틱);
if H < H[1] and H > H[1]-PriceScale*조정틱 Then
Buy("b",AtLimit,H-PriceScale진입틱);
2
input : 조정틱(10),진입틱(20),매수2차(20),매도2차(20);
input : 익절틱(20),최소손실틱(20),손실감소틱(10);
var : HH(0),LL(0);
if MarketPosition >= 0 and L > L[1] and L < L[1]+PriceScale*조정틱 Then
Sell("s",AtLimit,L+PriceScale*진입틱);
if MarketPosition <= 0 and H < H[1] and H > H[1]-PriceScale*조정틱 Then
Buy("b1",AtLimit,H-PriceScale*진입틱);
if MarketPosition == 1 Then
{
if CurrentContracts > CurrentContracts[1] Then
LL = L;
if L < LL Then
LL = L;
if MaxEntries == 1 Then
Buy("b2",AtLimit,EntryPrice-PriceScale*매수2차);
ExitLong("bp",AtLimit,AvgEntryPrice+PriceScale*익절틱);
if MaxEntries == 2 and LL <= LatestEntryPrice(0)-PriceScale*최소손실틱 Then
exitlong("btr",AtStop,LL+PriceScale*손실감소틱);
}
if MarketPosition == -1 Then
{
if CurrentContracts > CurrentContracts[1] Then
HH = H;
if H > HH Then
HH = H;
if MaxEntries == 1 Then
Sell("s2",AtLimit,EntryPrice+PriceScale*매도2차);
ExitShort("sp",AtLimit,AvgEntryPrice+PriceScale*익절틱);
if MaxEntries == 2 and HH >= LatestEntryPrice(0)+PriceScale*최소손실틱 Then
ExitShort("str",AtStop,HH-PriceScale*손실감소틱);
}
즐거운 하루되세요
> 예스요 님이 쓴 글입니다.
> 제목 : 문의 드립니다.~~~~
> 항상 감사합니다!
다음 수식을 부탁드립니다.
1, 진입조건
- 10틱("조정틱"변수로)이상 상승하지 않은 저가에서
20틱("진입틱"변수로)이상 상승시에는
저가+20틱("진입틱" 변수로)에 역추세 매도진입
- 10틱("조정틱"변수로)이상 하락하지 않은 고가에서
20틱("진입틱"변수로)이상 하락시에는
고가-20틱("진입틱" 변수로)에 역추세 매수진입
2, 추가매수: 진입후 20틱("2차매수" 변수) 아래에서 2차매수(물타기)
추가매도: 진입후 20틱("2차매도" 변수) 위에서 2차매도(물타기)
2, 청산조건(물타기 포함)
익절청산은 20틱("익절틱" 변수로)
손절청산은 20틱 ("최소손실틱")을 변수로 하고
10틱 ("손실감소틱")을 변수로 하는 트레일링스탑입니다.
건강하세요.