Indicators: Fair Value Gap (FVG) Indicator - page 2

 
Very good code, but I have a suggestion for those who want to put it in an EA calling the levels through buffers that don't exist, can you update it by putting the last range of Bull and Bear respectively?
 
Alberto Da Silva Lira #:
Very good code, but I have a suggestion for those who want to put it in an EA calling the levels through buffers that don't exist, can you update it by putting the last range of Bull and Bear respectively?

If you don't want to rewrite the indicator with all of the code that goes with buffers, consider using GlobalVariables:

Global Variables of the Terminal - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5

They go quite easily with Objects.

Specifically, see GlobalVariableSet() and GlobalVariableGet() therein.
Documentation on MQL5: Global Variables of the Terminal
Documentation on MQL5: Global Variables of the Terminal
  • www.mql5.com
There is a group set of functions for working with global variables. Global variables of the client terminal should not be mixed up with variables...
 
I just came back to tell you that you are thounthend of starts and not only 5 start