Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I'm trying to get into NinjaTrader programming and I see it uses C# which is programmed in MS Visual Studio. I find F# to be more friendly to my programming background, so I was wondering if I could use a combination of C# and F# (or just F#) since Visual Studio supports both.
Can you help answer these questions from other members on NexusFi?
I think it is possible though I have not jumped into it yet. But keep in mind NinjaScript (C#) does not require MS Visual Studio. It has its own builtin IDE.
Someone correct me if I'm wrong, but until NinjaTrader supports F# directly you may have to do something like this...
Build a .Net library in F# that is called from inside your strategy which is written in C#. Meaning, within your OnBarUpdate you might use a switch(Position.MarketPosition) block and for each Position case you would make a call to your F# code. Or if you wanted your entire code in F# you could just have your OnBarUpdate block call that.
Let us assume that you are American and that you go for a holiday in France. You will definitely find the English language to be more friendly to your cultural background, and you will wonder whether you can use a combination of English and French to communicate to French citizens.