I am having trouble accessing some data from a hosted indicator. The hosted indicator has some signals, let’s call them Signal A, and these occur on bar[1], as they can only be confirmed when there is not a similar signal on bar[0]. On the hosted indicator I have written a series bool to show when Signal A occurs at bar[1], and my output window shows it to be true on the correct bars. I have included the series bool in the properties region so that I can access it from a hosting indicator.
In the hosting indicator, I have defined the hosted indicator and included any additional data series from the hosted indicator. I have then set up some code so that when Signal A is true in the hosted indicator, a separate series bool in the hosted indicator should also be true (then I will be able to combine with other signals in the hosting indicator to give a further signal – this part is not important for now). All compiles OK, but the series bool in the hosting indicator is always showing false, even on bars that the hosted indicator series bool show to be true. Any ideas as to how I resolve this would be welcomed. Thank you.
if(BMTCMA00.SignalA[1]==true) // { // gapA[1]=true; // }
Comment