NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 02-11-2008, 01:40 PM   #1
Folls
Senior Member
 
Join Date: Jan 2006
Location: Chicago, Illinois, USA
Posts: 126
Thanks: 0
Thanked 1 time in 1 post
Default GetAtmStrategyStopTargetOrderStatus("STOP2", "idValue")

Hi,

I am using AtmStrategyCreate() to enter with a strategy previously created in the DOM. I then manage in the DOM.

Is it possible to know in my program the current stoploss location even if it's moved?

Would I do it like this?

if ((atmStrategyId.Length > 0) && (GetAtmStrategyPositionQuantity(atmStrategyId) != 0))
{
string[,] orders = GetAtmStrategyStopTargetOrderStatus("STOP2",atmStr ategyId);
Print("Current Stop is " + orders[0, 0].ToString());
}

I'm trying to do it like that and I keep getting "0" instead of the stop location.

Thanks,

Folls
Folls is offline  
Reply With Quote
 

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
"Add Target" or "Split Target" in dynamic Super DOM Wataizo SuperDOM and other Order Entry Windows 5 01-16-2008 01:53 PM
2 instances of strategy when clicking "apply" and "okay" dtf139 Historical NinjaTrader 6.5 Beta Threads 2 01-07-2008 11:25 PM
Line "names" in Indicator Box change to "Line" after modification higler Charting 3 05-02-2007 06:05 AM
Multiple Simultaneous Trades at "Exit on Close" With Setting "1 Entry Per Direction&q KBJ Strategy Analyzer 1 04-27-2007 05:34 AM
Control center "strategies" tab, "Positions tab, and "Market Analyzer" not funk101 Strategy Development 6 04-10-2007 03:44 AM


All times are GMT -6. The time now is 02:29 PM.