Power9999 |
Gold User, Member, Platinum User, TeleChart
|
Registered User |
|
|
|
|
Unsure |
|
Thursday, October 7, 2004 |
Monday, August 10, 2009 5:04:58 PM |
12 [0.00% of all post / 0.00 posts per day] |
|
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)?
|
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?
|
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?
|
I want to trigger execution of code in bar prior to the last bar on chart. How do you do that?
|
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?
|
Is there a function to find the highest high in say 10 periods?
|
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?
|
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?
|
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.
|
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?
|
|