I've read the help on this but I'm still not 100% sure about this.
Is it the case that if I enter say the following in the Initialize method:
ProfitNow = Position.GetProfitLoss(Close[0], PerformanceUnit.Points);
then in the OnBarUpdate method, whenever ProfitNow is read, the program understands Position.GetProfitLoss(Close[0], PerformanceUnit.Points)?
(ProfitNow will of course be declared in Variables.)
If I understand it right, the Initialize method is the place to make 'substitutions', as it were, which are then valid universally.
Thanks for your help with this.

Comment