Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Shared Rectangle Apps with Wrong code

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

    Shared Rectangle Apps with Wrong code

    Dear Support,

    A shared indicator AddPriceTargetToRectangles and a drawing tool RectangleWithPriceTarget by NinjaTrader_PatrickH implement an approach laid out in the June 2007 Stocks and Commodities article titled "How Effective Are Rectangles?" by Markos Katsanos.

    The above scripts define a factor used to calculate the predicted price as:

    Math.Pow(2.3 * rectHeight, .8); (Wrong)

    This formula calculates a wrong value for the factor.

    The correct formula as defined in the referenced article should be coded as:

    2.3 * Math.Pow(rectHeight, .8); (Correct)


    Please notice these expressions calculate different values as the article defines the factor as:

    b = 2.3 *(Height)^0.8 that is different from
    b = (2.3 * Height)^0.8 used in the codes referenced.


    Ref:



    #2
    Hi, thanks for posting. I will make the code changes and re-upload the correct scripts.

    Best regards,
    -ChrisL
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChrisL View Post
      Hi, thanks for posting. I will make the code changes and re-upload the correct scripts.

      Best regards,
      -ChrisL
      Hi, Chris,

      Please note that the indicator posted is for NT7 while the Draw Tool is for NT8. Perhaps it is worthwhile to post a NT8 version of the indicator that will draw the Rectangle and the price targets as discussed in the article of TASC June 2007.

      Cheers!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by samish18, Today, 01:01 PM
      0 responses
      5 views
      0 likes
      Last Post samish18  
      Started by WHICKED, Today, 12:56 PM
      0 responses
      7 views
      0 likes
      Last Post WHICKED
      by WHICKED
       
      Started by Spiderbird, Today, 12:15 PM
      2 responses
      11 views
      0 likes
      Last Post Spiderbird  
      Started by WHICKED, Today, 12:45 PM
      0 responses
      8 views
      0 likes
      Last Post WHICKED
      by WHICKED
       
      Started by FrazMann, Today, 11:21 AM
      2 responses
      8 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Working...
      X