View Single Post
Old 12-21-2017, 11:39 AM   #254
NinjaTrader Customer Service
NinjaTrader_ChelseaB's Avatar
Join Date: Dec 2012
Location: Denver, CO
Posts: 9,170
Thanks: 130
Thanked 2,036 times in 1,884 posts

Hello johnnymustard,

I wanted to note that if you are not able to find a community member on the forums to implement the logic you are requesting, you can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our business development follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request.

As far a creating a plot, this done with the AddPlot() method in OnStateChange when State is State.SetDefaults.

Adding a plot creates an index in the Values collection that allows you to set the value for the plot to whatever value you would like.

Below are publicly available links to the help guide.
NinjaTrader_ChelseaB is offline  
Reply With Quote