I'm new here, just giving heavy test of migrating code from TradeStation to Ninja.
I have two questions about identifying the equivalent functions in Ninja that I use in TS.
TS has a function called ExitsToday, which gives the number of trade exits that have occurred in 24 hr period. ExitsToday(0) is current 24hr, ExitsToday(1) is previous 24hr. The 24hr period begins and ends at midnight! Is there anything equivalent to that in Ninja Script?
TS has a function called HighD/LowD. These return the previous High of day being referenced. Again HighD(0) current 24hr, HighD(1) previous 24hr, etc.
Is there anything equivalent to that in NinjaScript. I couldn't see anything that was obvious that equivalent.
It would probably be possible to write the script to support both, but that will take a little work and thought if there was already something available, I would obviously use that instead.
Thank you for your help!
Dennis
Comment