PDA

View Full Version : DrawArrowUp/Down


rcsingleton
04-23-2008, 03:02 PM
I'm using DrawArrowDown and DrawArrowUp to paint arrows on an indicator.

I'm using DrawArrowDown("tagName",1,ff1,Color.Red);

Question. Since the value for "tagName" is a string value, is there an elegant way to change the "tagName" for each new bar ?

The way its coded now, every time a new Arrow is drawn, the code erases the arrow before it, because the tag name is the same. I want all the arrows drawn to remain on the indicator.

If tag was an 'int' not a 'string', I could just increment the value each time. But is there a way to do that with a string value, so each tag will be a different string ?

Regards,
R. C.

NinjaTrader_Ray
04-23-2008, 03:36 PM
DrawArrowDown("tagName" + CurrentBar,1,ff1,Color.Red);

rcsingleton
04-23-2008, 03:49 PM
Thanks ! :)

rcsingleton
10-15-2008, 12:10 AM
Is there any way to place text under an arrow?

If I use DrawArrowUp(...) to draw an arrow, how would I place the letters, 'SL', underneath the arrow?

Regards,
R. C. Singleton

NinjaTrader_Josh
10-15-2008, 08:12 AM
You will need to use DrawText() and place it at a y-value that is below your arrow.