Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 5061
- Rating:
- Published:
- 2018.12.18 19:11
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Investors vs Speculators displays the ratio of major players' actions (Investors) to the actions of market traders (Speculators).
It has two configurable parameters:
- Period - calculation period
- AD method - accumulation/distribution calculation method
- Classical MT - standard as in MetaTrader
- Trade Station - as in Trade Station
Calculation:
Delta = Investors - Speculators
where:
- If VOL > AVG
Speculators = PrevSpeculators
Investors = PrevInvestors + AD
- otherwise
Investors = PrevInvestors
Speculators = PrevSpeculators + AD
- If AD method = Classical MT
AD = ((Close - Low) - (High - Close)) / (High - Low) * VOL
- If AD method = Trade Station
AD = (Close - Open) / (High - Low) * VOL
AVG - SMA(VOL, Period)
VOL - tick volume
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/22594
![Constituents EA](https://c.mql5.com/i/code/expert.png)
At the specified hour, the Expert Advisor analyzes OHLC of the previous bar and sets pending orders
![InvestorsVsSpeculatorsDelta](https://c.mql5.com/i/code/indicator.png)
Investors vs Speculators Delta indicator