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.
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.