Was wondering if anyone could lend a hand with a little problem I’m having. I'm trying to run 24 hour data and define my own daily open and closing prices, to then reference for trading. Running on Minute bars.
Id like to be able to change times I choose to state the myopen and myclose for optimisation purposes, this is why I’m not just doing this within session manager.
For example im stuck here,
private int my_Closing_time = 203001 private int my_Close = 0
protected override void OnBarUpdate() { if (ToTime(Time[0]) == my_Closing_time) { my_Close = Close[0] ; } }
CS0135 - when I try to reference my_Close to place orders.
Thanks in advance if youre able to help, Im new to NS, moved from EasyLanguage.
Comment