Start Condition

sc(Use Last Bars Value) Value = 0 (false), 1 (true)


A Start Condition is a value that is calculated before other values are calculated. The Previous Value function has to have a Start Condition, but Start Conditions can also be used in other designer indicators. When you use a Start Condition in the main designer dialog box, please note that it must be the first function. You will be asked if you want to use the last bar’s value on the chart for the calculation. Type in 1 if you want to use the last bar’s value, or 0 if you don’t want to use the last bar’s value.


For example, before Directional Movement can be calculated, the indicator has to know how many up closes there are in the first 15 bars. You would design an indicator that had a running total function that adds up the number the up closes. You would enter 0 (false), since you only want the calculation to take place on the first 15 bars.


In another example, let’s say you are going to need the average volume on a chart. You would need two Start Conditions to calculate this: one to get the number of bars on the chart, and one that totals the volume on the chart. For both these Start Conditions, you would enter 1 (true), since you need the last bar’s value to get the number of bars and the total volume.