+1 888 340 6572

How Signals are Calculated: Difference between revisions

From MultiCharts
No edit summary
No edit summary
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div class="note">This article is regarding the calculation done on a '''Regular chart type'''.</div>
Refer to this page to understand how signals are calculated depending on their current environment.


* '''Realtime. Default mode ([[Signal Settings#Intra-Bar Order Generation|Intra-Bar Order Generation (IOG)]] disabled).'''<br>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.
== Calculation on real-time data ==
{| class="wikitable"
* '''Realtime. [[Signal Settings#Intra-Bar Order Generation|Intra-Bar Order Generation (IOG)]] enabled.'''<br>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.
!IOG disabled
!IOG enabled
|-
|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 ([[Signal Settings#Intra-Bar Order Generation|IOG]] disabled. [[Bar Magnifier|Bar Magnifier]] disabled).'''<br>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 Assumptions|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.
== Calculation on historical data ==


* '''Calculation on historical data. [[Signal Settings#Intra-Bar Order Generation|IOG]] enabled. [[Bar Magnifier|Bar Magnifier]] disabled.'''<br>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 Assumptions|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.
{| class="wikitable"
!
!IOG disabled
!IOG enabled
|-
|'''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.
|-
|'''Bar Magnifier enabled'''
| 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.
|}


* '''Calculation on historical data. [[Signal Settings#Intra-Bar Order Generation|IOG]] disabled. [[Bar Magnifier|Bar Magnifier]] enabled.'''<br>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.
<div class="note">This article is regarding the calculation done on a Regular chart type.<br>
 
IOG and Bar Magnifier work differently on non-standard chart types. Refer to this article for more details [[Intra-Bar Order Generation, Bar Magnifier on Non-Standard Chart Types|IOG and Bar Magnifier on non-standard chart types]].</div>'''
* '''Calculation on historical data. [[Signal Settings#Intra-Bar Order Generation|IOG]] enabled. [[Bar Magnifier|Bar Magnifier]] enabled.'''<br>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.
 
<div class="note">IOG and Bar Magnifier work differently on non-standard chart types. Refer to this article for more details [[Intra-Bar Order Generation, Bar Magnifier on Non-Standard Chart Types|IOG and Bar Magnifier on non-standard chart types]].</div>'''


[[Category:FAQ]]
[[Category:FAQ]]
[[Category:Studies]]
[[Category:Studies]]

Revision as of 13:34, 26 June 2024

Refer to this page to understand how signals are calculated depending on their current environment.

Calculation on real-time data

IOG disabled IOG enabled
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

IOG disabled IOG enabled
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.
Bar Magnifier enabled 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.
This article is regarding the calculation done on a Regular chart type.
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.