Chuck
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Question On Paint Bar Indicator
Collapse
X
-
Question On Paint Bar Indicator
Hello. I have put together a paint bar strategy which paints the price bars one of four colors depending on whether the MACD is above/below zero and whether the price bar closes in the upper/lower half of it's range. I did this using the strategy wizard. I now want to convert that into an indicator so I can free up chart trader, which I prefer to the dom. I have very limited programming experience. Is there an easy way to convert this "strategy" into an indicator? If not, can you point me to some tutorials that can help me get this accomplished? I am a big fan of paint bar studies but I don't want to continue to shell out $150 to a developer every time I have an idea. Thanks for your consideration.
ChuckTags: None
-
Hi Chuck,
It should generally work the same, as long as there are no order methods. You will want to copy and paste the custom code from your strategy into an indicator.
Look at the following regions / methods and place the custom items in the same place in the indicator.
Variables
Initialize
OnBarUpdate
Properties
If the indicator references prior bar value, then you'll need to be sure to look into this is a potential issue you might see in an indicator but not a strategy.
Ryan M.NinjaTrader Customer Service
-
Originally posted by NinjaTrader_RyanM View PostHi Chuck,
It should generally work the same, as long as there are no order methods. You will want to copy and paste the custom code from your strategy into an indicator.
Look at the following regions / methods and place the custom items in the same place in the indicator.
Variables
Initialize
OnBarUpdate
Properties
If the indicator references prior bar value, then you'll need to be sure to look into this is a potential issue you might see in an indicator but not a strategy.
http://www.ninjatrader-support.com/v...ead.php?t=3170
Chuck
Comment
-
Originally posted by NinjaTrader_RyanM View PostHI Chuck,
Attached is a screenshot of the SampleMACrossover strategy code. The custom code for the four sections you need are highlighted with a red rectangle.
Best Regards
Chuck
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by WHICKED, Today, 12:56 PM
|
1 response
8 views
0 likes
|
Last Post Today, 01:17 PM | ||
Started by cre8able, Today, 01:16 PM
|
0 responses
1 view
0 likes
|
Last Post
by cre8able
Today, 01:16 PM
|
||
Started by chbruno, 04-24-2024, 04:10 PM
|
2 responses
47 views
0 likes
|
Last Post
by chbruno
Today, 01:15 PM
|
||
Started by WHICKED, Today, 12:45 PM
|
1 response
10 views
0 likes
|
Last Post Today, 01:08 PM | ||
Started by samish18, Today, 01:01 PM
|
0 responses
5 views
0 likes
|
Last Post
by samish18
Today, 01:01 PM
|
Comment