Hi, I’m developing custom bar type in desktop sdk. Now I need to add 5-9 custom inputs during selecting my bar type
but cant find how?
Sorry, BarTypes can only have 2 inputs.
Value, and Value2.
If you want, you could make a json style file for your custom inputs, suck it into NinjaTrader via c sharp file read, and then use those inputs in your BarType. But in the end, the end user would need to edit that json file to do the extra configuring, and depending on your target audience, it might not be worth it. you might be able to trigger some external program on the state.Configure, which would open a program to allow the end user to set those values in the json file, save the file, load it back into Ninja, etc…
First of all thanks alot man for your valuable reply
Thanks for the suggestion. I’m just starting out into this ninjaecosystem and trying to implement different things. I’ll try out your answer to my change
Also, one more thing, I’m trying to build my custom bar type and was just using very basic implementation -
- using basebarperiod as 1min only
- isIntrday=false and isTimebased=false
- adding bars using just addbar function and directly using the ‘time’ parameter from onDataPoint for adding bars or updating bars
Now issue is bars are being plotted but the timestamp is same for all plotted bars which is starting bar time
how to fix this?
For quick chats can we connect directly for some 10-20 min on meet or maybe chat on tg
pls dm me on telegram
@SinghAsh006sSF