Tag Archives: Programming

Using NTDirect.dll and ExternalDataFeed NinjaTrader 7

NinjaTrader has an Exernal Data Feed connection type. To connect to it, one would use the NTDirect.dll. Below is an example c# console application that writes a simulated data feed to a symbol “TEST”. First, a few words on the DLL It is a standard, unmanaged dll, not a dotnet assembly or anything like that. […]

Sierra Chart | Study ACSIL

Sierra Chart | Referencing a Study with Sierra Chart ACSIL Sometimes you need to reference a study from within your own study. As an example, say you have a study that uses the Sierra Chart built in “Swing High and Low” study for some calculation.With references, the study user will do the following: Adding the […]

Sierra Chart | Finding ACSIL

Sierra Chart | Finding ACSIL Example Code Finding reference code and examples of ACSIL is not only a great way to learn but also a great way to speed up work. Apart from the Sierra Chart Support Board and other forums like BigMikes, I have found the ACS_Source folder that comes with Sierra Chart to […]

Sierra Chart | Limit Order

 Sierra Chart | Creating and Submitting a Limit Order in Sierra Chart I was asked by someone how to create and submit a LIMIT order in Sierra Chart ACSIL. Below is a short snippet with notes at the bottom. s_SCNewOrder order; // define order structure order.OrderQuantity = 1; // set order quantity to 1 order.OrderType […]

Sierra Chart | Custom Study

Sierra Chart | Handling “function or variable may be unsafe” unsafe when compiling Sierra Chart Custom Study You are compiling your study and getting these warnings. We want the output of compiling to be clean. No errors and no warnings. 1>—— Build started: Project: demo, Configuration: Debug Win32 —— 1>  SCStudies.cpp 1>d:demosierrachartacs_sourcesierrachart.h(385): warning C4996: ‘strcpy’: […]

Sierra Chart | Custom DLL

Sierra Chart | The Anatomy of a Sierra Chart Custom Study DLL Custom studies have a skeleton or structure to them. This structure is the basis of how a custom study fits in with the application itself. The structure can be broken down into four major components. The “physical” DLL file The Sierra Chart DLL […]

Sierra Chart | Persistent Variables

Sierra Chart | Persistent Variables with Sierra Chart It is common when programming indicators to have to retain a value between subsequent calls to your study function. These are cases where you need to store some value that has just been calculated for some future use. Some examples of this include: Retain the index on […]

Sierra Chart | Visual Studio

Sierra Chart |  Visual Studio and Sierra Chart – Project Setup Summary: Demonstrates step by step howto create and configure an initial project in Visual Studio 2010 Express, compile the project and make some simple changes to the default names. Videos are separated into three parts due to size and viewing convenience Part 1 – Setting up […]

Sierra Chart | Visual Studio Started

Sierra Chart | Getting Started with Sierra Chart and Visual Studio Below is material to assist with a kick start to developing custom studies with Sierra Chart and Visual Studio. To follow the videos, it helps to have both Sierra Chart and Visual studio installed. The videos are recorded using SC version 892 and Visual […]

Sierra Chart | Sharing Data

Sierra Chart | Sharing data between studies in Sierra Chart A common task when programming studies is this: You have two studies, StudyA and StudyB StudyA computes some data which you need to access in StudyB StudyA and StudyB might be on the same chart, might be on different charts with the same timeframe or […]