I have an indicator that runs well on a X minute chart for a breadth instrument (TRIN) data stream.
My challenge is that I am trying to build a strategy for a different instrument on an exotic bar type (ninzarenko) and pull in or use the value from the indicators last posted X minute bar, and not sure how to do it because of course the chart times dont align at all, and even the instruments are different.
I am thinking perhaps I can customize the indicator to output its value every closed bar to a file, and in my strat have a named variable, and every closed (ninzarenko) bar pull the indicator-outputted value from that file for the strat into that named variable to then use in its conditionals (if variable X then Y etc).
Does this sound like a logical way to achieve what I am attempting given that I am attempting to integrate data from an altogether different (instrument and chart type's indicator value) into a strat? Or is there a more elegant way to code this within only the strat itself (still running the indicator on its X minute chart)?
I have attached the indicator in case that helps
Thank you!
Comment