Good Day,
I have the following code for an indicator that will plot the price difference between 2 securities using the close data. (In this case it is the spread between SLB and HAL)
_SECTION_BEGIN("slb");
spread = Foreign( "slb", "c") - Foreign( "hal", "c");
Plot( spread, "spread", colorRed, styleCandle);
_SECTION_END();
Can someone please show me how to plot this as a candlestick chart using the open,high,low,close data? (keeping it as an indicator)
thanks!
I have the following code for an indicator that will plot the price difference between 2 securities using the close data. (In this case it is the spread between SLB and HAL)
_SECTION_BEGIN("slb");
spread = Foreign( "slb", "c") - Foreign( "hal", "c");
Plot( spread, "spread", colorRed, styleCandle);
_SECTION_END();
Can someone please show me how to plot this as a candlestick chart using the open,high,low,close data? (keeping it as an indicator)
thanks!