Skip to content

Implementing strategy based on arrow-type indicator code and integrate with Multi strategy #389

Answered by kenorb
mavidelisi asked this question in Q&A
Discussion options

You must be logged in to vote
  1. If you'd like to read value from dblTma, its value needs to be exposed through the external buffer. Same way what you've for Slope[], Long[], Short[] and Flat[]. These array variables are set as buffer via SetIndexBuffer() so they can be accessible from EA for the given index mode.
  2. It's the same here. The existing ATR strategy it's using a wrapper class Indi_ATR to communicate with platform builtin ATR indicator (::iATR) to read its buffers. In MT5 platform you can find the source code of ATR in Indicators/Examples directory, where you will find the values are assigned to array variables and using SetIndexBuffer() you're informing platform that this value can be read externally (e.g. in …

Replies: 4 comments 11 replies

Comment options

You must be logged in to vote
2 replies
@mavidelisi
Comment options

@kenorb
Comment options

Answer selected by mavidelisi
Comment options

You must be logged in to vote
1 reply
@kenorb
Comment options

Comment options

You must be logged in to vote
1 reply
@mavidelisi
Comment options

Comment options

You must be logged in to vote
7 replies
@mavidelisi
Comment options

@kenorb
Comment options

@mavidelisi
Comment options

@kenorb
Comment options

@mavidelisi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants