Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Connecting NT8 and Python

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

  • bahmantehrani
    replied
    hi Shahab I have find some way to extract data
    please call me on whatsapp : 00989335283564

    Leave a comment:


  • NinjaTrader_BrandonH
    replied
    Hello shahabkabiri,

    Thanks for your note.

    When exporting historical Tick data from the Tools > Export > Historical Data window, you could choose if you want to export data with the Last, Ask, or Bid price. If you want to print the Ask or Bid, you would need to set the Data Type field to 'Ask' or 'Bid' when exporting the data.

    Note that the Volume will be included when exporting the Last data type. If you choose to export Ask or Bid data type, the Ask or Bid Volume would not be included and would read 0 or be blank in the export file. This could be seen by exporting each data type for the same instrument and comparing those export files.

    See this help guide page for information about using the Tools > Export > Historical Data window: https://ninjatrader.com/support/help.../exporting.htm

    Let us know if we may assist further.

    Leave a comment:


  • shahabkabiri
    replied
    Dear Brandon
    Hi again and thanks again
    Could you please be more specific regarding the data that the NT8 platform exports?
    As I saw, there are three types of data that I can export based on tick. one is the last, one is the ask and one is the bid. All these three come with a volume. However, the volume for last, seems to add up to what is seen in NT8 , however, I cannot find the other two volumes; ask and bid volumes. Can you tell me what they are?

    I do appreciate that.

    Leave a comment:


  • NinjaTrader_BrandonH
    replied
    Hello shahabkabiri,

    Thanks for your note.

    The format for Tick Data would be yyyyMMdd HHmmss fffffff; price; volume. Note that fffffff refers to milliseconds.

    For information about data formats, see this help guide page: https://ninjatrader.com/support/help...AndDataFormats

    Let us know if we may assist further.

    Leave a comment:


  • shahabkabiri
    replied
    Dear Brandon
    Hi again and thanks for your data.
    May you be so kind and tell me a couple of things? I do apologize if these are quite clear but I don't know them.

    It seems that the data I am looking for is the tick data.
    the downloaded data have a format like below:
    20220208 100001 3560000 1.1414 210
    The first column is the date and the second is the time. what is the third column?
    The fourth column is the price (ask or bid)
    I suppose the last column is the volume. is that right? if so, what is the unit? Or it is just all the orders, including those that were not executed? if these data also include those that were not executed, how can I filter those that WERE executed? In other words, real executed volume.

    Can you help me on that?
    Thanks in advance.
    Last edited by shahabkabiri; 02-11-2022, 11:10 AM.

    Leave a comment:


  • NinjaTrader_BrandonH
    replied
    Hello shahabkabiri,

    Thanks for your note.

    You could export historical data using the Export feature (Tools > Export > Historical Data).

    See this help guide page for more information: https://ninjatrader.com/support/help.../exporting.htm

    Or, you could consider using a StreamWriter to write the data to a text file.

    See this reference sample which demonstrates using a StreanWriter: https://ninjatrader.com/support/help...o_write_to.htm

    Let us know if we may assist further.

    Leave a comment:


  • shahabkabiri
    replied
    Dear Brandon
    Hi again and thanks for your reply.
    I might ask my question a bit different to express what I need. Is there any place (a URL or a file on my local hard drive or anywhere) that I can get the volume-price data in any format? I can easily arrange and organize them, once provided. there should be a place where these data are stored and viewed in the NT8 program. Where is it? Is it possible to have access to it?

    Leave a comment:


  • NinjaTrader_BrandonH
    replied
    Hello shahabkabiri,

    Thanks for your post.

    NinjaTrader uses the C# programming language for developing custom NinjaScript AddOns. Using the Python programming language for NinjaScripts is not documented or supported and we would not be able to provide assistance with using Python.

    That said, this thread will be open for other community members to share their insight on this topic.

    Let us know if we may assist further.

    Leave a comment:


  • shahabkabiri
    started a topic Connecting NT8 and Python

    Connecting NT8 and Python

    Hi everybody
    I hope you are doing well


    I was wondering if you could help me on connecting NT8 and python, to have the data (specially volume data) as a variable in python. I did searched for similar topics, however, I was not able to find a straight path into this.

    These are those that I have found! If anything is wrong in these, please let me know:
    There is a DLL file which seems to have some data in it. This file could be "requested" in python and by using functions pre-defined in NT8 documentation, a number of tools become available.
    However, as I have found out, these information do not include volumes. I can get OHLC using Metatrader5 package, but we all know that it is not what we are looking for.

    So, help me on this please, if there is a way, or if you have found one. A simple useful hint would be more than enough for me to dig in.

    Be well and keep safe.

Latest Posts

Collapse

Topics Statistics Last Post
Started by w0lverine, 10-16-2019, 07:06 AM
3 responses
144 views
0 likes
Last Post psangram  
Started by haimcn, Today, 05:16 PM
0 responses
8 views
0 likes
Last Post haimcn
by haimcn
 
Started by f.saeidi, 04-24-2024, 12:14 PM
11 responses
71 views
0 likes
Last Post Fertryd2  
Started by samish18, Today, 02:22 PM
2 responses
12 views
0 likes
Last Post samish18  
Started by Adanni, 03-03-2025, 12:33 PM
5 responses
69 views
0 likes
Last Post mikecolady  
Working...
X