You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Okay. Please how do I access the arrow objects in an EA?
Use CopyBuffer - just indicate the indicator buffer number (the indication of buffers starts from '0').
Use CopyBuffer - just indicate the indicator buffer number (the indication of buffers starts from '0').
I did that, please see code below. But that gives me MA values. How will I use the CopyBuffer for objects?
I did that, please see code below. But that gives me MA values. How will I use the CopyBuffer for objects?
There are no objects when using the 'DRAW_ARROW' style. There is only an indicator buffer.
Work with the indicator buffer - using 'CopyBuffer' receive data from the indicator buffer and check the received value.
Also I recommend: first write a simple indicator based on the 'DRAW_ARROW' style. Then the advisor.
There are no objects when using the 'DRAW_ARROW' style. There is only an indicator buffer.
Work with the indicator buffer - using 'CopyBuffer' receive data from the indicator buffer and check the received value.
Also I recommend: first write a simple indicator based on the 'DRAW_ARROW' style. Then the advisor.
I updated my code to check the CopyBuffer() value, but the value always equal to the CopyBuffer() count parameter. For example in the updated code below, the count is 123 and the CopyBuffer() value is also 123 regardless of the timeframe.
I updated my code to check the CopyBuffer() value, but the value always equal to the CopyBuffer() count parameter. For example in the updated code below, the count is 123 and the CopyBuffer() value is also 123 regardless of the timeframe.
Please read the help carefully: CopyBuffer
Return Value
Returns the copied data count or -1 in case of an error.
CopyBuffer copies data INTO ARRAY. Now you need to print any value from the array (for example, the value MA [0])