Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Script is Script is Script
Collapse
X
-
Originally posted by whitmark View PostSure thing Zoltran . . . here you go. It's just a proof of concept example that is a combination of the SampleMACrossover, SamplePnL, and the new SampleStrategyPlot reference examples and will only work with 6.5.1000.1. Enjoy!
Regards,
Whitmark
I hacked it together with a Forex chart I was testing and commented out this part, which I assume makes it cumulative from the start of the chart instead of resetting daily:
if (Bars.FirstBarOfSession)
{
priorTradesCumProfit = Performance.AllTrades.TradesPerformance.Currency.C umProfit;
}
The best use I've found so far is for changing the data series of a chart and being able to instantly see how it effects the profitability of the strategy...Last edited by Elliott Wave; 04-08-2008, 03:18 AM.
Comment
-
Thanks for the clarification. When it comes to NinjaScript, I'm still a white belt.
I'm curious if there's any way this PnL plot could be easily added to strategies from the strategy builder? I'm pretty sure this will be a standard part of every strategy I make in the future, and the easier the better...
I guess I could make it a code snippet, that might work.
Or what if this was converted into an indicator? Although it wouldn't do anything on its own, being an indicator would allow it to be used with the strategy wizard!
This plot also looks great as a bar graph instead of lines. It makes it look like a mountain of money!
Later today, I'll have a look at some of the other existing indicators, and see if I can tweak this to make negative PnL values plot red.Last edited by Elliott Wave; 04-09-2008, 10:26 AM.
Comment
-
red for negative equity
Hello
i really like the idea of plotting the equity curve on the chart, this really shows you clearly during which time of the day my system made profits...
would be nice if the equity curve would be red if it is underwater (below 0$)
just like the universal system:
cheers
peter
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by adeelshahzad, Today, 11:49 AM
|
1 response
3 views
0 likes
|
Last Post Today, 11:56 AM | ||
Started by spottysallrite, Today, 11:31 AM
|
1 response
5 views
0 likes
|
Last Post Today, 11:43 AM | ||
Started by johnMoss, 03-04-2024, 01:53 PM
|
2 responses
32 views
0 likes
|
Last Post
by Overnhou
Today, 11:21 AM
|
||
Started by Padan, Today, 02:02 AM
|
5 responses
17 views
0 likes
|
Last Post Today, 11:14 AM | ||
Started by Lele2k24, Yesterday, 11:24 AM
|
8 responses
29 views
0 likes
|
Last Post
by Lele2k24
Today, 11:00 AM
|
Comment