책 XXXP 수식 자료(Support and Resistance Levels)
input : toggleBreaks(true),leftBars(15),rightBars(15),volumeThresh(0);
var : SH(0),SL(0),highUsePivot(0),lowUsePivot(0),tx1(0),tx2(0),short(0),long(0),OSC(0),조건(False);
if SwingHigh(1,h,leftBars,rightBars,leftBars+rightBars+1) != -1 Then
SH = H[rightBars];
highUsePivot = SH[1];
if SwingLow(1,l,leftBars,rightBars,leftBars+rightBars+1) != -1 Then
SL = L[rightBars];
lowUsePivot = SL[1];
short = ema(volume, 5);
long = ema(volume, 10);
osc = 100 * (short - long) / long;
if OSC>0 && OSC>OSC[1] && CrossUp(C,highUsePivot) TheN
Find(1);
댓글
댓글 쓰기