![]() |
|
|||||||
| Reference Samples Official NinjaScript reference code samples |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
When running a strategy on a chart you may find the need to plot values onto a chart. If these values are internal strategy calculations that are difficult to migrate to an indicator, you can use the following technique to achieve a plot. The technique involves the use of a custom indicator, StrategyPlot(), that is included in the import.
Note: This technique has limited functionality. It will NOT work for charts in the Strategy Analyzer during backtesting, but it will work on real-time charts. This reference sample demonstrates the following concept:
Josh
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Josh for this post: |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Setting Strategy Defaults for Ninjascript Strategy | dendy | Strategy Development | 2 | 03-28-2008 03:32 PM |
| Plotting Trade Executions from Strategy | Learning1 | Charting | 2 | 11-20-2007 02:15 PM |
| Ending Ninjascript strategy | jlm0@infionline.net | General Programming | 50 | 11-14-2007 10:59 PM |
| NinjaScript Strategy Wizard | crazyhorse2393 | Automated Trading | 3 | 10-29-2007 06:47 AM |
| Plotting Strategy Equity Curve on Chart | whitmark | Strategy Development | 1 | 06-04-2007 05:25 PM |