NexusFi: Find Your Edge


Home Menu

 



Showing results 1 to 5 of 5
Search: Posts Made By: gregid
Forum: Traders Hideout May 4th, 2015, 11:51 AM
Replies: 32
Views: 21,537
Posted By gregid
Here is the reference in NT help guide: ...

Here is the reference in NT help guide:
NinjaTrader Version 7 (http://www.ninjatrader.com/support/helpGuides/nt7/index.html?multi_time_frame__instruments.htm)
Forum: Traders Hideout May 4th, 2015, 11:46 AM
Replies: 32
Views: 21,537
Posted By gregid
The problem is in this line: allPositions +=...

The problem is in this line:

allPositions += position.GetProfitLoss(Close[0], PerformanceUnit.Currency);

What you need to do is provide the right price (Close[0]) for the instrument.
So in...
Forum: Traders Hideout May 4th, 2015, 11:14 AM
Replies: 32
Views: 21,537
Posted By gregid
have you tried adding multiple instruments as...

have you tried adding multiple instruments as suggested in my second post?
Forum: Traders Hideout April 30th, 2015, 08:13 PM
Replies: 32
Views: 21,537
Posted By gregid
The problem seems to be that it takes the...

The problem seems to be that it takes the Close[0] from current strategy (and its instrument) and applies the calculation to other instruments. For this to work you would have to provide the right...
Forum: Traders Hideout April 30th, 2015, 07:19 AM
Replies: 32
Views: 21,537
Posted By gregid
I gather you are talking about NinjaTrader? If so...

I gather you are talking about NinjaTrader? If so then you can current unrealized PnL with:

double curPosition = (double)Position.GetProfitLoss(Close[0], PerformanceUnit.Currency);

If you are...
Showing results 1 to 5 of 5

What unexpected challenges have you encountered while trading on a "Funded Trader" platform?

 


 
 


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top