say I have:
- RSI that oscillates between 0 and 100. It has two levels defined at 25 and 75.
- custom oscillator, that ranges something like -2285 to 411+.
Using charts, if I drag custom oscillator on top of RSI, I have two oscillators in the same panel, I can see visually point where:
1. those two intersects,
2. custom oscillator crosses level 75 horizontal line (RSI draws this).
Please see attached picture.
Now problem:
how to find out algorithmically two intersection/cross points mentioned above?
You see, custom indicator can cross RSI say at level -1860 (MINUS!) while RSI at cross point is at 14.5 (RSI never goes to minus values). We have mismatching coordinate system here, and mismatching ranging amplitude, however Ninja is capable to work around this problem on chart. In short - I visually see crosses, but how to catch these with Ninjascript?
If I knew principles how Ninja superimposes oscillators in such cases that may help to find solution if there is no one yet.
Thank you.
Comment