Am trying to print up and down arrows on a chart with an efs. I have several efs, either written or adapted by me, where I am doing this quite successfully.
This time, if I use the statement as I have always used:
drawTextRelative(0,low(0),"é",Color.yellow,null,Te xt.BOTTOM|Text.CENTER|Text.BOLD,"Wingdings",11,"Up "+BarCount)
the arrow appears on the bar it is supposed to while the bar is printing but disappears when the chart finishes the bar and moves on to the next bar. No previous arrows are displayed on the chart as they should be.
If I change the statement to read:
drawShapeRelative(0,low(0),Shape.UPARROW,null,Colo r.yellow,Shape.BOTTOM,"Up"+BarCount)
the arrows print correctly on previous bars and do not disappear on the current bar when it completes.
This is the only change I make and if I alternate between the two statements the arrows disappear and appear with them respectively!
The full efs is too long to print here but can anybody suggest why the arrows may be disappearing with the original statement above that I have always used successfully before and have several efs' with them currently displaying the arrows successfully? I want to use the drawTextRelative statement since it gives me control over the size of the arrow whereas the drawShapeRelative statement does not appear to give me this size control.
I have reviewed Alexis' various arrow efs' with the drawTextRelative statement and can find nothing different to mine.
Rob
This time, if I use the statement as I have always used:
drawTextRelative(0,low(0),"é",Color.yellow,null,Te xt.BOTTOM|Text.CENTER|Text.BOLD,"Wingdings",11,"Up "+BarCount)
the arrow appears on the bar it is supposed to while the bar is printing but disappears when the chart finishes the bar and moves on to the next bar. No previous arrows are displayed on the chart as they should be.
If I change the statement to read:
drawShapeRelative(0,low(0),Shape.UPARROW,null,Colo r.yellow,Shape.BOTTOM,"Up"+BarCount)
the arrows print correctly on previous bars and do not disappear on the current bar when it completes.
This is the only change I make and if I alternate between the two statements the arrows disappear and appear with them respectively!
The full efs is too long to print here but can anybody suggest why the arrows may be disappearing with the original statement above that I have always used successfully before and have several efs' with them currently displaying the arrows successfully? I want to use the drawTextRelative statement since it gives me control over the size of the arrow whereas the drawShapeRelative statement does not appear to give me this size control.
I have reviewed Alexis' various arrow efs' with the drawTextRelative statement and can find nothing different to mine.
Rob
Comment