I have a chart of the Nasdaq e-minis and I inserted another symbol ($TICK) into the chart. When I look in Format Symbol, the chart for $TICK is called Data2. How do I reference the values of $TICK in my strategy for the NQ?
I have a chart of the Nasdaq e-minis and I inserted another symbol ($TICK) into the chart. When I look in Format Symbol, the chart for $TICK is called Data2. How do I reference the values of $TICK in my strategy for the NQ?
As long as the two data sources are in the same chart analysis window you can create any formula just referencing the data source numbers. The data source numbers are assigned sequentially as you add more plots, so it is important to ensure you reference the correct ones.
You create an indicator along the lines of the one shown below. In this case I am looking at the percentage change in closing price if the 2 plots over a period of 10 bars and subtracting one from the other. You see that the data plot number is added after the "Close".
You then Insert the indicator into the chart window. This example is shown below.
For more complex examples where you reference data in other windows you would need to use global variables, but that is too complex to go into at this stage