price arrow codes bug

 

I can't set any of price arrow symbols (1-6) in a SetIndexArrow(0, xxx) function. Instead of a price label I get the symbol for SYMBOL_STOPSIGN!


Dear moderators, please have some technical people take a look at this issue.

Thanks in advance!

 

void SetIndexArrow( int index, int code)
Sets an arrow symbol for indicators line of the DRAW_ARROW type.
Arrow codes out of range 33 to 255 cannot be used.

 
phy:

void SetIndexArrow( int index, int code)
Sets an arrow symbol for indicators line of the DRAW_ARROW type.
Arrow codes out of range 33 to 255 cannot be used.

any code from 6 to 255 works, from 1 to 6 don't.


Thanks a lot for reply.

 
Moderators, help me please.
 
ledzep:
Moderators, help me please.

Did you read phy's answer (above)?

 
'm having the exact same problem. Somehow when setting the arrow code to 6 or 5, the price label didnt appear on the chart, but rather a x-sign appeared. Any dear how to get around this??? Thanks.
 
tchandara:
'm having the exact same problem. Somehow when setting the arrow code to 6 or 5, the price label didnt appear on the chart, but rather a x-sign appeared. Any dear how to get around this??? Thanks.


This is an of the big mysteries of the mql4.

SetIndexArrow help say "out of range 33 to 255 cannot be used."


--------------------------------------------------------------------------------------

void SetIndexArrow( int index, int code)
Sets an arrow symbol for indicators line of the DRAW_ARROW type.
Arrow codes out of range 33 to 255 cannot be used.

--------------------------------------------------------------------------------------


but help for arrow codes: https://docs.mql4.com/constants/arrows show this:


Special Arrow codes that exactly points to price and time. It can be one of the following values:

Constant Value Description
1Upwards arrow with tip rightwards ().
2Downwards arrow with tip rightwards ().
3Left pointing triangle ().
4

En Dash symbol (–).

SYMBOL_LEFTPRICE5Left sided price label.
SYMBOL_RIGHTPRICE6Right sided price label.


perhaps some day metaquotes solves the mystery.


 
Indicator Index Arrows use a different subset of arrow codes than Arrow Objects.
 

So is there a brief instruction on how to create En Dashes without creating an object?

My understanding of this discussion is that the En Dash can't be used by indicator buffers..is that right?

 
Any answers?
Reason: