I'm trying to define in my strategy a holding period, which means that after opening a position I want my strategy to sleep for n days and then close the position.
I'm quite new to Ninja and I didn't find a function for that. I imagine that it should be possible to either ask the program to sleep, or to calculate when was the last long/short operation.
Thanks very much for your help!

Comment