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 > Strategy Development

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

Reply
 
Thread Tools Display Modes
Old 06-13-2007, 02:57 AM   #1
mattisa
Junior Member
 
Join Date: Jun 2007
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default last trade

Good morning, I need a piece of information:
-I would like to know in what way it is possible to make recognize with some strategy if the last done trade is in profit or in loss.
Many thank
. Matteo
mattisa is offline  
Reply With Quote
Old 06-13-2007, 07:58 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

For now you can monitor the following property. Store the value when position goes from flat --> long or short. Then once flat again, check the value again and compare to the stored value.

CumProfit - http://www.ninjatrader-support.com/H...CumProfit.html
NinjaTrader_Ray is offline  
Reply With Quote
Old 06-13-2007, 09:54 AM   #3
mattisa
Junior Member
 
Join Date: Jun 2007
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks Ray.
mattisa 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
Last Trade Data MindSabre General Programming 3 04-29-2007 12:45 AM
deleting spurious trade from sim trade list Arbitrageur Miscellaneous Support 2 09-12-2006 03:59 AM
Trade Setup longtex Miscellaneous Support 2 08-15-2006 03:45 AM
Trade Synchronization glam_100 Automated Trading 2 06-15-2006 01:37 AM
What Instruments do You Trade??? chipper338 ATM Strategies (Discretionary Trading) 5 11-30-2004 04:30 AM


All times are GMT -6. The time now is 02:00 AM.