Download MetaTrader 5

custom indicators using previous and first indicator data

To add comments, please log in or register
lello1231
462
lello1231  

Hello,

Is there an easy way to configure custom MT5 indicators so they can be applied on top of other indicators? (same as standards MT5 indicators using apply to " previous indicator's data" or "first indicator data" )?

 Br

Elie 

Sergey Golubev
Moderator
97545
Sergey Golubev  
It is possible in some cases but I am sorry - in most of the cases - it should be programmed/coded especially for that (by coder). Because scales for some indicators are different ones (vertical scales).
Alain Verleyen
Moderator
32814
Alain Verleyen  
lello1231:

Hello,

Is there an easy way to configure custom MT5 indicators so they can be applied on top of other indicators? (same as standards MT5 indicators using apply to " previous indicator's data" or "first indicator data" )?

 Br

Elie 

See this article https://www.mql5.com/en/articles/15
Applying One Indicator to Another
Applying One Indicator to Another
  • 2010.02.08
  • MetaQuotes Software Corp.
  • www.mql5.com
When writing an indicator that uses the short form of the OnCalculate() function call, you might miss the fact that an indicator can be calculated not only by price data, but also by data of some other indicator (no matter whether it is a built-in or custom one). Do you want to improve an indicator for its correct application to the other indicator's data? In this article we'll review all the steps required for such modification.
lello1231
462
lello1231  
angevoyageur:
See this article https://www.mql5.com/en/articles/15
Thanks!
To add comments, please log in or register