Let me give you an example what I mean. (It is just an example, so it does not make much sense.)
Let's say I have to SMAs. Whenever they cross, I want to put that price in a data series. Obviously, they won't cross on every bar, and I don't care about the times when they don't cross, so a synced DataSeries won't do. I could use an array or list, but I want to pass the result to another indicator, so it needs to be something that the indicators can take as an input.
In silly pseudo code:
IF (FastSMA == SlowSMA) {
UnSyncData.Set(FastSMA[0])
}
IF (EnoughData) {
Result = SMA(UnSyncData, Period)
}
Comment