Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

ATR - indicator for MetaTrader 5

Views:
18198
Rating:
(27)
Published:
2019.05.01 11:12
ATR.mq5 (6.57 KB) view
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

This one is for the "purists"

The way how the code example provided with metatrader 5 calculates ATR (Average True Range) is, for the sake of speed of execution, using the approximation of what should be a simple moving average (SMA) of TR (True Range). While it produces results very, very similar to simple moving averages, it is still not it. This version is doing that (calculating without an approximation) and it is doing it without slowing down either - the speed of execution will be the same for any period calculated. And it does not require any additional buffer allocation



BB stops 2 - MACD BB stops 2 - MACD

BB stops of MACD with multiple stops

XO XO

XO

Sell Relative Strengt Index Sell Relative Strengt Index

Sell Relative Strengt Index (SRSI)

Change SL/TP on chart drop off Change SL/TP on chart drop off

This script will change the SL and TP of all open trades of the symbol to the price where the script is dropped off.