커뮤니티
청산 확인요청
2019-02-14 01:09:46
150
글번호 126156
* 추운 날씨에 고맙 습니다.
* 아래 명칭으로 청산하면 20딕에서 청산이 안되는데 한수 지도 요청 드립니다.
if MarketPosition == 1 and CrossDown(C, Lowest(L,Period20)[1]) Then sell("도도");
if MarketPosition == -1 and CrossUp(C,Highest(H,Period20)[1]) Then Buy("수수");
if MarketPosition == -1 and IsEntryName("도도") == true then {ExitShort("bx",AtStop,EntryPrice-PriceScale*20); }
if MarketPosition == 1 and IsEntryName("수수") == true then {ExitLong("sx",AtStop,EntryPrice+PriceScale*20);}
답변 1
예스스탁 예스스탁 답변
2019-02-14 09:29:16
안녕하세요
예스스탁입니다.
타입이 Atstop이면 손절인데 가격이 잘못지정되어 있습니다.
매도청산이 진입가-20틱 이상의 시세발생시, 매수청산이 진입가+20 이하의 가격발생시 되어 있습니다.
가격을 바꾸셔야 합니다.
if MarketPosition == 1 and CrossDown(C, Lowest(L,Period20)[1]) Then sell("도도");
if MarketPosition == -1 and CrossUp(C,Highest(H,Period20)[1]) Then Buy("수수");
if MarketPosition == -1 and IsEntryName("도도") == true then
{ ExitShort("sx",AtStop,EntryPrice+PriceScale*20); }
if MarketPosition == 1 and IsEntryName("수수") == true then
{ ExitLong("bx",AtStop,EntryPrice-PriceScale*20);}
즐거운 하루되세요
> 요타 님이 쓴 글입니다.
> 제목 : 청산 확인요청
> * 추운 날씨에 고맙 습니다.
* 아래 명칭으로 청산하면 20딕에서 청산이 안되는데 한수 지도 요청 드립니다.
if MarketPosition == 1 and CrossDown(C, Lowest(L,Period20)[1]) Then sell("도도");
if MarketPosition == -1 and CrossUp(C,Highest(H,Period20)[1]) Then Buy("수수");
if MarketPosition == -1 and IsEntryName("도도") == true then {ExitShort("bx",AtStop,EntryPrice-PriceScale*20); }
if MarketPosition == 1 and IsEntryName("수수") == true then {ExitLong("sx",AtStop,EntryPrice+PriceScale*20);}