- Katılım
- 23 Eki 2020
- Mesajlar
- 1,826
The ATR and many other indicators are explained at this site. http://www.equis.com/free/taaz/avertrurang.html If you are using Metastock the following formula is for an ATR exit. The defaults are high - 3*ATR but you can change these values to suit. | |||||
| |||||
ATR Exit 1 dataarray:=Input("Data array. Enter a number 1=o, 2=h, 3=l, 4=c",1,4,2); value2:=If(dataarray=1,O,If(dataarray=2,H,If(dataarray=3,L,If(dataarray=4,C,C)))); multiplier:= Input("Enter ATR multiplier ",1,10,3); atrperiods:= Input("Enter ATR periods",1,39,5); HHV(value2 - multiplier*ATR(atrperiods),10) ATR Exit 2
Numatr:=Input("Multiples of ATR",1,5,2); Periods:=Input("Periods for ATR",3,21,8); Lookback:=Input("lookback periods",3,55,8); SL:=C-Numatr*ATR(periods); If(SL<HHV(SL,lookback),PREV,SL)
|