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!
See more
See less

Partner 728x90

Collapse

How to change tag in loop with drawing object

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

    How to change tag in loop with drawing object

    Hi everyone

    This one is quite beyond me:

    I have a loop, roughly as below:
    Code:
    for (int i = 1; i <= LoopLength; i++)
            {    
            if(zseries[i] < zseries[i - 1])
            DrawDiamond([B]"[COLOR=Blue]tag[/COLOR]",[/B] false, ( (int) yseries[i] + 1 ), zseries[i], Color.Red);
            }
    This loop works (if I substitute integers for the 'i's, it works a treat) except that I have no idea how to change the tag name for each run of the loop. (If the tag name remains the same, the method fails.)

    Is there a way of doing this? Maybe it's simply impossible but I'd be very grateful if anyone could give me a pointer if it is possible.

    Thanks in advance.

    #2
    i.ToString()?
    eDanny
    NinjaTrader Ecosystem Vendor - Integrity Traders

    Comment


      #3
      Thanks, Danny. That's exactly what I was looking for.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Haiasi, 04-25-2024, 06:53 PM
      2 responses
      16 views
      0 likes
      Last Post Massinisa  
      Started by Creamers, Today, 05:32 AM
      0 responses
      4 views
      0 likes
      Last Post Creamers  
      Started by Segwin, 05-07-2018, 02:15 PM
      12 responses
      1,785 views
      0 likes
      Last Post Leafcutter  
      Started by poplagelu, Today, 05:00 AM
      0 responses
      3 views
      0 likes
      Last Post poplagelu  
      Started by fx.practic, 10-15-2013, 12:53 AM
      5 responses
      5,407 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Working...
      X