charlotte nc
Experience: Advanced
Platform: My Own System
Broker: Optimus
Trading: Emini (ES, YM, NQ, ect.)
Posts: 408 since Jan 2015
Thanks Given: 90
Thanks Received: 1,148
|
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 | [AUTOLINK]CQG[/AUTOLINK], 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. |
|