|
- Input:Length(14),Top(80),Bot(20);
- Variables:LH(0),LL(0),LHBar(0),HP(0),LP(0),LLBAR(0),RSIHL(0),KRSI(0);
- Variables:LLID(0),LHID(0);
- KRSI = RSI(Close,Length);
- if RSIHL = 1 then LH +=1 else if RSIHL = -1 then LL += 1;
- IF KRSI cross Above Top then begin
- RSIHL = 1;
- LLBar = LowestBar(Low,LL);
- LP = Low[LLBAR];
- LH = 0 ;
- end;
-
- if KRSI Cross Below Bot then begin
- RSIHL = -1;
- LHBar = HighestBar(high,LH);
- HP = High[LHBar];
- LL = 0;
- end;
- if RSIHL = -1 then
- plot1(HP,"LastHigh") else NoPlot(1);
- if RSIHL = 1 then
- Plot2(LP,"LastLow") else NoPlot(2);
-
複製代碼 |
評分
-
查看全部評分
|