Recalculating Chart Data

Advanced NeuroShell Trader users can use the Recalculate Chart pop-up menu item to reread data files and recalculate all the calculations in a chart.

  1. Select the chart you wish to recalculate by right-clicking the mouse button on the chart.
  2. Select Recalculate Chart from the pop-up menu.

The Recalculate Chart pop-up menu item can be used when the chart is based on an external data file that is being updated by an external program. Manually recalculating the chart will allow new data from the data file to be incorporated into the chart without having to load and unload the chart.

The Recalculate Chart pop-up menu item is especially useful when developing external DLL calls and the DLL has not been updated since the chart was loaded (Note that ‘UNLOADCUSTOMDLLS=’ needs to be set to ‘True’ in the Nstparam.ini file in order to copy over a dll being used by a chart)

The Recalculate Chart pop-up menu item can also be used to refire a trading strategy or prediction that has inputs of the form Lead(XXX,1) where XXX is raw data like the Open, High, Low, Close or Volume. Use of Lead(XXX,1) allows for a trading strategy or prediction to ‘peek’ into the next bar to make decisions. This works well when backtesting, but not when used in real time since the trading strategies and predictions are fired at the end of each bar when no data exists in upcoming bars. Use of the ‘Recalculate Chart pop-up menu item essentially tells NeuroShell Trader when to ‘peek’ into the data of the red bar at the end of the chart in order to revaluate any Lead(XXX,1)’s.
 

Was this article helpful?

Related Articles