Assign custom indicator final value

 

Hello

How can I assign custom indicator's final value to a variable and use it in my EA.

e.g. I want to get an ATR value and assign it to my stoploss variable?

How can I assign???

 
Modify the order to the desired value.
 
Marco vd Heijden:
Modify the order to the desired value.

I know that but I don't know what's the final value of ATR and how to include properly

 
elvis_clarkson:

I know that but I don't know what's the final value of ATR and how to include properly

I have issues too predicting what the final value will be. You'll have to talk to Dr Emmet Brown about that one.

Kidding aside, look at the documentation on iCustom(). The info you need is there.
 
elvis_clarkson:

I know that but I don't know what's the final value of ATR and how to include properly

You can search code base.

No need to reinvent the wheel.

https://www.mql5.com/en/search#!keyword=atr%20stoploss&module=mql5_module_codebase

Search - MQL5.community
Search - MQL5.community
  • www.mql5.com
Searching is based on morphology and is insensitive to case. All letters, no matter of their case, will be processed as lowercase. By default, our search engine shows pages, that...
Reason: