NinjaTrader.Cbi and some commands not recognized using VS 2017
09.06.2021 05.45

Algorithmic Trading with NinjaTrader

NinjaCoding friend


I tried to copy your lesson at  step by step, but there are some items not recognized and causing errors. NinjaTrader.Cbi is not recognized. Commands like Initialize(), ClearOutputWindow(), OnBarUpdate(), even Print is also not recognized. I am a beginner and am stuck at this lesson, please explain why this code is not working and how can I make it work? Thank you.

  • Yuri Zolotarev
    09.06.2021 10:06

    You might want to check if the references are imported correctly. They would light up in red if not. Try re-importing, deleteing and adding them one more time if that is the case.

  • NinjaCoding friend
    10.06.2021 01:03

    Thank you Yuri, but I'm a complete beginner with Visual Studio and C#. Do you mind instructing me how I can reimport references? Also, do I need to re-install Ninjatrader 7?

  • Yuri Zolotarev
    28.06.2021 21:58

    You would usually re-import references by deleting them from the reference list first and then just referencing them again. I don't think this would require Ninja installment again.