- Katılım
- 23 Eki 2020
- Mesajlar
- 1,826
Mark Brown Band 2 Study |
|
%Bands v.2 Pds:= Input("EMA Periods?",1,1000,21); Pct:= Input("Percentage Bands?",0.1,10,5); MA:= Mov(C,Pds,E); TBnd:= MA*(1+Pct/100); LBnd:= MA*(1-Pct/100); MA;TBnd;LBnd; |
|
%BandsCount v.2 Pds:= Input("EMA Periods?",1,1000,21); Pct:= Input("Percentage Bands?",0.1,10,5); MA:= Mov(C,Pds,E); TBnd:= MA*(1+Pct/100); LBnd:= MA*(1-Pct/100); IUp:= (H > TBnd) * Ref((H <= TBnd),-1); CntUp:= IUp + BarsSince(IUp=1) * (H > TBnd); IDn:= (L < LBnd) * Ref((L >= LBnd),-1); CntDn:= IDn + BarsSince(IDn=1) * (L < LBnd); CntUp; -CntDn; |
EXPERT %Bands v.2 Symbols tab. {Name: %BandUp} FmlVar("% BandsCount","CNTUP") >= 1 {Graphic: Dot, Small, Green, Above price plot} Symbols tab. {Name: %BandDn} FmlVar("% BandsCount","CNTDN") >= 1 {Graphic: Dot, Small, Magenta, Below price plot} created by HHP from a Mark Brown system | |
| |
Source / From: |