답변완료
키움지표 변환
키움보조지표 변환 부탁드립니다.
기간 : 60
A= AVG(C,기간);
B= V*C;
M= SUM(B);
K= M-Valuewhen(1,crossup(c,a) or crossdown(c,a),m(1));
if(c>=a,k,-k); // plot //
avg(if(c>=a,k,-k),기간) // plot //
고맙습니다
2020-02-10
359
글번호 135787
지표
답변완료
매수/매도 기간 변수 분리
수고하십니다.
아래 식에서
메수를 기간 10으로 두고
매도는 기간 20을 적용하게 분리하고 싶습니다.
수고하세요
*********
input : Period(10);
var : Counter(0), Lowval(0), Highval(0), DownVel(0),UpVel(0), DnAroon(0),UpAroon(0) ;
Lowval= Lowest(Low, Period+1);
Highval = Highest(High, Period+1);
For counter= 0 To Period {
If Low[counter] == Lowval Then
DownVel = counter;
If High[counter] == highval Then
UpVel = counter;
}
DnAroon = 100*(Period-DownVel)/Period;
UpAroon = 100*(Period-UpVel)/Period;
Plot1(DnAroon, "Aroon Dn");
Plot2(UpAroon, "Aroon Up");
2020-02-10
321
글번호 135767
지표
답변완료
수식부탁 드립니다
예스스탁님
하기식 수정 부탁 드립니다
================================= .
input : P1(5),P2(3),P3(3);
var : stok1(0),stod1(0);
stok1 = StochasticsK(P1,P2);
stod1 = StochasticsD(P1,P2,P3);
if MarketPosition == 0 and c>ma(c,5) then buy();
if MarketPosition == 1 then
{
if stok1 >= 50 Then
ExitLong("bx1",AtStop,highest(H,5)*0.95);
if highest(H,BarsSinceEntry) >= EntryPrice*1.05 and stok1 >= 50 Then
ExitLong("bx2",AtStop,highest(H,BarsSinceEntry)*0.95);
}
SetStopLoss(5,PercentStop);
==================================================
상기 식에서 bx1, bx2가 봉 끝나고가 아닌 조건 만족시 즉시 매도 될수 맀도록 바꿔어서
식을 주시면 감사 하겠습니다.
2020-02-10
276
글번호 135765
시스템