Noise area indicator

Forums ProRealTime English forum ProBuilder support Noise area indicator

Viewing 13 posts - 1 through 13 (of 13 total)
  • #238467

    Hi,

     

    Trying to create a ”Noise area indicator” like the one attached in the paper below. I don´t get the calculation for the range done properly. Read it, and look at the attached picture.

    https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4824172

    The most important metrics is as follows.

    We have to mathematically define a region where prices are expected to oscillate under conditions of balanced buying and selling pressures. We refer to this region as the Noise Area, an equilibrium zone where markets do not exhibit any exploitable intraday trend.

    Practically, the market demonstrates a lack of abnormal imbalances when the intraday

    movement from the RTH Open is less than the average movement observed on the same intraday

    time interval over the previous days. We define the Noise Area as the space between

    2 boundaries. These boundaries are time-of-day dependent and are computed using the

    average movements recorded over the previous 14 days.

     

    Thank you!

    Best regards.

    #238485

    I asked chatgtp and got this

     

    #238534

    ChatGPT has not a thourogh knowledge of the ProRealTime (also called ProBuilder) language, so it uses some generic instructions assuming most languages have similar instructions (which generally is).

    After a few modification this is the working code:

     

    #238552

    I have tried Chat GPT to. Get some strange results at the beginnning but its get´s better when you use Pro language promts.

    @robertogozzi Unfortunately, can´t see your corrected chat GPT code worked either. I only get a red line around zero on the index both on price or in a new panel.

    Here is my one, but first. I´m not shore the calculation is right. And then i do not get it right when overlay it on a pricechart…

     

    #238610

    The code works, as you can see from the attached pic, there are no more errors.

    Probably it doesn’t do what he expected, but that’s another question, as I don’t understand what he wants.

     

     

    #238719

    Yes, you are right @<span class=”bbp-author-name”>robertogozzi </span>it´s working! I was in the wrong timeframe at the beginning. Therefore i saw nothing. Then i changed your code to plot drawsegments instead of drawhline. Now we have done some progress here.

     

    But, as you see in attached pictures something in the calculation is not correct. In the pics both show the same day, 31 of jan. 2022. from RTH Open 9:30 to close 16:00.

    I will try to explain more in detail how i think it should be.

    Definition: The Noise Area represents a price zone where the market is considered in balance—no significant demand or supply imbalance is occurring. Outside this area, deviations in price are considered exploitable trends, while within the zone, movements are attributed to market noise, and no trades are made.

    Step 1: For each day and time, the absolute move from the RTH OPEN that day is calculated for the last 14 days.

    Step 2: The average move over the last 14 days for each time of day is then calculated.

    Step 3: The Upper and Lower boundaries of the Noise Area are calculated using the Open price of the current day, adjusted by the average move until that time. Typically, the average intraday movement from
    the Open tends to increase over time, peaking at 16:00.

    Step4: (Maybe hard to achieve?)To make the evidence of potential imbalances more robust, include the closing from yesterdays RTH close price in
    our calculation. This adjustment accounts for overnight gaps, which in themselves often
    signal imbalances. For instance, following a gap-down event, the Upper Boundary of the
    Noise Area is adjusted upward by a quantity equal to the gap size, and conversely for a
    gap-up event, the Lower Boundary is adjusted downward.
    With these considerations, the revised mathematical equations for the Upper and Lower Boundaries, including adjustments for overnight gaps, are as follows:

    UpperBoundt,HH:MM = max(Opent,9:30, Closet−1,16:00) × (1 + σt,9:30−HH:MM )
    LowerBoundt,HH:MM = min(Opent,9:30, Closet−1,16:00) × (1 − σt,9:30−HH:MM )

     

    Hope this helps and make it more clear.

    Thanks in advance!

    #238734

    What is RTH?

     

    #238740

    RTH is the US term for Regular Trading Hours.

    #238757

    The first two steps are clear.

    Can you better explain “Step 3:  The Upper and Lower boundaries of the Noise Area are calculated using the Open price of the current day, adjusted by the average move until that time. Typically, the average intraday movement from
    the Open tends to increase over time, peaking at 16:00“?

    #238770

    Step 3 is more a clarification of step 2. Line below is from the source of the original strategy PDF:

    Typically, the average intraday movement from the Open tends to increase over time, peaking at 16:00

    Meaning for example: Take SP500. Say the average range from Open 9:30 to 9:35 is 5 points. It is highly probable thats the average range from Open 9:30 to Close at 16:00 is alot bigger because price has had much longer time to move away and the range is then bigger.

    This is possible to see in the two compared pictures i show in one of the earlier posts showing  your coded noise area that expand around 5-10 points beside the picture of the noise area from the strategy PDF that have a range around 110 points at 16:00. Sure, its hard to say exactly because

    the scale on that picture is not the same but you can see it roughly. Hope it helps.

    #238808

    No, it’s not much clear.

    Let’s begin anew:

    1. what data do you want to be plotted in the highligheted rectangle (attached pic)
    2. hopw is those data related to the previous session?
    3. what is incorrect in the data you plotted?

     

    #238818

    Okey,

    We try again.

    I want to be able to see the 14 days average move from today’s open 9:30 to any time (depending on bar size) within  regular trading hours drawn by segments on the chart. See my attached picture. Your indicator is in the backround, and i have adjusted that to show 3 day average in the code beacuse its easier when we see everything in the same picture. Thats only for this example.

    I have tried the best i can to explain in the picture. Hopefully its easier to explain there.

     

    #238879

    I tried to code this one, but still I don’t know what has the average of the previous 14 periods to do with todays’a average?

    You now introduced another 3-period lookback. Is that the same periods as the 14-periods or an additional lookback period?

    Can you explain what data has to be dealt wit each session that needs to be used in the future sessions?

    What happens at the start of each session?

    What is to be calculated every bar of the new session?

Viewing 13 posts - 1 through 13 (of 13 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login