예스스탁
예스스탁 답변
2021-05-26 11:12:56
안녕하세요
예스스탁입니다.
if MarketPosition == 1 Then
{
ExitLong("bx",AtLimit,EntryPrice+PriceScale*8);
if MaxContracts < 10 Then
Buy("b",AtLimit,LatestEntryPrice(0)-PriceScale*7,1);
if MaxContracts >= 4 Then
{
ExitLong("bx1",AtLimit,AvgEntryPrice+PriceScale*XX);
ExitLong("bx2",AtLimit,EntryPrice);
}
}
if MarketPosition == -1 Then
{
ExitShort("sx",AtLimit,EntryPrice-PriceScale*8);
if MaxContracts < 10 Then
Sell("s",AtLimit,LatestEntryPrice(0)+PriceScale*7,1);
if MaxContracts >= 4 Then
{
ExitShort("sx1",AtLimit,AvgEntryPrice-PriceScale*XX);
ExitShort("sx2",AtLimit,EntryPrice);
}
}
즐거운 하루되세요
> 요타 님이 쓴 글입니다.
> 제목 : * 추가 매수식 하나 요청 드립니다.
> * 많은 도움에 고맙 습니다.
* 지나번 시스템 식에서 수식 하나 확인 요청 드립니다.
* 기준: "계약건수가 4개 이상이면 최초 진입 가격 오면 청산" 추가 부탁 드립니다.
→ 각각 목표 수익이 아니고 4계약 이상 이면 처음 진입 가격 오면 모두 청산 입니다
## 추가 매수식
if MarketPosition == 1 Then
{
ExitLong("bx",AtLimit,EntryPrice+PriceScale*8);
if MaxContracts < 10 Then
Buy("b",AtLimit,LatestEntryPrice(0)-PriceScale*7,1);
if MaxContracts >= 4 Then
ExitLong("bx1",AtLimit,AvgEntryPrice+PriceScale*XX);
}
if MarketPosition == -1 Then
{
ExitShort("sx",AtLimit,EntryPrice-PriceScale*8);
if MaxContracts < 10 Then
Sell("s",AtLimit,LatestEntryPrice(0)+PriceScale*7,1);
if MaxContracts >= 4 Then
ExitShort("sx1",AtLimit,AvgEntryPrice-PriceScale*XX);
}
* 매번 도움에 감사 합니다.