View Full Version : Plotting issue
SystemTrading
12-22-2008, 07:39 AM
I've written an indicator that was at least somewhat plotting last night. Now all of a sudden I get no plots. The funny thing is the chart says the plots are there, but I don't see them. See the attachment.
NinjaTrader_Ben
12-22-2008, 07:49 AM
Hello,
Nothing was attached, sorry.
If you attach the indicator I will test it on my PC.
SystemTrading
12-22-2008, 10:34 AM
I've added the attachment.
NinjaTrader_Josh
12-22-2008, 11:22 AM
SystemTrading,
You will want to debug. Try adding SMA, if SMA works fine then it is likely something going awry in your custom indicator. I would not know how to advise you except to break it down slowly into chunks of code that are known to work and slowly add layers of complexity till you find what doesn't. Good luck.
mrlogik
12-22-2008, 01:33 PM
Do you have the color of the plot or something as an input or a statically defined?
I find that if you don't properly use an input color (serialize it), it goes transparent by itself. I recommend you have everything static to start, then after you know it works you can play with inputs (if that's the problem).
good luck
SystemTrading
12-22-2008, 01:40 PM
SMA did not work and statick colors did not work. When I go through Visual Studio debugger, I see it hit the .Set statements MANY times, each with what seem to be correct values. They are just not plotting for some reason. If I plot ATR on the same chart, it works fine.
NinjaTrader_Josh
12-22-2008, 01:58 PM
If throwing the standard SMA indicator with nothing else does not work then something has gone awry in your NinjaTrader install. I suggest you get a clean reinstall.
SystemTrading
12-23-2008, 05:57 AM
I bought the computer 5 days ago because it was suggested to do a clean install of Ninja.
SystemTrading
12-23-2008, 06:52 AM
I think I may have misunderstood your previous question. When I insert the SMA indicator it plots fine. However, when I plot the SMA from my indicator it does not. It shows a value in the data window, however it does not show a plot.
mrlogik
12-23-2008, 06:54 AM
Is it possible to post any of the code, or maybe a simplified version of the code.
Are you sure you have the color set correctly, or the plot associated with the Get / Set Vaues[x] array properly?