Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Total Net Profit != Cumulative Profit?
Collapse
X
-
Thanks Bertran, by the way I want to know if there a way that I can add all the value that has been recorded in a list?
-
Hello Bertran, can I ask for a hint how to globally store the values of my strategies for reference? And how to add all the values in one text file line by line. I have 5 strategies running on test then I will store the 5 values in one line using splitting and then I want to add it all then the sum would be in the split 6. Is this possible? Or is there a way that I could add all the values in one line each bar? Sorry for my tricky thing.Originally posted by NinjaTrader_Bertrand View PostFlattenEverything will disable your strategy, so to have it trade again, you would need to restart it first.
A hotkey for FlattenEverything can be setup in NT7's hotkey manager - http://www.ninjatrader.com/support/h...ey_manager.htm
Unfortunately NinjaScript strategies would not cross communicate, so you could not access the PnL of strategy A in strategy B - a workaround could be using txt files to 'globally' store the values for reference.
Comment
-
I would unfortunately not have a complete coded out sample available for you, the basic idea is to store what you need globally in a text file so other scripts could access it then - if you feel this would be above your current coding skills and wish to have it professionally programmed for you, contacting a consultant would be a good route to choose - http://www.ninjatrader.com/partners#...pt-Consultants
Comment
-
Hello, I have a question. Is there a way to check weather my target 1 or target was hit? I know that there is a GetAtmStrategyPositionQuantity method to check the quantity and I am also assuming that there is also a method for checking a target.
Comment
-
Question:
How can I connect my current DataSeries value to the last 3rd prior bar value of the same DataSeries.
3rd bar prior value: j = 23;
current bar value c = 2;
myDataSeries.Set(j,c);
myDataSeries.Set(c);
Is it correct? I want my DataSeries to plot only in every 3 bars ellapse then 3rd bars back should connect to the current bar.


Comment
-
yes, you can check for the stop and target order fill state of your ATM template generated orders - http://www.ninjatrader.com/support/h...rgetorders.htm
Correct for the dataSeries, you would 'connect' then the current value to a value x bars ago - an example would be the plot color sample we have up for 6.5 still - http://www.ninjatrader.com/support/f...ead.php?t=3227
Comment
-
Bertran can I ask help on you on make a strategy to run only until May 1,2011 and it will never be used again?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
649 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
370 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 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
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
576 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment