TradingView
Tr0sT
Mar 21, 2018 3:35 PM

SAR formula 

Bitcoin / US Dollar Perpetual Inverse Swap ContractBitMEX

Description

This is how built-in S.A.R. indicator calculates S.A.R...
Comments
CodyMaki
whats the difference thank you
BongTheLop
Thank you, excellent!
STLF
Man! You're MAGIC MAN! THNAK YOU VERY MUCH!
Does it exist in public indicators?
Tr0sT
@STLF, yes, it's a public indicator. I think you can find it with name "CalcSARwithoutSAR"
menialmoose
Thanks :)
danarm
Thanks! I highly apprecitate the code.
wiastudio
Thank you very much!!!
rimko
Thank you so much !!!
tahukentucky
any idea how to inject moving average into this sar formula, have no clue to do that :/
and make it MTF
Tr0sT
@tahukentucky, how exactly do you want to inject moving average? you can plot(sma(close, 18))... To make it MTF just don't use high, close, open and low. Instead use security(low, TimeFrame)... I don't remember correct syntax, but you can find it in pine script reference
More