mahkoh 1,065 posts msg #97786 - Ignore mahkoh |
12/3/2010 4:04:49 PM
I would like to draw monthly pivot lines on a chart and came up with this:
set { x1 ,high of the previous month + low of the previous month }
set {x2 , x1 + close of the previous month }
set { monthlypivot , x2 / 3 }
draw monthlypivot
Obviously SF has a problem with this syntax. Anyone know if there is a correct phrase or a workaround ?
|
mahkoh 1,065 posts msg #97834 - Ignore mahkoh |
12/5/2010 11:42:18 AM
No luck so far, thought it may be a good idea to focus on a shorter timeframe first. Weekly pivotnumbers in the columns are working, however plotting them on the chart does not give expected results. First of all they are not plotted on the correct values and second I would expect to see horizontal lines that are as long as one week, after all weekly pivots are valid for one week and don't change during that period.
Anybody got a clue to what I can do to solve this?
|
four 5,087 posts msg #97835 - Ignore four |
12/5/2010 1:09:20 PM
http://forums.stockfetcher.com/sfforums/?q=view&fid=1001&tid=69903&qrid=&isiframe=
If your interested, Fibonacci lines.
|
wkloss 231 posts msg #97836 - Ignore wkloss |
12/5/2010 1:50:25 PM
mahkoh,
John Person offers some solutions.
His Persons Pivots and PPS studies are available at thinkorswim. You can open a paper trading account for free.
He suggests that you limit yourself to three lines at any one time. S1 and R1 should always be on your chart. If you think you are in a down market, add S2. If you think you are in an up market, add R2.
Bill
|
mahkoh 1,065 posts msg #97842 - Ignore mahkoh |
12/5/2010 6:09:35 PM
Still needs some work, but I am getting somewhere.
Bill, thanks for your help, I'll check it out.
|
mahkoh 1,065 posts msg #97856 - Ignore mahkoh |
12/6/2010 6:27:21 PM
Another try at the monthly's
I think my problem is that SF does not know what to do with "monthly" and just disregards this input and uses "high one month ago".
Does someone have experience with setting a specified period?
|
Kevin_in_GA 4,599 posts msg #97857 - Ignore Kevin_in_GA |
12/6/2010 7:03:15 PM
SF only stores daily and weekly data - shoter or longer timeframes are not available.
|
mahkoh 1,065 posts msg #97880 - Ignore mahkoh |
12/7/2010 4:54:27 PM
I was thinking about using the "max" syntax. Taking the max from 30 and 29 days ago, then using that value against 28 days ago and so on until one day ago will get me last month's high on the first day of the new month (if last month had 30 days). The next day I would need another filter that goes from 31 until 2 days ago, then 32 until 3 days ago and so on.
A better way yet would be to build a filter for 62 days to 1 and then every day shift the range by excluding periods with */ /* . As SF excludes weekends, about 45 days back would be enough.
Well, better get to work, if there are suggestions please post.
|
mahkoh 1,065 posts msg #97912 - Ignore mahkoh modified |
12/9/2010 8:40:50 PM
Got it! :]]
Just need to add one day to look back every morning in the three lines on top, and every new month set the number of trading days of the previous month .
|
mahkoh 1,065 posts msg #97975 - Ignore mahkoh modified |
12/12/2010 1:14:20 PM
I've enhanced the monthly filter a bit so that all I need to do is change the date offset and the number of trading days to look back each first of the month. The date offset affects the whole filter, therefore I use it as my global filter instead of embedding it in my regular filters.
However, if I run the filter by itself and click "debug" it shows a number of syntax errors. I cannot figure out what is wrong, does anyone have an idea?
edit: found the problem, "-" and "+" need a space. Funny that "*" and "/" do not.
|