답변완료
시스템식 1개 부탁드려요
adx 지표 값과
엘리게이터라는 지표값을 참고해서하는 매매입니다
엘리게이터 지표값음 아래 트레이딩뷰에서 수식을 가지고왔습니다
------------------------------------
//@version=5
indicator(title="Williams Alligator", shorttitle="Alligator", overlay=true, timeframe="", timeframe_gaps=true)
smma(src, length) =>
smma = 0.0
smma := na(smma[1]) ? ta.sma(src, length) : (smma[1] * (length - 1) + src) / length
smma
jawLength = input.int(13, minval=1, title="Jaw Length")
teethLength = input.int(8, minval=1, title="Teeth Length")
lipsLength = input.int(5, minval=1, title="Lips Length")
jawOffset = input(8, title="Jaw Offset")
teethOffset = input(5, title="Teeth Offset")
lipsOffset = input(3, title="Lips Offset")
jaw = smma(hl2, jawLength)
teeth = smma(hl2, teethLength)
lips = smma(hl2, lipsLength)
plot(jaw, "Jaw", offset = jawOffset, color=#2962FF)
plot(teeth, "Teeth", offset = teethOffset, color=#E91E63)
plot(lips, "Lips", offset = lipsOffset, color=#66BB6A)
-----------------------------------
매수는
adx수치가 25이상일때 엘리게이터선이 정배열이루어지면매수 진입(1번그림참고)
매도는
adx수치가 25이상일때 엘리게이터선이 역배열이루어지면매수 진입(2번그림참고)
2024-02-06
826
글번호 176433
시스템
답변완료
문의드립니다.
input: 막대굵기1(2), 막대굵기2(1);
var : sumPL(0);
if bDate != bDate[1] Then
{
sumPL = 0;
}
Else
{
sumPL = (sumPL + (Upvol-DownVol)+ticks)/2*1.00;
if sumPL > 0 Then
Plot1(sumPL, "순매수체결량",RGb(255, 0, 0),def,막대굵기1); // 진적
Else
Plot1(sumPL, "순매수체결량",RGb(255, 255, 255),def,막대굵기2); // 진청
}
PlotBaseLine1(0, "기준선0");
지표수식인데 종목검색부탁드립니다
2024-02-05
605
글번호 176428
종목검색
답변완료
문의 드립니다.
아래 식에서 5 20 정배열일 때 주가가 20일 아래 있을 때도 신호가 발생하고 있습니다.
매수 경우 정배열이지만 20 이평 아래에 주가가 있을 때 신호가 발생하지 않도록 하고
매도 경우 역배열이지만 20 이평 위에 주가가 있을 때 신호가 발생하지 않도록 하고자 합니다.
확실하게 정배열 상황이고 20이평 위에 주가가 있을 때 발생하는 신호만 적용하고자 합니다. 매도 역시 그렇합니다.
부탁드립니다. 감사합니다^.^
input : P1(5),P2(20),sto1(10),sto2(5),sto3(5);
var : mav1(0),mav2(0);
var : stok(0),stod(0);
mav1 = ma(c,P1);
mav2 = ma(c,P2);
stok = StochasticsK(sto1,sto2);
stod = StochasticsD(sto1,sto2,sto3);
if MarketPosition <= 0 and mav1 > mav2 and stok < 50 and CrossUp(stok,stod) Then
Buy();
if MarketPosition == 1 Then
{
if CrossDown(stok,stod) Then
ExitLong();
}
if MarketPosition >= 0 and mav1 < mav2 and stok > 50 and CrossDown(stok,stod) Then
Sell();
if MarketPosition == -1 Then
{
if CrossUp(stok,stod) Then
ExitShort();
}
2024-02-05
777
글번호 176426
시스템