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 charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
60 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
148 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
162 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
97 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
284 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment