NinjaScript > Educational Resources > Reference Samples > Strategy > Resetting values at the beginning of new trading sessions |
|
Normally calculated values are carried over between trading sessions, but sometimes you may want to reset these values to begin a trading session fresh. The technique demonstrated in this reference sample can be useful to do things like resetting counters you may be running or clearing bool flags you may have set.
Key concepts in this example
Important related documentation
Import instructions
|