PDA

View Full Version : help creating a strategy


kishisaki
05-16-2010, 08:00 PM
hi would like to create a ninja script but i am having a hard time doing so.
what i would like to do is for example:

when ES price goes to 1200.50 only then place a long position at 1200.00 and if 1200.00 is filled only then place profit target at 1204.00 and a stop loss at 1199.50.

can anyone help me create a script that accomplish those task? so i can see how its done so that i can do it myself in the future.

thank you very much.

NinjaTrader_Bertrand
05-17-2010, 07:30 AM
Welcome to our forums here kishisaki, you could check into this simple sample provided in my attachment created with the NinjaTrader strategy wizard, you should see some trades taken on May 3rd on the June ES contract.

Here's a walkthrough the wizard and how to create a strategy via point and click, with the later option to add via custom programming -

http://www.ninjatrader-support.com/HelpGuideV6/WizardScreens.html

kishisaki
05-17-2010, 09:25 PM
thank you very much for you help.

how do i go on about testing it?

NinjaTrader_Bertrand
05-18-2010, 04:40 AM
You would need to download the zip to your desktop and then import it via File > Utilities > Import NinjaScript. After this is done you could right click on your chart while connected live and this sample from the strategies list to review the trades taken.

http://www.ninjatrader-support.com/HelpGuideV6/RunningANinjaScriptStrategyFromAChart.html