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

stockfinder real code Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
gunnels
Posted : Monday, December 1, 2008 3:02:56 PM
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
StockGuy
Posted : Monday, December 1, 2008 3:18:02 PM

Administration

Joined: 9/30/2004
Posts: 9,187

plot = price.maxhigh(10) is plotting the max high over the last 10 days for me.

Bruce_L
Posted : Monday, December 1, 2008 3:21:13 PM


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
gunnels
Posted : Monday, December 1, 2008 9:06:28 PM
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. 
Bruce_L
Posted : Monday, December 1, 2008 10:27:14 PM


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
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.