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
Orders are not displayed in chart
Collapse
X
-
Hello techsigma,
Thanks for your note.
Information about the NinjaTrader 8 API could be found on the forum thread linked below.
https://ninjatrader.com/support/foru...art#post793626
Support for the API is limited from NinjaTrader Support. We are not able to assist with any code in an application external to NinjaTrader. We are able to detail the usage of any methods available from the API.
Below I am providing a publicly available link to the help guide that lists the functions available to the API.
Help Guide NT8 API functions:
-
Hello,
I am trying to find the API for version 8, but the page is no longer available. Where can I find this?
Thanks.
Leave a comment:
-
Hello zhiga,
Thank you for your reply.
Ah, the pictures of the script are helpful as I understand what you're trying to do now.
The ones you mention are not working have different symbol mapping for IQ feed than the actual symbol name. For GC, try QGC (no @ sign). For 6E, try @EU. Finally, for 6B, try @BP.
You can check the symbol mapping for any given instrument under Tools > Instruments. Use the search box at the top to find the instrument you wish, then double click on it in the list to open the instrument information. If you scroll down you'll find the symbol mapping for IQ feed listed.
Please let us know if we may be of further assistance to you.
Leave a comment:
-
Originally posted by NinjaTrader_Kate View PostHello zhiga,
Thank you for your reply.
Can you confirm if you have checked with IQ feed that you are enabled for the GC instrument?
I'm not sure what you mean by "Also there is such strange detail, for Ticker @6B, the code doesn't work, but it's for @M6B." Could you provide a screenshot that illustrates? 6B would be British pound futures, and M6B would be micro British pound futures.
Thanks in advance; I look forward to assisting you further.
T
I have Subscription for real-time qoutes for CME, COMEX, NYMEX form IQ feed. And I have GC on Chart in NT ant it works fine. Do you mean that? Or there is some "mysterious" toggle switch to the instrument.)
Please see attach.
I check a few Symbols:
are working :@MGC, @MES, @ES, @NQ, @MNQ, @YM, @M6E, @M6B, @RTY .
not working: @GC, @6E, @6B
So I can't figure out the ticker spelling error?
Thank you.
Leave a comment:
-
Hello zhiga,
Thank you for your reply.
Can you confirm if you have checked with IQ feed that you are enabled for the GC instrument?
I'm not sure what you mean by "Also there is such strange detail, for Ticker @6B, the code doesn't work, but it's for @M6B." Could you provide a screenshot that illustrates? 6B would be British pound futures, and M6B would be micro British pound futures.
Thanks in advance; I look forward to assisting you further.
T
Leave a comment:
-
Originally posted by NinjaTrader_Kate View PostHello zhiga,
Thank you for your note.
It looks like at the time you posted this post, the market was closed and we would not expect to see data coming in. If you try loading a chart today, are you able to do so?
Have you confirmed with IQFeed that you are enabled for those two instruments?
Thanks in advance; I look forward to assisting you further.
I did it when market was opened. In case Data feed is IQfeed, for ES it works with Ticker @ES, but for Gold I have no solution. Also there is such strange detail, for Ticker @6B, the code doesn't work, but it's for @M6B.
Leave a comment:
-
Hello zhiga,
Thank you for your note.
It looks like at the time you posted this post, the market was closed and we would not expect to see data coming in. If you try loading a chart today, are you able to do so?
Have you confirmed with IQFeed that you are enabled for those two instruments?
Thanks in advance; I look forward to assisting you further.
Leave a comment:
-
Originally posted by NinjaTrader_Kate View PostHello BobyGill,
Thank you for your reply.
Our API will allow you to pump data for any instrument you wish as long as the instrument is set up in the Instruments window.
Please let us know if we may be of further assistance to you.
I try Sample for Gold and ES Future, but it shows 0. My data feed is IQfeed dtn. So I check Ticker compare their Symbol List here https://www.iqfeed.net/symbolguide. Or what I did wrong?
Leave a comment:
-
Hello BobyGill,
Thank you for your reply.
Our API will allow you to pump data for any instrument you wish as long as the instrument is set up in the Instruments window.
Please let us know if we may be of further assistance to you.
Leave a comment:
-
Hi
This is looks great, Thank you
Will this API work for any symbol, like for Futures contracts as well exp. for CL (crude Oil)?
Leave a comment:
-
Hello sabankaradeniz and johnsonmark506,
Thank you for your replies.
I have added a vote for you to a current feature request to add a Metastock Xenith adapter. This request is being tracked under the number SFT-4951.
As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.
Release Notes — https://ninjatrader.com/support/help...ease_notes.htm
I would note here that this is a very old thread and further replies may not be noticed with our ticketing system - if any other users would also like to submit votes for SFT-4951, please start a new thread to do so.
Please let us know if we may be of further assistance to you.
Leave a comment:
-
Thanks for useful posts. Unfortunately, it does not work for me because I do not have coding knowledge. By the way, the Metastock Xenith adapter for Ninjatrader 8 would be great. I don't know a better way to stream live data from unsupported exchanges live to Ninjatrader 8.
- Likes 1
Leave a comment:
-
Hello staycool3_a,
Our development got back to me and let me know that the Oanda order routing and data delivery is done by the Continuum service who directly interface with the Oanda API.
Unfortunately, our development is not able to provide any details with the Oanda API.
Leave a comment:
-
Originally posted by NinjaTrader_ChelseaB View PostHello staycool3_a,
I honestly don't know anything about the Oanda API and these examples are likely not going to be helpful. These examples are pretty specific to NinjaTrader's API.
I'm sure our development knows a bit from creating a connection in the internal code of NinjaTrader but its not within our support model to share this.
That said, I will ping our developers and just ask what they are willing to provide and I'll let you know what they say.
I was able to find Oanda's documentation from a google search. I am included a public link to this 3rd party site below.
However, I'm a little confused on what you are trying to do. NinjaTrader 8 has an internal Oanda connection built into the NinjaTrader Continuum connection. If you are wanting to feed data to a strategy in NinjaTrader then you wouldn't need to directly interface with Oanda's API, you would need to be connected through the normal connection and run the strategy as you would any other strategy.
Can you clarify what you are trying to achieve?
I'm trying to access oanda's fx lab data points by connecting with API. They have bunch of cool information that i'd like to get access to and then use them within my strategies. Because ninjascript is just C, I can't imagine it being complicated.. just don't know where to start
Thanks for asking the dev team. Would be nice to have some example if they can provide on how to pull data from an API from external sources within ninjascript.
fx lab variables:
Discover the range of powerful analysis tools and partner API's contained within the OANDA trade platform
developer:
http://developer.oanda.com/rest-live...ign=forex-labs
http://developer.oanda.com/rest-live-v20/instrument-ep/
^--- this is their most updated API documentation (v20).
Below is a sample python script that i've used previously to connect with their API.
import subprocess, os, csv
import json, http.client, math, calendar, datetime, requests
from time import *
import pandas as pd
import sys
import openpyxl
from openpyxl.reader.excel import load_workbook
import oandapyV20
import oandapyV20.endpoints.forexlabs as labs
Symbol='EUR_USD'
accountID = "********************"
client = oandapyV20.API(access_token="********************* *")
params ={"instrument": Symbol,"period": 3600}
r = labs.HistoricalPositionRatios(params=params)
output = client.request(r)
position_data = output['data'][Symbol]['data']
for p in range(len(position_data)):
position_data[p][0] = datetime.datetime.fromtimestamp(position_data[p][0])
headers = ["timestamp", "lpr", "rate"]
df = pd.DataFrame(position_data, columns=headers)
df = df.set_index(df['timestamp'])
df = df.drop(['timestamp', 'rate'], axis=1)
df = df[:-1]
latest_value= df.tail(1)Last edited by staycool3_a; 11-01-2018, 06:23 PM.
Leave a comment:
-
Hello staycool3_a,
I honestly don't know anything about the Oanda API and these examples are likely not going to be helpful. These examples are pretty specific to NinjaTrader's API.
I'm sure our development knows a bit from creating a connection in the internal code of NinjaTrader but its not within our support model to share this.
That said, I will ping our developers and just ask what they are willing to provide and I'll let you know what they say.
I was able to find Oanda's documentation from a google search. I am included a public link to this 3rd party site below.
However, I'm a little confused on what you are trying to do. NinjaTrader 8 has an internal Oanda connection built into the NinjaTrader Continuum connection. If you are wanting to feed data to a strategy in NinjaTrader then you wouldn't need to directly interface with Oanda's API, you would need to be connected through the normal connection and run the strategy as you would any other strategy.
Can you clarify what you are trying to achieve?Last edited by NinjaTrader_ChelseaB; 11-01-2018, 09:54 AM.
Leave a comment:
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Enkidu, Yesterday, 06:40 AM
|
9 responses
34 views
0 likes
|
Last Post
by Enkidu
Yesterday, 01:11 PM
|
||
Started by Mestor, 03-10-2023, 01:50 AM
|
12 responses
307 views
0 likes
|
Last Post
by z.franck
Today, 04:29 AM
|
||
Started by AgriTrdr, 07-16-2023, 12:54 PM
|
32 responses
267 views
0 likes
|
Last Post
by f.saeidi
Yesterday, 06:49 AM
|
||
Started by Mestor, Today, 03:15 AM
|
0 responses
2 views
0 likes
|
Last Post
by Mestor
Today, 03:15 AM
|
||
Started by Padan, Today, 02:02 AM
|
0 responses
6 views
0 likes
|
Last Post
by Padan
Today, 02:02 AM
|
Leave a comment: