How Signals are Calculated

Note: This article is regarding the calculation done on a Regular chart type.

The script is calculated on the bar close. An order can be placed on this bar close/next bar open. An order can be filled on any tick price that satisfies order execution conditions.

The script is calculated tick by tick. An order can be placed on the next tick. An order can be filled on any tick price that satisfies order execution conditions.

  • Calculation on historical data. Regular mode (IOG disabled. Bar Magnifier disabled)

The script is calculated on the bar close. An order can be generated on this bar close/next bar open. It's considered that all prices were within the bar (Intra-bar Price movement assumption is used), therefore an order can be filled on any price that satisfies order execution conditions with price step (minmove/pricescale) within the next bar.

The script is calculated four times (on the OHLC of the bar). An order can be generated on any of these OHLC calculations. It's considered that all prices were within the bar (Intra-bar Price Movement Assumption is used), therefore an order can be filled on any price that satisfies order execution conditions with price step (minmove/pricescale) within this bar.

The script is calculated one time on the main data series close. It is considered that there were only OHLC values of the detailed data series. An order can be filled only on OHLC prices of the detailed data series.

The script is calculated on the Open value of the main data series, then on the OHLC of each bar of the detailed data series selected in the Bar Magnifier, then on the Close of the main data series. An order can be generated on any of these calculations. It can be filled within this bar on the first price that meets the order execution logic. Only exact prices of the main bar and Bar Magnifier bars are used for filling the order.

Note: IOG and Bar Magnifier work differently on non-standard chart types. Refer to this article for more details IOG and Bar Magnifier on non-standard chart types