NexusFi: Find Your Edge


Home Menu

 





Default How to subscribe and get price change.


Discussion in NinjaTrader

Updated
    1. trending_up 1,264 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

Default How to subscribe and get price change.

  #1 (permalink)
ieitani
Tel Aviv
 
Posts: 10 since Feb 2016
Thanks Given: 1
Thanks Received: 1

Hello,
PLEASE BE VERY SPECIFIC.

I know there is a method called OnMarketData() available for a strategy.
Then I am developing an API application, that should get each price change.
So far I did not manage to see the above method is triggering.

Data Feed:
I did not find a way to debug the strategy code.
I saw somewhere that I need to attach to process from my VS app, then I had to open the strategy.cs file, and put my Breakpoint on VS, then the code was suppose to stop there.
I did not manage to do it.
If you have a very Detailed instruction on how to do it, it will help to pass one barrier.


Price Change:
Then after I pass the feed issue, then I need to get into my VS code, to a handler, the price change.
So, I could never check and see how to even subscribe to the OnMarketData() method...
So, please help with that as well.
My plan is to get the change of price to this method, then from it to open a socket and send the information back, from my C# Strategy code to my VS C# code.

Or(another idea), when I add the custom.dll as a reference, and when I compile with NT, the dll is getting updated, and the name of the strategy become a class inside this dll.
Then I can add a hendler in this dll, and delegate this handler in my VS code, then only from the strategy, to send the object MarketDataEventArgs on to the handler, that will be passed on to my VS C# code, and from there to make decisions for the strategy.

Please be specific in your responses. Usually responses are short and laconic (sorry).

Thank you in advance,
Isaac (is the name)

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Increase in trading performance by 75%
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Exit Strategy
NinjaTrader
Better Renko Gaps
The Elite Circle
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
27 thanks
Tao te Trade: way of the WLD
23 thanks
Diary of a simple price action trader
22 thanks
My NQ Trading Journal
14 thanks
GFIs1 1 DAX trade per day journal
9 thanks
  #3 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


I am using IQfeed, i'm reading directly (through a socket) all data that i need, without NT having to be open and loaded, this is much better peformance and more precise. It also allows me to load historical tick data, etc...

Why go through NT ? What is your data provider ?

If you want to see how to read OnMarketUpdate, you can take a look at one of my previous creations :


Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
ieitani
Tel Aviv
 
Posts: 10 since Feb 2016
Thanks Given: 1
Thanks Received: 1


rleplae View Post
I am using IQfeed, i'm reading directly (through a socket) all data that i need, without NT having to be open and loaded, this is much better peformance and more precise. It also allows me to load historical tick data, etc...

Why go through NT ? What is your data provider ?

If you want to see how to read OnMarketUpdate, you can take a look at one of my previous creations :


I understand what you say.
My experience with API is with OEC, and it is like that.
I open a socket directly with them.

BUT, the order is mirroring on the open trading application, since I use the same user name.
Will it be like that?
Meaning:
Will my order, reflect on my Ninja Trader, when I open a position?
Could I monitor the position with Ninja...
I understand that I will be able/need to make the monitoring with my application.

So, by now I don't have a full account, I use temporary Demo account given free by Ninja by Continuum (Demo). So Mabe I don't have full access.
Soon, I will deposit the account with funds (NT told me above $1,000 - I can say only [with OEC is $5K]), then I should get full Demo...
Still don't know if account makes any different.

I will look at your post, and thank you for your advise. As far as now, sound good and nice.

Thanks again,
Isaac

Reply With Quote
  #5 (permalink)
ieitani
Tel Aviv
 
Posts: 10 since Feb 2016
Thanks Given: 1
Thanks Received: 1


rleplae View Post
I am using IQfeed, i'm reading directly (through a socket) all data that i need, without NT having to be open and loaded, this is much better peformance and more precise. It also allows me to load historical tick data, etc...

Why go through NT ? What is your data provider ?

If you want to see how to read OnMarketUpdate, you can take a look at one of my previous creations :


I tried to access this link, but I got a message that I am not Elite member so I don't have permission to view it.
Are you capable to grant me access?

Reply With Quote
  #6 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863

There are two distinct things

1) data feed, for the price update
2) broker feed for order and execution

While some offer both in one, i use 2 seperate connections, IQfeed for data and broker through NT
it is important to have good data, when the data comes from a broker, it is sometimes filtered
(to reduced bandwidth), etc...

Brokers offer not necessary historical data in the same sense as a data vendor (for whom it is
the core business).

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote




Last Updated on July 13, 2016


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts