Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 12/16/2004 Posts: 14
|
I am attempting to write a very simple code, I printed the real code manual from blocks and read it to make sure i was doing this right but apparently I am not.
To make it simple, write and indicator to plot the max high over the last 10 bars.
Here is the code i used, and its from the manual
plot=price.maxhigh(10)......it plots the high 10 days ago, not the max high over the last ten day.
what am I doing wrong?
doug
|
|
Administration
Joined: 9/30/2004 Posts: 9,187
|
plot = price.maxhigh(10) is plotting the max high over the last 10 days for me.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
gunnels,
I can assure you that the following RealCode Indicator Plots the Maximum High over the most recent 10-Periods (not the High of 10-Periods Ago):
Plot = Price.MaxHigh(10)
You might want to make sure you are Plotting it on the same scale as Price. Right-click on the RealCode Indicator and select Scaling | Scale With | Price History.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/16/2004 Posts: 14
|
Well, thanks, but when I rright click and select scaling,there is no scale with/price history.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
gunnels,
Is it in its own Pane or is it Plotted in the Price Pane?
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |