NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 03-08-2012, 04:28 PM   #1
coolmoss
Senior Member
 
Join Date: Dec 2007
Posts: 365
Thanks: 36
Thanked 28 times in 24 posts
Default Accessing SetStop value

I need to check the current stop loss price (which was set using SetStopLoss) against a potential new stop price.

What statement is used to access the already set stop loss value?

Thanks.
coolmoss is offline  
Reply With Quote
Old 03-09-2012, 05:17 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
Default

coolmoss, there would 2 ways to monitor this - either by tracking your own stop price in a variable and then using the variable to submit the SetStopLoss at the price level or you could monitor the SetStopLoss send order directly with the technique shown in the example below - http://www.ninjatrader.com/support/f...ead.php?t=5790
NinjaTrader_Bertrand is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing MarketDepth DionysusToast General Programming 11 09-09-2011 12:32 PM
Accessing TSSuperTrend Value tshirtdeal General Programming 3 04-04-2011 10:14 AM
Accessing indicator last value. freewind General Programming 1 02-20-2011 05:19 AM
accessing indicators velocity General Programming 7 02-22-2009 11:17 PM
Accessing one chart from the other... funk101 Strategy Development 1 10-10-2007 12:23 PM


All times are GMT -6. The time now is 04:05 PM.