would be great if you would include unrealized in cashvalue for sim in future....much more realistic
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Replay101 CashValue
Collapse
X
-
Not through a strategy or indicator.Originally posted by ATI user View PostRay
do we have access via code to the values in market analyzer?
this would make my life a lot easier as MA seems to be right all the time...while CashValue is not....plus I would not have to keep track of multiple unrealized atm positionsRayNinjaTrader Customer Service
Comment
-
sorry to keep whipping this dead horse....at the same time it is driving me crazy
the attached pic is from cash trading....zenfire feed
270 is correct gross
231.60 is correct net
why can not the realized in charttrrader and Accounts tab reflect the same value as realized and ProfitLoss in market analyzer
in other words, why not make it all consistent with correct number in MA?
NT is calculating the right number and posts it wrong in 2 out of 3 places
Comment
-
RayOriginally posted by NinjaTrader_Ray View PostNot through a strategy or indicator.
I am at an impasse. I need access to the UnrealizedPnL value (during multi-lot atms) from the Market Analyzer screen during Market Replay....or all my simulations are useless.
I am willing write whatever C# or .NET code I have to if you would please tell me where the value is. Clearly you are printing it correctly, so it is correct somewhere.
Otherwise all I can do is single lot testing which is useless...i.e. does not make money. I need to start with 3+ lots initially and then add 4+ lots later...etc.
I realize this is outside of the main/supported bugs in NT7 beta...sorry....it is just that I am stuck without it. I am sure others would benefit from that value also. In fact, I do not know how you can do valid simulations without the number....unless you only trade 1 lot atms.
Thanks
Comment
-
If you have a 3 lot atm (with 3 step target...i.e. each lot has a diff stop strat so gets stopped out a different times) filled...and no stops are hit....then charttrader will show the pnl for all 3 lots and so will MA.....if the first lot gets stopped out.....charttrader shows the pnl of the 2 open lots....MA shows the same number in Unrealized plus the pnl of the stopped lot.Originally posted by NinjaTrader_Josh View PostATI user,
Have no been following this thread intimately, but could you not use this? GetAtmStrategyUnrealizedProfitLoss()
Not sure why you feel multiple lots would impact the use of this method.
If you are trying to access the combined value of all 3 lots (i.e. 2 open 1 closed) to make a decision to exit on drawdown/risk/pnl target, you can not, in MR, because GetAtmStrategyUnrealizedProfitLoss only gives you the 2 open lots....the realized is ignored because the atm strat is not empty...i.e. still 2 of the 3 lots running.
This sounds like a small deal until you are trading 8 lots, have 1000 realized and 1000 unrealized and can not exit on drawdown from the total 2000 or as a profit target of 2000 because the code only has access, in a multi lot situation, to the unrealized portion of the atm and the code therefore thinks the total is 1000 and not 2000....which of course makes the NT simulator totally useless for this kind of strategy as the code never knows where the actual pnl for the session is.
In real time trading in a cash acct, NT7 will work off the actual cash acct balance received in real time from the broker....comparing that to the cash bal at start of session resolves the issue....however....I would prefer to test 8-10 lot strats in sim before using them in cash. Can not be done unless you make the Realizedpnl portion of a multilot atm accessible from code.Last edited by ATI user; 01-20-2010, 04:29 PM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
628 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
359 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
562 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
568 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment