Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Script is Script is Script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Cool whitmark. Thanks for the contributions.
    Josh P.NinjaTrader Customer Service

    Comment


      #17
      Originally posted by whitmark View Post
      Sure 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
      This is really, really cool! Thanks for sharing it.

      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


        #18
        That is correct, EW, the version I submitted resets the plotted equity curve to zero at the start of each session.
        whitmark
        NinjaTrader Ecosystem Vendor - Whitmark Development

        Comment


          #19
          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


            #20
            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 XXtrader, Yesterday, 11:30 PM
            2 responses
            11 views
            0 likes
            Last Post XXtrader  
            Started by Waxavi, Today, 02:10 AM
            0 responses
            6 views
            0 likes
            Last Post Waxavi
            by Waxavi
             
            Started by TradeForge, Today, 02:09 AM
            0 responses
            11 views
            0 likes
            Last Post TradeForge  
            Started by Waxavi, Today, 02:00 AM
            0 responses
            2 views
            0 likes
            Last Post Waxavi
            by Waxavi
             
            Started by elirion, Today, 01:36 AM
            0 responses
            7 views
            0 likes
            Last Post elirion
            by elirion
             
            Working...
            X