![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jan 2008
Posts: 183
Thanks: 0
Thanked 1 time in 1 post
|
I refer to the example samplestream writer that has been provided.
If I was to create another indicator based on the above indicator by copying the region variables and the onbar update method, would compiling add the required lines as shown beneath the namespace NinjaTrader.Indicator section and namespace NinjaTrader.MarketAnalyser section? I ask this because I am learning C# in relation to Ninjascript and especially StreamWriter. I can basically understand what to put in the onbar update method if I code something myself, but looking at the sample streamwriter example, clearly more programming has been added under the above mentioned sections. Is this always added automatically by the Ninja compilier? |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
MicroAl,
No, it does not add required portions of code when you compile. You need to use the Indicator wizard to generate those sections and you should not remove them in your own script.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming help | kipper | General Programming | 3 | 12-14-2008 12:12 AM |
| Starting Out Programming | kipper | General Programming | 4 | 11-01-2008 02:48 PM |
| Programming Error | octrout | Strategy Development | 1 | 10-22-2008 11:55 AM |
| Programming references | bobajob78 | General Programming | 1 | 02-11-2008 03:32 PM |
| How do I resolve NinjaScript Programming Errors? | NinjaTrader_Ray | Tips | 0 | 12-24-2007 08:46 AM |