I'm looking to run some code when my indicator opens.
What I need to do is figure out what the current price is.
When the market is open - I need to know the last price traded on the last bar and I need to do the same thing when the market is closed.
The thing I am having difficulty with is that the solutions I have seen so far rely on the use of the Historical flag which isn't going to work when the market is closed (I don't think).
Cheers
Pete
Comment