Writing a strategy

Each strategy must have a unique name. It is specified in the const section of the script by declaring the constant StrategyName.

 

const

StrategyName = ‘My Strategy’

 

This value becomes the name of your strategy as displayed in the title of the strategy window:

 

ribbonactfx106

 

 

 

Most strategies use chart data to make trading decisions. Chart data can be presented in either candle or tick charts, each of which will be discussed separately below.