CO/USA
Experience: Intermediate
Platform: TradeStation, Multicharts
Trading: Stocks, Futures
Posts: 129 since Jun 2020
Thanks Given: 70
Thanks Received: 157
|
The cleanest way to handle this would probably be a function. I am not the expert on that so I will leave it for others to chime in on (I am the king of writing the same code in an indicator, strategy, and paint bar ).
I can think of a solution though that should work. Anything you do in an indicator can be done in a strategy (besides plot functions). So I would imagine that you could copy your logic into your strategy and have it run the same calculations then you could call those variables directly.
|