Managing text + getting Cumulative Delta value
Posted: Sep 11 2018
Hi all,
I'm slowly learning to write some code.
I have 2 problems
1.
I'm having some issues with text on subchart. I want to show a legend in fixed position so I wrote this piece of code in StartCalc()
but when a new bar is produced my text is been overwritten so I have to specify text's position indipendently from last bar on screen.
How could I solve it?
2.
I can't find the way to get Cumulative Delta value and I don't want (if possible) use 2nd data series only for this purpouse. I would like to fill the first row of the indicator shown above.
For other values I'm using this code, accordingly with TradingCode.net samples (thank you guys for sharing)
I'm slowly learning to write some code.
I have 2 problems
1.
I'm having some issues with text on subchart. I want to show a legend in fixed position so I wrote this piece of code in StartCalc()
Code: Select all
ITextObject textVolLeg = DrwText.Create(new ChartPoint(Bars.LastBarTime, 0), "Volume", true);
How could I solve it?
2.
I can't find the way to get Cumulative Delta value and I don't want (if possible) use 2nd data series only for this purpouse. I would like to fill the first row of the indicator shown above.
For other values I'm using this code, accordingly with TradingCode.net samples (thank you guys for sharing)
Code: Select all
ITextObject textVolume = DrwText.Create(new ChartPoint(Bars.Time[0], 0),"",true);
textVolume.Text = textVolume.Text + Bars.TrueVolume().Value;