Announcement

Collapse
No announcement yet.

Limitation on Moving average and two time frames

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

  • Limitation on Moving average and two time frames

    I have a custom study that I would like to run intra-day in the direction of the long-term trend. I use 1 minute bars for the study and would like to trade it in the direction of the 10 day moving average. I seem to able to specify a moving average and have the number of bars up to 1000, but that seems to be the limit. To get to 10 days, I'd need about 3900 bars in the average.

    Can I somehow integrate an indicator based on daily data together with a study that is based on 1 minute charts?

    Second question: What is the maximum number of bars allowed in the standard built-in moving average study?

    Thanks,

    Mon_Trader

  • #2
    Mon_Trader
    In this thread you can find an efs programmed by JasonK that plots a daily MA on intraday charts.
    Alex

    Comment


    • #3
      Missing getPrevDayOHLC.efs

      I went to the link suggested and found exactly what I was looking for. However, while getTodayOHLC1.efs was there to copy down, the getPrevOHLC.efs was a blank efs. DailyMAonIntraday2.efs was in good shape.

      I've revised and moved DailyMAonIntraday2.efs into my study and think the concept should work. Looking through the code, I'm not sure why getPrevOHLC.efs is included through a callFunction. doesn't the getTodayOHLC1.efs call each of the days inside the For loop?

      Thanks,

      MonTrader

      Comment


      • #4
        As an aside if you plan to use DailyMAonIntraday2 with sources other than Close I would suggest changing "Close" in Line 39 to nPriceSource.
        This way when entering another Source it applies also to the call() for getTodayOHLC1.efs
        Alex

        Comment


        • #5
          I already changed the nPriceSource

          I had the same idea as you to use other price sources. I prefer OHLC/4 in my studies.

          We're out of order on the thread, but any thoughts on why the getPrevOHLC.efs is blank?

          Thanks,

          MonTrader

          Comment


          • #6
            Hello Mon_Trader,

            I believe you meant, getPrevDaysOHLC.efs. You can find that formula here.
            Jason K.
            Project Manager
            eSignal - an Interactive Data company

            EFS KnowledgeBase
            JavaScript for EFS Video Series
            EFS Beginner Tutorial Series
            EFS Glossary
            Custom EFS Development Policy

            New User Orientation

            Comment

            Working...
            X