Realtime chart of user defined spread [SOLVED]
Realtime chart of user defined spread
What is the best way to create and chart a user defined spread in real time eg [1 * ES - 2 * ND] futures?
- 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]
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.
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]));