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 inanazsocial, Today, 01:15 AM
      0 responses
      2 views
      0 likes
      Last Post inanazsocial  
      Started by trilliantrader, 04-18-2024, 08:16 AM
      5 responses
      22 views
      0 likes
      Last Post trilliantrader  
      Started by Davidtowleii, Today, 12:15 AM
      0 responses
      3 views
      0 likes
      Last Post Davidtowleii  
      Started by guillembm, Yesterday, 11:25 AM
      2 responses
      9 views
      0 likes
      Last Post guillembm  
      Started by junkone, 04-21-2024, 07:17 AM
      9 responses
      70 views
      0 likes
      Last Post jeronymite  
      Working...
      X