Login Page - Create Account

Support Board


Date/Time: Sat, 28 Dec 2024 23:54:19 +0000



Post From: ACSIL Drawing Question

[2016-02-13 11:31:52]
User55519 - Posts: 37
Hello,

I am searching everywhere but cannot find an answer to this. I have a study that does some math, and ends up with a number between -100 and 100, once per bar. I want to plot a line in region 2 or something that will be continuous, like a moving average or RSI/MACD, etc. I have everything figured out and have tested in debugging, but I do not know how to make a continuous line with no breaks.

Right now I'm using orange diamond drawing style with this code:
sc.Subgraph[0].DataColor[sc.Index] = sc.Subgraph[1].PrimaryColor;
sc.Subgraph[0][sc.Index] = myNumberHere;

It's working but looks terrible. I really need a line. Anyone have some sample code or something that can show me the error of my ways?

I actually need to draw 3 separate lines. Not sure if that changes anything about the above.

Thanks to anyone who can save me here!
Date Time Of Last Edit: 2016-02-13 11:36:49