| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | How to Plot Automatically a Moving Period ? inputs: iStartDate( 1090505 ), If date this bar >= iStartDate then begin end; How to plot automatically a moving period ? ex: condition plotting 3 moving days before today result today 09-may plot from 06 > 09 tomorrow is 10-may plot from 09 > 10 etc... | ||
| |
|
| | #2 | ||
![]() | Re: How to Plot Automatically a Moving Period ? is this for daily chart? | ||
| |
|
| | #3 | ||
![]() | Re: How to Plot Automatically a Moving Period ? A single chart/dream is more powerfull than a thousand of word/realities "Shaaakspeaaare" ![]() How to have an indicator wich starts automatically xDays before and move with the currentday It could be mn, HH, DD, WW, MM It is for saving precious ressources The chart should be always like this everyday Cheers | ||
| |
|
| | #4 | ||
![]() | Re: How to Plot Automatically a Moving Period ? Quote:
open your Task Manager and you will your CPU is running below 20% most of the time. furthermore... the moving average is only calculated ONCE... and plotted ONCE on your chart. and updates only if there is a change on the chart. if you use the function averageFC() instead of average(), it uses even less computing power. Quote:
the easiest way is to control the plot: if d > (currentdate - lookback) then plot1( MovingAverage, "MA"); . Last edited by Tams; 05-10-2009 at 08:41 AM. | ||
| |
|
| The Following User Says Thank You to Tams For This Useful Post: | ||
aaa (05-10-2009) | ||
| | #5 | ||
![]() | Re: How to Plot Automatically a Moving Period ? I am shame to be so bad... ![]() It is not for the MM but for the indicators wich draw a lot of lines I like to use very long period back and I noticed a slow down with certains indicators | ||
| |
|
| | #6 | ||
![]() | Re: How to Plot Automatically a Moving Period ? however drawing objects are recalculated again after each tick and re-drawn on the screen again even if there are no changes to their placement on the chart. drawing objects are: TL_new(), ARW_new(), TEXT_new() if you right click on the chart, a window will pop up. select Format drawings... you will see the number of drawing objects you have on that chart. I have 4000+ drawing objects on some of my charts, they haven't caused any slow down yet. | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Plot Option Volume On Chart? | cbratton | Options Trading Laboratory | 5 | 06-11-2009 12:06 AM |
| Anyway to Plot an Indicator Value Without Actually Plotting It? | daedalus | Coding Forum | 3 | 04-24-2009 11:43 PM |
| Making TS Plot Wider | daedalus | Coding Forum | 14 | 04-23-2009 10:37 AM |
| Average Holding Period in U.S. Stock Indexes and U.S. Treasuries | AgeKay | Futures Trading Laboratory | 3 | 12-19-2008 05:21 PM |
| How to plot MP using IB data feed? | jj2005 | Market Profile | 0 | 03-14-2007 10:34 AM |