Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exporting Price and Indicator Data from chart

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NinjaTrader_CodyB
    replied
    Hello,
    Please follow the instructions below to see where the errors are coming from after compiling the indicator. This will allow you to debug the indicator/strategy or remove it from your PC. If you are wondering why you receive an error when compiling only one indicator, it is because NinjaTrader always compiles all indicators and strategies - not just one. This is done to give you the highest runtime performance possible.
    • Open NinjaTrader
    • From the Control Center select the Tools menu--> select the Edit NinjaScript menu item--> select Indicator
    • Select any indicator and double click on it (we need only to open and compile one script to see all compile errors for all files).
    • A new window will appear and you will need to right click in the window and select Compile to compile the indicators.
    • At the bottom of the window a new section will appear where you can find the error locations.
    • From there you have the option to comment out offending code sections, remove the complete indicator or debug it to be able to compile again.

    If you are unsure as to what the error is indicating, please send me a screenshot of the error with the name and description fields clearly readable.
    To send a screenshot with Windows 7 or newer I would recommend using Window's Snipping Tool.
    Click here for instructions

    Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.
    Click here for detailed instruction

    We have also collected more comprehensive steps for resolving NinjaScript programming errors in this tip on our forums - http://www.ninjatrader.com/support/f...ead.php?t=4678

    Leave a comment:


  • Farmer George
    replied
    Originally posted by Farmer George View Post
    All clear, thanks.
    I receive the following message when attempting to import an indicator - I have not specified which file to import:

    "You have custom NinjaScript files om your PC that have programming errors. These erros must be resolved before you can import a NinjaScript archive File."

    Not sure how to progress. Thanks.

    Leave a comment:


  • Farmer George
    replied
    Originally posted by NinjaTrader_Jason View Post
    After you imported the .zip file, the .cs file will be placed automatically in the Documents-->NinjaTrader 7-->bin-->Custom-->Indicator folder.
    All clear, thanks.

    Leave a comment:


  • NinjaTrader_Jason
    replied
    After you imported the .zip file, the .cs file will be placed automatically in the Documents-->NinjaTrader 7-->bin-->Custom-->Indicator folder.

    Leave a comment:


  • Farmer George
    replied
    Originally posted by arbuthnot View Post
    This link has a good overall view of importing:



    Basically, click on the 'attached files' box in my last post..

    The file will download to your Downloads folder.

    Then in Control Center, choose: File -> Utilities -> Import and go to the Downloads folder.

    Remember, say 'no' to any import requests!

    There are lots of posts in the Forum about importing files: if you google this, they'll show up.
    Thanks again Arbuthnot. Slowly getting the hang of it.

    Leave a comment:


  • Farmer George
    replied
    Originally posted by NinjaTrader_Jason View Post
    Hello Farmer George,

    You can import NinjaScript files at Control Center-->File-->Utilities-->Import NinjaScript.
    Thanks Jason - so the .zip file will be recognised as having a .cs file?

    Leave a comment:


  • arbuthnot
    replied
    Originally posted by Farmer George View Post
    Hi Arbuthnot,

    Thanks for you efforts, appreciated. What's the best way of importing this into Ninja script? Thanks.

    FG
    This link has a good overall view of importing:



    Basically, click on the 'attached files' box in my last post..

    The file will download to your Downloads folder.

    Then in Control Center, choose: File -> Utilities -> Import and go to the Downloads folder.

    Remember, say 'no' to any import requests!

    There are lots of posts in the Forum about importing files: if you google this, they'll show up.

    Leave a comment:


  • NinjaTrader_Jason
    replied
    Hello Farmer George,

    You can import NinjaScript files at Control Center-->File-->Utilities-->Import NinjaScript.

    Leave a comment:


  • Farmer George
    replied
    Originally posted by arbuthnot View Post
    George, I'm attaching the indicator I used to do this. You can change the code referencing 'EMA' to anything you want.

    When you import this, so 'no' to any other NT requests for import - or your system may fail!

    Just open the output window, load this ind once imported, and it should work fine.
    Hi Arbuthnot,

    Thanks for you efforts, appreciated. What's the best way of importing this into Ninja script? Thanks.

    FG
    Last edited by Farmer George; 03-12-2015, 04:28 AM.

    Leave a comment:


  • arbuthnot
    replied
    Originally posted by Farmer George View Post
    Thanks Arbuthnot,

    I hadn't appreciated that I need to write some script in order to do that - I I thought there may be a way via the Control centre menus. I'll give it a go.
    George, I'm attaching the indicator I used to do this. You can change the code referencing 'EMA' to anything you want.

    When you import this, so 'no' to any other NT requests for import - or your system may fail!

    Just open the output window, load this ind once imported, and it should work fine.
    Attached Files

    Leave a comment:


  • Farmer George
    replied
    Thanks Arbuthnot,

    I hadn't appreciated that I need to write some script in order to do that - I I thought there may be a way via the Control centre menus. I'll give it a go.

    Leave a comment:


  • arbuthnot
    replied
    Originally posted by Farmer George View Post
    Thanks for that.How did you get the indicators values to the Output Window?
    Hi George

    I've just tested this so I know it works:

    This is example of a line of code (for either inds or strats) that prints to the output window the EMA at each bar close:

    Code:
    Print(EMA(14)[0]);
    This may output to many decimal places. These can be shortened using the ROUND function in Excel, which can truncate to as many decimal places as you wish.

    Leave a comment:


  • Farmer George
    replied
    Originally posted by arbuthnot View Post
    Just seen this thread.

    All I can add is that I've exported a lot of data (price and indicator levels) from NT to Excel through the expedient of printing to the Output Window, via Notepad and Word (to change things like paragraphs (^p in Word 'Replace') into tabs (^t in Word 'Replace'), then into Excel.

    The analysis Excel can then undertake far exceeds anything NT can do on its own.
    Thanks for that.How did you get the indicators values to the Output Window?

    Leave a comment:


  • arbuthnot
    replied
    Just seen this thread.

    All I can add is that I've exported a lot of data (price and indicator levels) from NT to Excel through the expedient of printing to the Output Window, via Notepad and Word (to change things like paragraphs (^p in Word 'Replace') into tabs (^t in Word 'Replace'), then into Excel.

    The analysis Excel can then undertake far exceeds anything NT can do on its own, for someone who knows quite a bit about Excel and is not a Master of NT.
    Last edited by arbuthnot; 03-11-2015, 06:01 PM.

    Leave a comment:


  • Farmer George
    replied
    Originally posted by stockgoblin View Post
    Hey Kog,

    Ninjatrader_Matthew and I completed one today and now I can export batch instruments in Weekly timeframe through the Market Analyzer. Saves me hours and hours. Kick ass.

    Thanks anyway!
    How did you do that? Thanks.

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by tkaboris, Today, 05:13 PM
0 responses
2 views
0 likes
Last Post tkaboris  
Started by GussJ, 03-04-2020, 03:11 PM
16 responses
3,281 views
0 likes
Last Post Leafcutter  
Started by WHICKED, Today, 12:45 PM
2 responses
19 views
0 likes
Last Post WHICKED
by WHICKED
 
Started by Tim-c, Today, 02:10 PM
1 response
10 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by Taddypole, Today, 02:47 PM
0 responses
5 views
0 likes
Last Post Taddypole  
Working...
X