답변완료
추세 3파 전환
Input : af(0.02), maxAF(0.2);
var : T(0),B(0),S(0),tx(0),txx(0),HH(0),LL(0),box(0),B1(0),S1(0),B2(0),S2(0),H1(0),L1(0),H2(0),L2(0),TL(0);
var1 = CSar(af,maxAF);
plot1(var1, "CSAR",IFF(c>var1,Red,Blue));
if CrossUp(C,var1) Then
{
T = 1;
B = var1;
B1 = B[1];
B2 = B1[1];
HH = H;
H1 = HH[1];
H2 = H1[1];
Condition1 = False;
}
if CrossDown(C,var1) Then
{
T = -1;
S = var1;
S1 = S[1];
S2 = S1[1];
LL = L;
L1 = LL[1];
L2 = L1[1];
Condition1 = False;
}
Else
{
if T == 1 Then
{
if H > HH Then
HH = H;
if B1 > 0 and B > B1 and H > H1 and B1 > B2 and H1 > H2 and Condition1 == False Then
{
Condition1 = true;
txx = Text_New(sdate,sTime,HH+0.1,"●");
Text_SetStyle(txx,2,2);
Text_SetColor(txx,Green);
Text_SetSize(txx,20);
}
}
if T == -1 Then
{
if L < LL Then
LL = L;
if S1 > 0 and S < S1 and L < L1 and S1 < S2 and L1 < L2 and Condition1 == False Then
{
Condition1 = true;
txx = Text_New(sdate,sTime,LL-0.1,"●");
Text_SetStyle(txx,2,2);
Text_SetColor(txx,Magenta);
Text_SetSize(txx,20);
}
}
}
수식 중에 동그라미 표시되는 수식이 3파입니다.
동그라미 표시 직후 양전환되거나 음전환되면 세로선. 감사합니다.
2024-12-16
568
글번호 186317
지표
답변완료
지표 질문입니다
아래 수식의 A,B 값을 표출된 선 옆에 숫자로 표시되도록 수정 부탁드립니다
감사합니다
------------------------------------------------------------------
if sTime < 093000 Then
{
input : Period(20),dv(2);
var : BBup(0),BBmd(0),BBdn(0),A(0),B(0);
BBup = BollBandUp(Period,dv);
BBmd = ma(c,Period);
BBdn = BollBandDown(Period,dv);
if Bdate != Bdate[1] Then
{
A = bbup;
B = bbdn;
}
if A > 0 and bbup > A Then
A = bbup;
if B > 0 and bbdn< B Then
B = bbdn;
Plot1(A,"H");
plot2(B,"L");
}
Else
{
NoPlot(1);
NoPlot(2);
}
2024-12-17
592
글번호 186316
지표
답변완료
진입조건
아래 코드에서 CrossUp(stod,80)조건 생겼을때 완성봉기준이 아닌 stod가 80을 터치했을때 바로 매수진입하도록 할수있는지 문의 드립니다.
input : sto1(50),sto2(30),sto3(30);
var : stod(0);
stod = stochasticsD(sto1,sto2,sto3);
if MarketPosition == 0 and CrossUp(stod,80) Then
Buy();
2024-12-16
521
글번호 186288
시스템
답변완료
문의
Inputs: ATRlen(10), Factor(3), MALong(60);
Var: ATRVal(0), Upper(0), Lower(0), Trend(0), LongMA(0);
ATRVal = ATR(ATRlen);
Upper = (H+L)/2 + Factor*ATRVal;
Lower = (H+L)/2 - Factor*ATRVal;
If C > Lower then Trend = 1;
If C < Upper then Trend = 0;
LongMA = MA(C, MALong);
If C > LongMA And Trend = 1 then
Find(1);
마지막 줄 오류 수정,보완 부탁드립니다.
2024-12-16
566
글번호 186286
종목검색