![]() ![]() If you zoom in your chart enough, you will see these points very clearly.Ĭrossover happens when for a given bar line A is above line B and for it's neighbour bar line A is below line B. All points are visually connected to form those lines. If Indicator A and Indicator B are like Moving Average, then here is how they are crossing:īoth indicator lines are made out of many points, one for each bar on the chart. Now let's see how we can detect crossover in few different ways. Note: In "Condition" block there is a parameter named "Candle ID" (first click on "More settings") that represents the bar's index. What is now candle with index 5 will be candle 6 when a new candle is created.įact: Negative values (from the future) are in fact also possible and this can be seen in the built-in indicator Ichimoku Kinko Hyo. Basically, the number tells us how far from the current candle is each other candle. ![]() The newest bar on the chart (the current one) has index 0 and the index increases as we are going into the history. ![]() We need to know this, because we are going to detect crossovers between indicator lines, and those lines are closely related to the bars.Įach bar from the chart has its own index (number, address, shift or ID - name it as you like it). First let's see how bars (candles) are indexed on the chart. The next information applies mostly to the Condition block and it's crossover abilities ×.
0 Comments
Leave a Reply. |