예스스탁
예스스탁 답변
2016-04-15 09:37:02
안녕하세요
예스스탁입니다.
지표식에서는 표현이 불가능합니다.
방법이라면 시스템식에
추세선으로 텍스트로 선과 텍스트를 출력하는 방법뿐이 없습니다.
시스템식 하단에 추가하시면 됩니다.
마지막 매수진입과 매도진입만 표시됩니다.
var : TL1(0),TL2(0),TL3(0),TL4(0);
var : Tx1(0),Tx2(0),Tx3(0),Tx4(0);
#매도진입후 매도봉고가+20틱 손절, 매도봉 저가-10틱 익절 신호및 선
if MarketPosition == -1 Then{
TL_Delete(TL3);
TL_Delete(TL4);
TL3 = TL_New(EntryDate,EntryTime,L[BarsSinceEntry]-PriceScale*10,date,stime,L[BarsSinceEntry]-PriceScale*10);
TL4 = TL_New(EntryDate,EntryTime,H[BarsSinceEntry]+PriceScale*20,date,stime,H[BarsSinceEntry]*PriceScale*20);
Text_Delete(Tx3);
Text_Delete(Tx4);
tx3 = Text_New(sdate,stime,L[BarsSinceEntry]-PriceScale*10,NumToStr(L[BarsSinceEntry]-PriceScale*10,2));
tx4 = Text_New(sdate,stime,H[BarsSinceEntry]+PriceScale*20,NumToStr(H[BarsSinceEntry]+PriceScale*20,2));
ExitShort("sx1",AtLimit,L[BarsSinceEntry]-PriceScale*10);
ExitShort("sx2",AtStop,H[BarsSinceEntry]+PriceScale*20);
}
#매수진입후 매수봉 저가-20틱 손절, 매도봉 고가+10틱 익절 신호및 선
if MarketPosition == 1 Then{
TL_Delete(TL1);
TL_Delete(TL2);
TL1 = TL_New(EntryDate,EntryTime,H[BarsSinceEntry]+PriceScale*10,date,stime,H[BarsSinceEntry]*PriceScale*10);
TL2 = TL_New(EntryDate,EntryTime,L[BarsSinceEntry]-PriceScale*20,date,stime,L[BarsSinceEntry]-PriceScale*20);
Text_Delete(Tx1);
Text_Delete(Tx2);
tx1 = Text_New(sdate,stime,H[BarsSinceEntry]+PriceScale*10,NumToStr(H[BarsSinceEntry]+PriceScale*10,2));
tx2 = Text_New(sdate,stime,L[BarsSinceEntry]-PriceScale*20,NumToStr(L[BarsSinceEntry]-PriceScale*20,2));
ExitLong("bx1",AtLimit,H[BarsSinceEntry]+PriceScale*10);
ExitLong("bx2",AtStop,L[BarsSinceEntry]-PriceScale*20);
}
즐거운 하루되세요
> 인참을인 님이 쓴 글입니다.
> 제목 : 지표 질문 있어여...
> 신호가 나온 캔들에서 매도 신호 발생후 고자 20틱 손절 저가 10틱 손절을 각기 20틱과 10틱에 글자와 삼각형의 도형으로 표현이 가능한가요...
부탁 드리겠습니다..