설정창에서 매매 청산-사용자가격설정에서 보면 oncloss/atmarket, atstop , atlimit 별로
"현재가""시장가"등을 지정할수 있는데요..
아래 제가 운영하는 청산 수식인데요.. 다 atstop이네요...
혹시 좋은 방법이 없을까요?? 수식에 "#" 으로 하고 싶은 청산 방법을 기재하였습니다.
if MarketPosition == 1 then
{
BuySetup = false;
if countif(CrossDown(CCIv,CCI값),BarsSinceEntry) >= 1 and
CCIv < CCI값 and C < O Then
ExitLong("매수cci청산"); # 현재가 청산 요망
if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*즉시익절1 and C < O Then
ExitLong("즉시익절1"); # 현재가 청산 요망
if highest(H,BarsSinceEntry) >= (EntryPrice+PriceScale*즉시익절1*N2) Then
ExitLong("본전청산1",AtStop,EntryPrice+PriceScale*즉시익절1*N3); # 현재가 청산 요망
Else
{
if L <= EntryPrice-PriceScale*즉시손절1 Then
ExitLong("즉시손절1",AtStop,L-PriceScale*저점손절틱수); # 시장가 청산 요망
}
if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*tr수익 Then
ExitLong("tr",AtStop, highest(H,BarsSinceEntry)-PriceScale*tr하락); # 현재가 청산 요망
}
답변 1
예스스탁
예스스탁 답변
2020-02-24 11:46:40
안녕하세요
예스스탁입니다.
문의하신 내용은 가능하지 않습니다.
청산이름별로 구분해 설정할 수 있는 방법이 없습니다.
도움을 드리지 못해 죄송합니다.
즐거운 하루되세요
> 이형지 님이 쓴 글입니다.
> 제목 : 청산 설정이 가능할까요?
> 설정창에서 매매 청산-사용자가격설정에서 보면 oncloss/atmarket, atstop , atlimit 별로
"현재가""시장가"등을 지정할수 있는데요..
아래 제가 운영하는 청산 수식인데요.. 다 atstop이네요...
혹시 좋은 방법이 없을까요?? 수식에 "#" 으로 하고 싶은 청산 방법을 기재하였습니다.
if MarketPosition == 1 then
{
BuySetup = false;
if countif(CrossDown(CCIv,CCI값),BarsSinceEntry) >= 1 and
CCIv < CCI값 and C < O Then
ExitLong("매수cci청산"); # 현재가 청산 요망
if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*즉시익절1 and C < O Then
ExitLong("즉시익절1"); # 현재가 청산 요망
if highest(H,BarsSinceEntry) >= (EntryPrice+PriceScale*즉시익절1*N2) Then
ExitLong("본전청산1",AtStop,EntryPrice+PriceScale*즉시익절1*N3); # 현재가 청산 요망
Else
{
if L <= EntryPrice-PriceScale*즉시손절1 Then
ExitLong("즉시손절1",AtStop,L-PriceScale*저점손절틱수); # 시장가 청산 요망
}
if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*tr수익 Then
ExitLong("tr",AtStop, highest(H,BarsSinceEntry)-PriceScale*tr하락); # 현재가 청산 요망
}