답변완료
변경좀 부탁합니다
안녕하세요
시스템에 적용하고 있습니다
아래식을 틱수를 외부 변수에서 변경가능하겠금 부탁합니다
var : T1(0),T2(0),T3(0),T4(0),T5(0),T6(0),T7(0),T8(0);
var : T11(0),T22(0),T33(0),T44(0),T55(0),T66(0),T77(0),T88(0);
if MarketPosition == 1 Then{
if Condition11 == false and H >= EntryPrice+PriceScale*30 Then{
Condition11 = true;
T1 = Text_New(sdate,stime,H," ♥");
Text_SetColor(T1, 255);
Text_SetStyle(T1,2,1);
}
if Condition12 == false and H >= EntryPrice+PriceScale*60 Then{
Condition12 = true;
T2 = Text_New(sdate,stime,H," ♥");
Text_SetColor(T2, 14483711);
Text_SetStyle(T2,2,1);
}
if Condition13 == false and H >= EntryPrice+PriceScale*90 Then{
Condition13 = true;
T3 = Text_New(sdate,stime,H," ♥");
Text_SetColor(T3, 58623);
Text_SetStyle(T3,2,1);
}
if Condition14 == false and H >= EntryPrice+PriceScale*120 Then{
Condition14 = true;
T4 = Text_New(sdate,stime,H," ♥");
Text_SetColor(T4, 4114503);
Text_SetStyle(T4,2,1);
}
if Condition15 == false and H >= EntryPrice+PriceScale*150 Then{
Condition15 = true;
T5 = Text_New(sdate,stime,H," ♥");
Text_SetColor(T5, 16711681);
Text_SetStyle(T5,2,1);
}
}
Else
{
Condition11 = false;
Condition12 = false;
Condition13 = false;
Condition14 = false;
Condition15 = false;
Condition16 = false;
Condition17 = false;
Condition18 = false;
}
if MarketPosition == -1 Then{
if Condition21 == false and L <= EntryPrice-PriceScale*30 Then{
Condition21 = true;
T11 = Text_New(sdate,stime,L," ♥");
Text_SetColor(T11, 255);
Text_SetStyle(T11,2,3);
}
if Condition22 == false and L <= EntryPrice-PriceScale*60 Then{
Condition22 = true;
T22 = Text_New(sdate,stime,L," ♥");
Text_SetColor(T22, 14483711);
Text_SetStyle(T22,2,3);
}
if Condition23 == false and L <= EntryPrice-PriceScale*90 Then{
Condition23 = true;
T33 = Text_New(sdate,stime,L," ♥");
Text_SetColor(T33, 58623);
Text_SetStyle(T33,2,3);
}
if Condition24 == false and L <= EntryPrice-PriceScale*120 Then{
Condition24 = true;
T44 = Text_New(sdate,stime,L," ♥");
Text_SetColor(T44, 4114503);
Text_SetStyle(T44,2,3);
}
if Condition25 == false and L <= EntryPrice-PriceScale*150 Then{
Condition25 = true;
T55 = Text_New(sdate,stime,L," ♥");
Text_SetColor(T55, 16711681);
Text_SetStyle(T55,2,3);
}
}
Else
{
Condition21 = false;
Condition22 = false;
Condition23 = false;
Condition24 = false;
Condition25 = false;
Condition26 = false;
Condition27 = false;
Condition28 = false;
}
2021-02-10
738
글번호 146244
시스템
답변완료
차트에 선 긋기
안녕하세요.
차트에서 특정한 일자에 발생한 고가를 각각에 대해서
그 발생한 일자로 부터 180일간 동안 직선 가격선을 긋고 싶은데 어떻게 하면 될까요?
var : cond1(False), num1(0);
Array : hlines[10](0), dates[10](0);
cond1 =
(H - MAX(C,O)) / (MAX(C,O) - L) > 1.5 && H / C[1] > 1.1 &&
v > ma(v[1], 5) * 3;
if cond1 == true Then {
for num1 = 9 to 1 {
hlines[num1] = hlines[num1-1];
dates[num1] = dates[num1-1];
}
hlines[0] = H;
dates[0] = sdate;
}
if dates[0]+180 < sdate then plot1(hlines[0],"1");
if dates[1]+180 < sdate then plot2(hlines[1],"2");
if dates[2]+180 < sdate then plot3(hlines[2],"3");
if dates[3]+180 < sdate then plot4(hlines[3],"4");
if dates[4]+180 < sdate then plot5(hlines[4],"5");
if dates[5]+180 < sdate then plot6(hlines[5],"6");
if dates[6]+180 < sdate then plot7(hlines[6],"7");
if dates[7]+180 < sdate then plot8(hlines[7],"8");
if dates[8]+180 < sdate then plot9(hlines[8],"9");
if dates[9]+180 < sdate then plot10(hlines[9],"10");
바쁘실텐데, 감사합니다.
2021-02-10
915
글번호 146242
지표