Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT6 hangs if I exclude the if (!historical) - Why?

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

    NT6 hangs if I exclude the if (!historical) - Why?

    I resolved my problem by if (CurrentBar > n) I just need to make sure there is sufficient history loaded to pass n. Thank you anyway if too busy to respond to this. I understand. I am waiting for a resolution to NT7 Hanging when I try to edit my indicators.

    I would prefer to not wait for the next bar when a chart is loaded is there another way to if (bar before !historical or the last historical bar?)
    p.s. it ran fine without it in NT7
    p.s.s. CalcTakeProfit is a method included as a double just before properties section to calculate takeprofit based on pivot positions.

    if (!Historical)
    {
    if (SMA(50)[0] > SMA(200)[0])
    Plot0.Set((CurrentBar - myTemp)/
    6);
    else
    Plot0.Set(-1 * ((CurrentBar - myTemp)/6));

    myTempstring =
    "+ " + Math.Round((CalcTakeProfit(1,true) - Close[0])/(TickSize),0).ToString() +
    " | " + Math.Round((CalcTakeProfit(1,false) - Close[0])/(TickSize),0).ToString();
    DrawTextFixed(
    "MyFixedStringTop", myTempstring, TextPosition.TopRight);
    }
    Last edited by ohowie; 05-26-2010, 12:02 AM. Reason: used a work around

    #2
    Originally posted by ohowie View Post
    I resolved my problem by if (CurrentBar > n) I just need to make sure there is sufficient history loaded to pass n. Thank you anyway if too busy to respond to this. I understand. I am waiting for a resolution to NT7 Hanging when I try to edit my indicators.

    I would prefer to not wait for the next bar when a chart is loaded is there another way to if (bar before !historical or the last historical bar?)
    p.s. it ran fine without it in NT7
    p.s.s. CalcTakeProfit is a method included as a double just before properties section to calculate takeprofit based on pivot positions.

    if (!Historical)
    {
    if (SMA(50)[0] > SMA(200)[0])
    Plot0.Set((CurrentBar - myTemp)/
    6);
    else
    Plot0.Set(-1 * ((CurrentBar - myTemp)/6));

    myTempstring =
    "+ " + Math.Round((CalcTakeProfit(1,true) - Close[0])/(TickSize),0).ToString() +
    " | " + Math.Round((CalcTakeProfit(1,false) - Close[0])/(TickSize),0).ToString();
    DrawTextFixed(
    "MyFixedStringTop", myTempstring, TextPosition.TopRight);
    }

    Comment


      #3
      Thanks roonius -

      ohowie, did you check into the snippets roonius pointed you to?

      For the 'Edit Indicators hanging' in NT7 - is this happening still for you on latest B16? Are there any log entries / errors or is it just freezing in the process?

      Comment


        #4
        I need a little time. I am trading out of necessity. I returned from Innsbruck to take care of mom and hope to make a real go at this. I have great custom indicators that ring my cell so i can run from her house (I bought the house accross the street) and get to the computer to trade. That problem made me nervous so I re-wrote (basically cut and paste user coded part of the indicators from NT7 into new NT6. Got that working. I will definately follow thru with previous questions because NT7 is by far the best product out there (well, almost out there). I get so much help from you guys it is the least i can do. Back at you in a couple of hours Bertrand. Definately tonight. Thanks again to everyone on your team for all the help. Howie

        Comment


          #5
          Roonius links were a better solution and I have changed mine to his if statement which does work beautifully.

          I have responded to Jasons email Bertrand. There were no NS assemblies and I have offered to help find the problem (I may have caused it) as apposed to just reinstalling since I did copy from the .cs files in 7 the user coded areas into a new nt6 indicator successfully, compiled, and all is good. I am active on NT6. I feel trying to help you guys is more important than getting my NT7 operational. its the least i can do for all the help you guys give me. I am awaiting a reply from Jason. Cool? Howie

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          579 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          334 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          554 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X