D
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Calculating the Value of a Position
Collapse
X
-
Calculating the Value of a Position
Suppose I'm Trading /ES. I want to calculate the value of my position at any point throughout the trading day. If I have 1 contract and I'm up 1 pt when I look, and I know that /ES has a value of $50 per point, I know that I'm up $50. My question is if i wanted to write a script to do this automatically, how do I represent the $50 per point in ninjascript? Would it be something like the PerformanceUnit.Currency? Any help would be greatly appreciated.
DLast edited by dmking; 03-24-2019, 07:16 PM.Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Padan, Today, 02:02 AM
|
8 responses
20 views
0 likes
|
Last Post
by Padan
Today, 03:23 PM
|
||
Started by nandhumca, Today, 03:15 PM
|
1 response
2 views
0 likes
|
Last Post Today, 03:23 PM | ||
Started by PopovDS, 03-11-2024, 12:49 PM
|
3 responses
17 views
0 likes
|
Last Post
by PopovDS
Today, 03:16 PM
|
||
Started by Lele2k24, Yesterday, 11:24 AM
|
12 responses
37 views
0 likes
|
Last Post Today, 03:07 PM | ||
Started by RaygunWizzle, Yesterday, 08:52 PM
|
3 responses
11 views
0 likes
|
Last Post Today, 02:50 PM |
Comment