Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Profile: m_badger
About
User Name: m_badger
Groups: Member, Platinum User, TeleChart
Rank: Registered User
Real Name:
Location
Occupation:
Interests:
Gender: Unsure
Statistics
Joined: Saturday, September 13, 2008
Last Visit: Wednesday, October 14, 2009 10:49:49 PM
Number of Posts: 99
[0.03% of all post / 0.02 posts per day]
Avatar
Last 10 Posts
Topic: How to Make this Block Diagram for New Watchlist Column?
Posted: Monday, October 12, 2009 3:54:42 PM
Bruce,
Once again, Thank You.
Yet another +1 for Worden's support team.
_mad
Topic: How to Make this Block Diagram for New Watchlist Column?
Posted: Monday, October 12, 2009 12:18:10 AM
On an intraday 5-min chart I placed a DatePointer @ 10:00am on the last trading day.

I want a new watchlist column that will show the result of the percentage of volume the stock is trading today so far compared to the value of what the 23-Day SMA of Volume for the stock is so far on the day that the DatePointer sits on.

In other words, at 10:00am where DatePointer sits, how much is this stock trading compared to the last 23 days at 10am (on average)?  Is it trading twice the shares by 10am it does on avg by 10am?  Or half the shares?

In order to do this, one would need to:

1.  Figure out what timeframe the chart is in
2.  Figure out how many bars into the current day the DatePointer is set at (10am for a 5-min chart would be 6 bars in)
3.  Divide the number of bars into the current day the DatePointer is at by the total number of bars in a day for the timeframe setting.  (e.g. at 10am, the DatePointer is set at the 6th bar out of 78 for the day, so the day is about 7.7% over at the placement of the DatePointer)
4.  Take the result from #3, in my example its 7.7%, and multiply that by the 23-day SMA of volume.  This will give us the avg volume that this stock has done in the last 23 days after its 7.7% through the day.
5.  Take the cumulative volume so far for the day up-to-but-not-past the DatePointer, and divide this by the result from #4.  This will give us the % volume that the stock is trading at the placement of the DatePointer compared to what it has traded over the past 23 days, on average by that time (10am in our example).

The result of #5 is what I want to display on the watchlist column.

How do I build a block diagram to accomplish this?

Thank you in advance,
_mad
Topic: color volume based on volume
Posted: Sunday, August 9, 2009 12:18:02 PM
3dbeing,
Did you want this part

For i As Integer = 1 To price.Line.count - 1
    If Volume.Last(i) > Volume.Last(i - 1) Then

to be this instead:

For i As Integer = 0 To price.Line.count - 1    
If Volume.Last(i) > Volume.Last(i + 1) Then

_mad
Topic: Watchlist Filter Refresh?
Posted: Wednesday, August 5, 2009 2:52:58 PM
I have my watchlist filter refresh rate set to MANUAL.
Why does it keep re-freshing on its own at  seemingly random times?
Topic: Watchlist -> Last Price -> BG color
Posted: Thursday, July 30, 2009 12:38:44 PM
Bruce,
You are the man.
_mad
Topic: Watchlist -> Last Price -> BG color
Posted: Thursday, July 30, 2009 12:24:11 PM
I would like to color the background of my Last Price column in my main watchlist green if price is above its moving avg, red if below its moving avg.

I have tried to do this via the Last Price block diagram, but it is not working correctly.  Can you help please?

Topic: Plot slope of daily sma5 onto intraday 10min chart?
Posted: Thursday, July 23, 2009 4:24:55 PM
Bruce,
Thank you for explaining this.  I was looking to mimic the visual representation of the smooth version.
Here is my crack at it:

' 5 days of 10 min bars
Static numBars As Integer = 195
' total sum of price over last 5 days
Dim sum As Single = 0
For i As Integer = 0 To numBars - 1
    ' add closing price to sum
    sum += price.close(i)
Next
' plot total price summation by number of 10 min bars
plot = sum / numBars



It is not perfect but it is pretty close and I can calculate the slope for my RealCode.
Thanks again,
_mad
Topic: Retaining a constants value from bar to bar
Posted: Wednesday, July 22, 2009 8:00:01 PM
Eliezer,
Currently countconst is declared as:
Dim countconst As Single

perhaps you want to declare it as:

Static counconst As Single

to ensure the value does not go out of scope at the end of the bar?

_mad
Topic: Plot slope of daily sma5 onto intraday 10min chart?
Posted: Wednesday, July 22, 2009 7:46:54 PM
Bruce,
Thank you for the response.
I cut and pasted it in but I am confused with the results:






Why does the RealCode daily SMA5 not look like the "Julia" version?
Did I do something wrong?
_mad_badger

http://xs841.xs.to/xs841/09303/sf_dailysma5vsrealcodesma5928.jpg
Topic: Plot slope of daily sma5 onto intraday 10min chart?
Posted: Wednesday, July 22, 2009 10:35:11 AM
When I plot a 5 DAY SMA into my 10min intraday chart as described by Julia here (thank you Julia!), then click on the chart to see the value of the SMA5 in the popup-box for the bar I am clicking on, the value for the SMA5 is the same for every bar on that day.  The printed value does not change, although visually it is easy to see that it does change.

RealCode also thinks the daily sma5 is the same value for the entire day on the intra-day chart.

This makes it difficult to plot the slope of the 5 day sma into an intraday chart, because as far as RealCode is concerned, the value of the 5 day sma does not change in the middle of the day.

Any suggestions?  How do I plot intra-day the slope of a daily sma 5?