View Full Version : parabolic sar stop
TomTheTrader
08-15-2008, 08:24 AM
Hello,
I am trying to create an automated ninja script. One part of the system requires to set a stop based upon the price data cross over the parabolic sar.
I do not see a way to make this happen using the script wizard. Any ideas, or would I need to add custom code after the fact?
thanks in advance,
TraderTom
NinjaTrader_Ray
08-15-2008, 08:40 AM
Hi TraderTom,
Would you so kind as to change your forum id to something else? We use "NinjaTrader_XXX" to identify staff member your current id is very close to our format.
Do you ONLY want a stop to be submitted on that condition? So until that condition occurs, there is no stop?
TomTheTrader
08-15-2008, 09:04 AM
My apologies. :confused:
Sure, if i saw a way to do it. There does not appear a way to change the login name in the forums? IF an admin needs to do it, simply use "TraderTom" ....
NinjaTrader_Ray
08-15-2008, 09:30 AM
No problem at all. I will change it to the name you requested. Will be done in ten minutes.
NinjaTrader_Ray
08-15-2008, 09:32 AM
"TraderTom" is already in use, do you have another name you would like to use?
TomTheTrader
08-15-2008, 10:00 AM
ok Ray...
I have emailed NT Support for resolution.
TomTheTrader
08-15-2008, 11:08 AM
Hi TraderTom,
Do you ONLY want a stop to be submitted on that condition? So until that condition occurs, there is no stop?
....
Yes, that is the condition that I want checked. When LAST PRICE crosses under PatabolicSAR, STOP.
I may want to add to it later, but for now, I am just trying to build the basic strategy shell.
I am looking in the "strategy action" section of the script wizard, and intuitively I am looking in the "trailing stop" section, if that is where I should be?
Thank you for your time.
NinjaTrader_Ray
08-15-2008, 12:17 PM
See if this points you in the right direction..
http://www.ninjatrader-support.com/HelpGuideV6/ConditionBuilder-IndicatorToValueComparisons.html
http://www.ninjatrader-support.com/HelpGuideV6/ConditionBuilder-CrossOverConditions.html
TomTheTrader
08-15-2008, 12:35 PM
See if this points you in the right direction..
http://www.ninjatrader-support.com/HelpGuideV6/ConditionBuilder-IndicatorToValueComparisons.html
http://www.ninjatrader-support.com/HelpGuideV6/ConditionBuilder-CrossOverConditions.html
Yes, that is fine, but these are examples from the "condition builder" ... For stop order conditions, don't we need to be in the "stops and targets" section of the wizard?
NinjaTrader_Ben
08-15-2008, 01:02 PM
Hello,
It depends on what you mean by "stop" and how you want to do it. You can place an order with a stoploss or you can place a seperate stop market or stop limit to protect your order.
Generally though you will want to build the crossover condition per the links Ray provided below then place an order.
If you want that order to have a stoploss, target, or trailing stop you will enter this into the Stops and targets section.
You tie the original order to the stops and targets with the Signal name.
TomTheTrader
08-15-2008, 01:42 PM
Thanks for the follow up Ben. I think I see that now in the conditions and actions, basically I set an "do the following" ... "order management" ... let me test, but I think this is what I was trying to find. Thanks guys!!! :)