예스스탁
예스스탁 답변
2024-08-02 17:35:45
안녕하세요
예스스탁입니다.
input : 틱단위(10),글자크기(9);
var : pp(0),tx(0);
var : T(0),S(0),tx1(0),hh(0),ll(0);
if T <= 0 and C > H[2] and C > O Then
{
T = 1;
S = C;
HH = 0;
tx1 = Text_New(sdate,sTime,L,"▲");
Text_SetStyle(tx1,2,0);
Text_SetColor(tx1,Red);
}
else if T >= 0 and C < L[2] and C < O Then
{
T = -1;
S = C;
LL = 0;
tx1 = Text_New(sdate,sTime,H,"▼");
Text_SetStyle(tx1,2,1);
Text_SetColor(tx1,Blue);
}
Else
{
if T == 1 Then
{
if HH == 0 or (HH > 0 and H > HH) Then
HH = H;
pp = Floor((hh-s)/(PriceScale*틱단위));
if pp > pp[1] Then
{
tx = Text_New(sdate,stime,H+PriceScale*3,NumToStr(pp*틱단위,0)+"틱");
Text_SetStyle(tx,2,1);
Text_SetSize(tx,글자크기);
}
}
if T == -1 Then
{
if LL == 0 or (LL > 0 and L < LL) Then
LL = L;
pp = Floor((s-ll)/(PriceScale*틱단위));
if pp > pp[1] Then
{
tx = Text_New(sdate,stime,L-PriceScale*3,NumToStr(pp*틱단위,0)+"틱");
Text_SetStyle(tx,2,0);
Text_SetSize(tx,글자크기);
}
}
}
즐거운 하루되세요
> 만강 님이 쓴 글입니다.
> 제목 : 문의 드립니다
>
안녕하세요
다음 시스템 신호을 차트에 매수는 빨강 세모 매도는 파랑 세모로 전환해주세요
var : TL1(0),TL2(0);
if C > H[2] and C > O Then
{
Buy();
var1 = L;
}
if C < L[2] and C < O Then
{
Sell();
Var2 = H;
}
input : 틱단위(10),글자크기(9);
var : pp(0),ll(0),tx(0);
if MarketPosition == 1 Then
{
pp = Floor((highest(H,BarsSinceEntry)-EntryPrice)/(PriceScale*틱단위));
if pp > pp[1] Then
{
tx = Text_New(sdate,stime,H+PriceScale*3,NumToStr(pp*틱단위,0)+"틱");
Text_SetStyle(tx,2,1);
Text_SetSize(tx,글자크기);
}
TL_SetEnd(TL1,NextBarSdate,NextBarStime,var1);
}
if MarketPosition == -1 Then
{
pp = Floor((EntryPrice-lowest(L,BarsSinceEntry))/(PriceScale*틱단위));
if pp > pp[1] Then
{
tx = Text_New(sdate,stime,L-PriceScale*3,NumToStr(pp*틱단위,0)+"틱");
Text_SetStyle(tx,2,0);
Text_SetSize(tx,글자크기);
}
TL_SetEnd(TL2,NextBarSdate,NextBarStime,var2);
}
감사합니다