if SuperTrend > SuperTrend[1] then
T = 1;
if SuperTrend < SuperTrend[1] Then
T = -1;
if MarketPosition <= 0 and T == 1 and T != T[1] Then
{
buy("b");
var1 = L;
}
if MarketPosition >= 0 and T == -1 and T != T[1] Then
{
sell("s");
var2 = H;
}
위의 수식에 수치가 나오게 부탁드립니다
매수신호 발생시 - 직전신호 고점값(빨강)
매도신호 발생시 - 직전신호 저점값 (파랑)
답변 1
예스스탁
예스스탁 답변
2020-03-13 15:16:26
안녕하세요
예스스탁입니다.
input : 소숫점자릿수(2);
var : tx(0);
if SuperTrend > SuperTrend[1] then
T = 1;
if SuperTrend < SuperTrend[1] Then
T = -1;
if MarketPosition <= 0 and T == 1 and T != T[1] Then
{
buy("b");
var1 = L;
tx = Text_New(sdate,stime,H+PriceScale*2,NumToStr(var2,소숫점자릿수));
Text_SetColor(tx,RED);
}
if MarketPosition >= 0 and T == -1 and T != T[1] Then
{
sell("s");
var2 = H;
tx = Text_New(sdate,stime,L-PriceScale*2,NumToStr(var2,소숫점자릿수));
Text_SetColor(tx,blue);
}
즐거운 하루되세요
> 더월 님이 쓴 글입니다.
> 제목 : 부탁좀 드리겠습니다.
> if SuperTrend > SuperTrend[1] then
T = 1;
if SuperTrend < SuperTrend[1] Then
T = -1;
if MarketPosition <= 0 and T == 1 and T != T[1] Then
{
buy("b");
var1 = L;
}
if MarketPosition >= 0 and T == -1 and T != T[1] Then
{
sell("s");
var2 = H;
}
위의 수식에 수치가 나오게 부탁드립니다
매수신호 발생시 - 직전신호 고점값(빨강)
매도신호 발생시 - 직전신호 저점값 (파랑)