예스스탁
예스스탁 답변
2021-02-24 09:53:27
안녕하세요
예스스탁입니다.
시스템식에 아래 내용 추가하시면 됩니다.
var : pp(0),tx(0);
if MarketPosition == 1 Then
{
pp = (highest(H,BarsSinceEntry)-EntryPrice)/PriceScale;
if PP > 0 Then
tx = Text_New(sdate,stime,H+PriceScale*3,NumToStr(pp,0)+"틱수익");
Else
tx = Text_New(sdate,stime,H+PriceScale*3,NumToStr(pp,0)+"틱손실");
Text_SetStyle(tx,2,1);
}
if MarketPosition == -1 Then
{
pp = (EntryPrice - lowest(L,BarsSinceEntry))/PriceScale;
if PP > 0 Then
tx = Text_New(sdate,stime,L-PriceScale*3,NumToStr(pp,0)+"틱수익");
Else
tx = Text_New(sdate,stime,L-PriceScale*3,NumToStr(pp,0)+"틱손실");
Text_SetStyle(tx,2,1);
}
즐거운 하루되세요
> 장군아gogo 님이 쓴 글입니다.
> 제목 : 문의드립니다
> 시스템차트화면상 진입시부터 손익틱수를 나타낼수있는 수식부탁드립니다.