I hope you're having a great day!
I've been working on this new strategy, which is taking me ever deeper into NinjaScript land...
I've been looking at the "Minimum Bars Required" parameter in the Strategy Edit window accessed by selecting the "Strategies" tab on the control center, and right clicking.
I've scoured through a ton of other posts regarding this parameter, but I still have a few unanswered questions regarding it. I'm hoping to benefit again from your wonderful informational generosity.
Here are my specific questions regarding this parameter. I would love it if someone would tackle each question for me so I get a better understanding of it. This is one of those things regarding which a simple "nudge" just will not do.
Okay... here we go...
2.) If the answer is "trading session," does it base that calculation on the particular "session template" being used on the chosen chart? Does this calculation change based on the trading session template, or is it calculated from an internally coded market schedule?
3.) If I have an indicator which has "300" as its period, do I have to set the "Minimum Bars Required" parameter to "300?" If so, why? (I bet you can tell by now I'm a big "why" person. Drives people mad!)
4.) If the strategy contains indicators which have "300" as their period amount, and I set the "Minimum Bars Required" parameter to "300," will the Strategy not place an order until it has waited 300 bars?
5.) In the above scenario, where I have an indicator with "300" as its period amount, if I set "Minimum Bars Required" to less then "300" (for example... I set it to just 2 bars), how will that affect live trading specifically?
6.) If I have one indicator, which has as its parameter "300," and another one, which has as its parameter "250," does that mean I need to wait "550" bars?
7.) This is a BIG one... Does "Bars Required" reset every time I make an update to the code and reload NinjaScript via F5? In other words, let's say I've had the strategy running, and I've waited 299 bars, and I notice something which needs to be altered, and I alter it, then reload the NinjaScript to update the chart... does that reset the counter... and now I have to wait another 300 bars before I can trade?
8.) Since I use 6 range bars in this new strategy, and since it can take forever for just one bar to form, should I just give up now and go jump under a fast-moving bus?
I am grateful for your assistance in this great learning journey to better understand and implement NinjaScript.
-V
Comment