ninja code to cqg integrated client - futures io
futures io futures trading



ninja code to cqg integrated client


Discussion in Traders Hideout

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




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

ninja code to cqg integrated client

(login for full post details)
  #1 (permalink)
chicago
 
 
Posts: 1 since Mar 2018
Thanks: 0 given, 0 received

is it possible to convert ninja code to cqg integrated client? Can you just copy and paste?

Reply With Quote

Can you help answer these questions
from other members on futures io?
Webinar: Finding your own way in trading w/Adam Grimes
The Elite Circle
SimplerOptions
Trading Reviews and Vendors
COTbase for quant trading?
Elite Algorithmic NinjaTrader Trading
MACD line not plotting after change of plot order
NinjaTrader
What blockvolume is visible? - order processing
NinjaTrader
 
 
(login for full post details)
  #3 (permalink)
charlotte nc
 
Experience: Master
Platform: ninjatrader
Broker: NinjaTrader
Trading: Emini (ES, YM, NQ, ect.)
 
Posts: 398 since Jan 2015
Thanks: 76 given, 1,081 received


A cursory glance at the API overview reviles that you can at least use the same programming language as ninja trader which is c#.

Client APIs | CQG, Inc. "The CQG Data API is based on Microsoft COM server technology. Any language that supports COM automation technology may be used for development. CQG provides samples of how to use the API for Microsoft ExcelŽ VBA, Visual Basic, C#, and C++."

What this means is that if you want to convert your ninjatrader code to cqg API you could at least keep any part of the code that is outside the realm of the ninjascrpt custom class library intact. But the key point is that most of the ninjatrader classes such as "Exit Long" https://ninjatrader.com/support/helpGuides/nt8/en-us/?exitlong.htm will have a different syntax with cqg API. If your code is 90% or more based on the ninjatrader library, then you will have to manually find the equivalent to each of these methods and objects in cqg API. If you are doing things with c# that are beyond just calling ninjatrader objects like building custom lists, arrays, making calls to a sql server, etc. These pieces you can likely keep relatively unchanged. But the rest (NinjaTrader class library parts) you will have to find the equivalent cqg API object / method / class, etc. and convert it. Some of these may be as simple as just finding out what the equivalent in cqg is to Exit Long, but others may require more steps or an entirely different bit of logic. Unfortunately there is no easy button here...

So there is the long answer as well.

Best of luck!

Ian

In the analytical world there is no such thing as art, there is only the science you know and the science you don't know. Characterizing the science you don't know as "art" is a fools game.
Visit my futures io Trade Journal Reply With Quote


futures io Trading Community Traders Hideout > ninja code to cqg integrated client


Last Updated on March 18, 2018


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts