TPO Charts Signals example code

Questions about MultiCharts .NET and user contributed studies.
joenetic
Posts: 30
Joined: 13 Jun 2013

TPO Charts Signals example code

Postby joenetic » 05 Oct 2021

Can you provide an example code of signals on TPO chart ? I found existing signals cannot work on TPO charts, they keep calculating.

User avatar
Tammy MultiCharts
Posts: 200
Joined: 06 Aug 2020
Has thanked: 6 times
Been thanked: 65 times

Re: TPO Charts Signals example code

Postby Tammy MultiCharts » 06 Oct 2021

Hello joenetic,

Strategy calculation on a TPO chart should not differ from one on a regular chart.

If your strategy is stuck on Calculating... in the status line, please make sure:

1) The data on the charts is fully loaded. The signal won't start calculating unless the whole data range is backfilled. Please check if there is Backfilling status in the status line, and if there is wait till the data loads.

2) The number of bars is sufficient for the calculation.
When you apply a study into a chart, MultiCharts skips a number of bars defined by MaxBarsBack before making its first calculation of your studies.
For the signals you can check MaxBarsBack value in Strategy Properties > Properties tab > Maximum number of bars study will reference.
Please make sure the data range on your chart exceeds the MaxBarsBack value. If there are fewer bars on the chart than MaxBarsBack the signal will hang calculating.


Return to “MultiCharts .NET”