답변완료
검색식 문의 드립니다!
트레이딩뷰에서 사용되던 알파트렌드라는 지표를 검색하는 검색식인데요. 이 식은 사진처럼 파란선이 빨간선 위로 골든 나올때 검색하는 식입니다. 일단 식을 올리자면
input : coeff(1);
input : AP(14);
input : novolumedata(1);#1:true, 0:False
var : atrv(0),src(0),upt(0),downt(0),AlphaTrend(0);
var : buySignalk(False),sellSignalk(False),조건(False);
ATRv = ma(TrueRange, AP);
src = close;
upT = low - ATRv * coeff;
downT = high + ATRv * coeff;
Condition1 = False;
if novolumedata == 1 and rsi(AP) >= 50 Then
Condition1 = true;
if novolumedata == 0 and MFI(AP) >= 50 Then
Condition1 = true;
AlphaTrend = iff(Condition1 , IFf(upT < iff(isnan(AlphaTrend[1])==true,0,AlphaTrend[1]), iff(isnan(AlphaTrend[1])==true,0,AlphaTrend[1]) , upT),IFf(downT > iff(isnan(AlphaTrend[1])==true,0,AlphaTrend[1]) , iff(isnan(AlphaTrend[1])==true,0,AlphaTrend[1]) , downT));
조건=AlphaTrend>AlphaTrend[2];
IF 조건 && !조건[1] && C>AlphaTrend && RSI(AP)>50 TheN
Find(1);
여거 이구요 제가 변경하고픈 방식의 검색식은 다른 사진처럼 파란선이 계속 상승이면서 차트상 캔들이 음봉일때를 검색하고픈데 가능할까요? 바쁘신데 항상 감사합니다!
2025-05-28
264
글번호 191253
검색
답변완료
문의드립니다
안녕하세요?
현재신호가 발생하는봉보다 1봉 이전봉에 신호가 발생하게 할수있는지?궁금합니다
감사합니다
if signal_up == true Then
Buy();
{
tx = Text_New_Self(sDate[1],sTime[1],base[1],"◆");
Text_SetColor(tx,Orange);
Text_SetStyle(tx,2,2);
}
if signal_dn == true Then
Sell();
{
tx = Text_New_Self(sDate[1],sTime[1],base[1],"◆");
Text_SetColor(tx,Orange);
Text_SetStyle(tx,2,2);
}
2025-05-28
227
글번호 191248
시스템
답변완료
수식작성 부탁드립니다
아래 수식을 초 단위로 나타낼수 있도록 부탁 드립니다
(예시
nput : n(60);
var : S1(0),D1(0),sTM(0),et(0),ets(0),eTM(0);
Var : SS(0),TS(0),second(0),ii(0),cnt(0);
if Bdate != Bdate[1] Then
{
stm = TimeToMinutes(stime);
D1 = Bdate;
ii = 0;
}
if D1 > 0 then
{
ii = ii +1;
if date == D1 Then
eTM = TimeToMinutes(time)-S1;
Else
eTM = TimeToMinutes(time)+1440-S1;
ss = sTM*60;
et= eTM*60;
ets = FracPortion(time/100)*100;
TS = et+ets;
Second = TS-SS;
.
.
.
}
아래 수식 변경 부탁 드립니다.
Input : long(34),signal(9),Po(2);
var : hlc(0),hi0(0),lo0(0),Ema5(0),Ema6(0),mi0(0);
var : IMACD(0),sig(0),histo(0),IMACD색(0);
hlc = (h+l+c)/3;
hi0 = iff(IsNan(hi0[1]) == true, ma(high,long), hi0[1]*(long-1)+high)/long;
lo0 = iff(IsNan(lo0[1]) == true, ma(low,long), lo0[1]*(long-1)+low)/long;
Ema5 = ema(hlc, long);
Ema6 = ema(Ema5, long);
mi0 = Ema5+(Ema5-Ema6);
IMACD = iff((mi0>hi0), (mi0-hi0) , iff((mi0<lo0) , (mi0 - lo0) , 0));
sig = ma(IMACD, signal);
histo = IMACD-sig;
var1 = po;
Var2 = -po;
plot1(IMACD,"ImpulseMACD");
plot2(sig,"Signal");
plot3(histo,"Histo");
plot10(0,"0");
plot20(var1,"2");
plot30(Var2,"2");
2025-05-28
285
글번호 191245
지표
답변완료
수식수정
Inputs : Period(20), Sence(1.5), CC_DN(Yellow);
Vars:
VLineUp(0),
VLineDn(0),
HHighest(0),
LLowest(0),
JustChanged(FALSE),
VLine(0), DBN(0),T(0);
Array:
Highs[35](0),
Lows[35](0),
RRange[35](0),
UpWave[1](FALSE),
DnWave[1](FALSE);
If STime == 180000 Then
DBN = 0;
DBN = DBN + 1;
Var1 = Period;
Var2 = Var1 - 1;
Var3 = Var1 - 2;
Var5 = Sence;
Var6 = H-L;
JustChanged = FALSE;
if CurrentBar <= Var2 then begin
Highs[CurrentBar] = Close;
Lows[CurrentBar] = Close;
RRange[CurrentBar] = (H-L) /2;
end;
if CurrentBar == Var1 then begin
if Highs[Var2] >= Highs[Var3] then begin
UpWave[1] = TRUE;
HHighest = Highs[Var2];
VLineUp = HHighest - (Var5 * MA(Var6,Var2));
#Plot1(VLineUp,"VLineUp");
end;
if Highs[Var2] < Highs[Var3] then begin
DnWave[1] = TRUE;
LLowest = Lows[Var2];
VLineDn = LLowest + (Var5 * MA(Var6,Var2));
#Plot2(VLineDn,"VLineDn");
end;
end;
if CurrentBar > Var1 then begin
if DnWave[1] and Close > VLineDn then begin
DnWave[1] = FALSE;
UpWave[1] = TRUE;
JustChanged = TRUE;
HHighest = Close;
LLowest = 0;
end;
if UpWave[1] and Close < VLineUp and JustChanged == FALSE then begin
UpWave[1] = FALSE;
DnWave[1] = TRUE;
JustChanged = TRUE;
LLowest = Close;
HHighest = 0;
end;
if JustChanged == FALSE then begin
if Close > HHighest then
HHighest = Close;
else if Close < LLowest then
LLowest = Close;
end;
VLineUp = HHighest - (Var5 * MA(Var6,Var2));
VLineDn = LLowest + (Var5 * MA(Var6,Var2));
if UpWave[1] then
T = 1;
else if DnWave[1] then
T = -1;
end;
Input : BBP(20), MultiD(2),P(30);
var : BBmd(0),BBup(0),BBdn(0),mav(0);
BBmd = ma(C,Period);
BBup = BollBandUp(BBP,MultiD);
BBdn = BollBandDown(BBP,MultiD);
mav = ma(C,P);
if CrossDown(C,BBup) and t == -1 and c > mav Then
sell();
if crossup(C,BBdn) and t == 1 and c < mav Then
buy();
안녕하세요
수식수정부탁드려요
위식에서 신호 발생후 진입 조건을
-500틱이상 손실시 진입하는 조건으로 부탁드림니다
2025-05-28
215
글번호 191240
시스템
답변완료
수식수정
안녕하세요
아래수식에서 당일 시가선을
전일종가나 전일 정산가 기준으로
변경해 주세요
input : Period(20),dv(2);
var : BBup(0),BBmd(0),BBdn(0),T(0);
BBup = BollBandUp(Period,dv);
BBmd = ma(c,Period);
BBdn = BollBandDown(Period,dv);
if CrossUp(c,bbup) Then
T = 3;
if CrossDown(c,bbup) Then
T = -3;
if CrossUp(c,bbmd) Then
T = 2;
if CrossDown(c,bbmd) Then
T = -2;
if CrossUp(c,bbdn) Then
T = 1;
if CrossDown(c,bbdn) Then
T = -1;
if C <= DayOpen-PriceScale*100 and
T != T[1] and T == 2 and T[1] == 1 Then
Buy();
if MarketPosition == 1 and T != T[1] and T == -1 Then
ExitLong();
if C >= DayOpen+PriceScale*100 and
T != T[1] and T == 3 and T[1] == -3 Then
Sell();
if MarketPosition == 1 and CrossUp(C,bbmd) Then
ExitShort(
2025-05-28
180
글번호 191234
시스템