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

    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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      129 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      74 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      116 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      111 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      89 views
      0 likes
      Last Post CarlTrading  
      Working...
      X