Announcement

Collapse
No announcement yet.

Realtime calc deformity for my code ???

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

  • Realtime calc deformity for my code ???

    This MACD code behaves different under Realtime conditions, first picture is the Error view, view lowest shown indicator.

    Second piture shows correct behaviour.

    Code attached.

    Whats wrong with code.
    Attached Files

  • #2
    First..
    Attached Files

    Comment


    • #3
      Second...
      Attached Files

      Comment


      • #4
        Digs
        That looks like the DiNapoli MACD but with a lot of missing code compared to the version I have.
        Try applying your conditions to the DiNapoli MACD attached to this message.
        Alex
        Attached Files

        Comment


        • #5
          Alex,

          The code is exactly the same...Please test it real time...

          EXCEPT for ...

          Line11: setColorPriceBars(true);


          Line90 : to Line 98:

          //Paint Price Bars
          if(SLine<0)
          setPriceBarColor(Color.red);

          else if(SLine>0)
          setPriceBarColor(Color.blue);

          else if(1==1)
          setPriceBarColor(Color.black);

          Comment


          • #6
            there is a difference in line 79

            if (nState == BARSTATE_NEWBAR) {
            is missing,

            line 84

            } is missing

            maybe that is part of the issue

            Comment


            • #7
              Looks ok to me...

              Comment

              Working...
              X