Manipulating string objects

View as Markdown

Dealing with strings and other related concepts are essential to many computer programs. This sample is a collection of some of the most common string and text related functions including splitting a string, replacing a string with another string, and a few other string functions.

Key concepts in this example

  • Simple text/string manipulation ideas

C#

NinjaTrader

A related sample demonstrating how to format numbers can be found here.

Import instructions

  1. Download the file contained in this Help Guide topic to your PC desktop
  2. From the Control Center window, select the menu Tools > Import > NinjaScript
  3. Select the downloaded file

SampleStringFunctions_NT8.zip