Realtime chart of user defined spread  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
mokomo
Posts: 5
Joined: 05 Jun 2013
Has thanked: 4 times

Realtime chart of user defined spread

Postby mokomo » 06 Jun 2013

What is the best way to create and chart a user defined spread in real time eg [1 * ES - 2 * ND] futures?

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Realtime chart of user defined spread  [SOLVED]

Postby Henry MultiСharts » 06 Jun 2013

Hello mokomo,

The easiest solution is to add two data series to one chart: 1)ES, 2) ND.
Then create an indicator that will calculate and plot the difference.

Code: Select all

plot1.Set(BarsOfData(1).Close[0]-2*(BarsOfData(2).Close[0]));


Return to “MultiCharts .NET”