I'am doing my owns indicators, for distincts reason..
The problema that I have if, the Height of the rectangle...It does not much and the Delta value..This is the code:
if (deltaItem > 0.0)
{
//Print(chartScale.GetYByValueWpf(deltaItem));
//Print(chartScale.GetValueByYWpf(chartScale.GetYByV alueWpf(deltaItem)));
LD1.X = (float)(chartControl.GetXByBarIndex(ChartBars, i)-(chartControl.BarWidth/2));
LD1.Y = LT1.Y;
SharpDX.RectangleF recF = new SharpDX.RectangleF(LD1.X, LD1.Y, (float)chartControl.BarWidth, (float)deltaItem*(-1));
RenderTarget.DrawRectangle(recF, AskBrush,1);
}
else
{
LD1.X = (float)(chartControl.GetXByBarIndex(ChartBars, i) - (chartControl.BarWidth / 2));
LD1.Y = LT1.Y;
SharpDX.RectangleF recF = new SharpDX.RectangleF(LD1.X, LD1.Y, (float)chartControl.BarWidth,(float)deltaItem*(-1));
RenderTarget.DrawRectangle(recF, BidBrush, 1);
}
How can see in the image, the height of the rectangle does not much, with the value of the delta.. or positive or negative.
I have prove other options, but it's not working fine...
PD: I upload the image, where I have draw a line, where the height of the rectagle should be got...
Thaks to everyone..
Comment