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 > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 01-26-2009, 05:15 PM   #1
Trade1953
Member
 
Join Date: Feb 2008
Location: Wellsville, Ut
Posts: 81
Thanks: 0
Thanked 0 times in 0 posts
Default Realized PnL with ATM in Script

Hi,
I've used the Sample Price Modification strategy code to have an autostrategy stop trading if it accumulated X amount of Real PnL. ie, quit trading if Real PnL > $100.

Now I have an autostrategy calling an ATM and the Real PnL stop trading limit doesn't work. It looks like the Real PnL is attributed to the ATM it calls instead of the strategy itself, so the strategy doesn't see any Real PnL and just keeps on rolling.

Is there a way to still have the autostrategy quit trading after X PnL with an ATM being called? I guess it would have to be able to add up the ATM Real PnL and recognize that somehow ???? If so, how would you do that?
Thanks,
Joe
Trade1953 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
Unrealized and Realized PnL in points/pips and % in stead of only $ whitegun Suggestions And Feedback 22 11-14-2008 05:54 PM
problems wit realized PnL dedomraz Miscellaneous Support 9 09-23-2008 10:11 AM
ATM from script MelbourneRich Automated Trading 1 09-19-2008 09:38 AM
ATM Strategy with Ninja Script suitguy1 Automated Trading 1 07-22-2008 01:34 PM
Why did you remove "Realized + Unrealized PnL" from the Columns list? shawnj Market Analyzer 7 05-28-2008 11:34 AM


All times are GMT -6. The time now is 09:55 PM.