TradingView
Daveatt
29 de Jun de 2019 08:09

MA pullback 

Bitcoin / USTBitfinex

Descrição

Hello traders

This is a script to detect a pullback on a all standard types of moving averages
You'll have the option to define two parameters a bit specific :

  • Pullback percentage : if you want the pullback to be defined in percentage. Example: I want to capture pullbacks 3% away from my EMA 20
  • Buffer : Secruty margin for the pullback. You might not want an exact physical touch on the pullback but to let for instance a few pips/USD margin between the price and moving average


If you'd like the pullback to be "price has to touch the moving average", please set the buffer parameter to 0

Enjoy
Dave
Comentários
FXTHEORY
hi there, i try to add this to forex chart, but it doesnt seem to work.

It only works on stocks for me. Is there a reason why?
Daveatt
@yiunamlb, probably because the code misses a logic to handle pips and so far only handle USD/fiat values, that's why it might not work with forex pairs indeed
The code will need to be updated
FXTHEORY
@Daveatt, i see, thanks for the explanation!

Would you be able to kindly update the script to handle pips?
Mais