Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Profile: Power9999
About
User Name: Power9999
Groups: Gold User, Member, Platinum User, TeleChart
Rank: Registered User
Real Name:
Location
Occupation:
Interests:
Gender: Unsure
Statistics
Joined: Thursday, October 7, 2004
Last Visit: Monday, August 10, 2009 5:04:58 PM
Number of Posts: 12
[0.00% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: How to execute code only once per hourly bar
Posted: Saturday, July 25, 2009 11:44:11 AM
Bruce,

I want to execute this particular code to execute once for every hourly bar.  How would I specify I want the code to execute at the beginning of the bar versus the end of the bar (ie - on the first tick of the bar or the last tick of the bar)?
Topic: What code do you insert to check to see if current bar is less than required number of bars for calc
Posted: Saturday, July 25, 2009 11:39:04 AM
The Reference Manual indicates:

Advanced Tip: If there is not enough data to calculate your
rule (because you are calling for data x bars ago) RealCode will not output a value until there is enough data foryour rule to
calculate.   You can help speed this process up and increase
performance by doing a check at the top ofyour code that will
exit if the current bar is less than the largest number of bars
back you need to evaluate. 

What is the code that is required to do the above?


Topic: How to execute code only once per hourly bar
Posted: Thursday, July 23, 2009 6:07:27 PM

On the hourly chart, I want to execute certain code only once at the end of an hourly bar.  How do I get code to execute only once per hourly bar?

Topic: Trigger execution of code in bar prior to last bar
Posted: Thursday, July 23, 2009 5:11:03 PM

I want to trigger execution of code in bar prior to the last bar on chart.  How do you do that?

Topic: Is there a way to plot multiple variables within one indicator
Posted: Saturday, May 30, 2009 2:10:52 PM

I want to write a single indicator in Real Code that generates multiple plot values.  Do I have to write multiple indicators to do this?  If I write 3 indicators, each indicator would have substantially the same code running and it seems there must be a more efficient way to do this.  Can you comment?

Example:  Code generates support level one, support level two and support level three.  I want to plot each support level.  Do I need to create 3 separate indicators to do this?

Topic: Highest Function
Posted: Saturday, May 23, 2009 1:21:24 PM
Is there a function to find the highest high in say 10 periods?
Topic: How do you limit Real Code calculation to single trading day only
Posted: Wednesday, May 6, 2009 7:12:26 PM
I was told that I needed to include the 'Cumulative directive in my Real code so that the numbers reported in the Main watchlist would match the numbers computed and displayed in the chart.  My understanding of the Cumulative indicator is that it computes with respect to all of the bars provided in the data manager.  Because I have Real Code indicators that require 5000 bars of intraday data, I have intraday bars set to 5000.

However, the (other) calculation that requires the 'Cumulative directive only uses the bars since the beginning of the day.  Is there a way to limit the calculation to only those bars since the beginning of the trading day.

The code I use to determine the begining of the day is:
If price.datevalue.dayofyear <> price.datevalue(1).dayof year Then ....

How do I modify this code so that Real code only processes data for the current trading day?
Topic: Error referencing ratio
Posted: Wednesday, May 6, 2009 8:43:41 AM

I create a ratio between a symbol (say CSCO) in the 5 minute timeframe and a market index (say SPY).  I then create a new indicator and try to reference the ratio of CSCO to SPY (ie - I want to work with the ratio of CSCO to SPY in Real Code).

I always get a "fatal handling exception" when I do this (ie - "Stockfinder has encountered a problem - unexpected error in Blocks").

Is there any solution to this problem?

Topic: How do you offset the ploting of a rule?
Posted: Saturday, May 2, 2009 10:52:07 AM
Is there a way post the pivot high and pivot low in "real time" (ie - not using the -1 and -2 offset references)?  I do want to back test this at some point in time.  I prefer that Real Code post the pivots as they can be defined in real time.
Topic: Tracking the subsequent progress of 2 separate indicators
Posted: Saturday, May 2, 2009 10:46:48 AM
I have 2 indicators, say a high stock price indicator and low stock price indicator, that I want to track.  I want to write Real Code with respect to these indicators and select only those stocks that have certain characteristics in relation to the action of these 2 indicators.  How do I do that?