(My first post as a new member -- hi everyone! Mike, this site is amazing, so much quality content...)
This video was very helpful for me, simply by going through the entire process from start to finish in a straightforward fashion. I appreciate that you took the time to capture a legible HD video. +1 for high-speed typing and compile-from-the-hip.
Now armed with some programming experience, and this video, I'm off to write my first ninjascript strategy.
(again: This site! Think of the dollars and years you've saved everyone by bringing this together in one spot...)
Hey - I am a newbie to Ninja trader platform. I have entered EXACTLY what Big Mike showed in the video but when I compile, I get this error no matter what I do:
Strategy\NewTest.cs The name 'be3' does not exist in the current context CS0103 - click for info 115 26
Strategy\NewTest.cs The name 'be3' does not exist in the current context CS0103 - click for info 116 19
Line 115 and 116 don't contain 'be3'. Is there some simple newbie thing I am missing?! Even if I completely remove be3 from the script and replace it with something else, I still get the same error. So I am mightily confused. Any help would be much appreciated .... Thanks!
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.
Thanks Mikewbjoh998 - I figured that part out, and checked everything. Still possible, of course (been down that road many times win other programming environments) but I'm guessing not. When I load a standard indicator like Bollinger and try to compile I get a similar error message, which leads me to believe something is wrong in general with my installation.
The following user says Thank You to WBJo for this post:
Hi Mike, Thank you for this video, it was really helpful.
I am wondering how I could program my own set of rule to "optimize on" like you did with " _mike_preferred" I don't have problem to program in C# and I already did some strategies who look profitable when I test them in the market replay.
But I would really like to be able to set my own set of rule for optimization.
Please help me with that.
You should be able to delete the following line because you don't enter a position with a similar name:
SetProfitTarget("target2", CalculationMode.Price, Close + ((Target1+Target2)*TickSize));
SetProfitTarget("target3", CalculationMode.Price, Close + ((Target1+Target2+Target3)*TickSize));