Australian (ASX) Stock Market Forum

Can someone please help with Metastock formula?

The RSI in the scan uses 7 periods, right?

Is the RSI parameter in the chart on the screen also set to 7 periods?

Edit - it doesn't look like the RSI on the chart is set to 7.
 
Thanks to everyone for your help, looks like Wabbit nailed it. I had the load minimum records selected in my explorer, I have now updated this to the same as value as when I open the chart (500 bars display 250).

I have run several scans and I have not had a singe failure.

I new it had to be simple, and knowing it was wasted so much time trying to sort it out.

Thanks all who provided assistance.
 
sdearle and interested others,

From a post also by me at Equis Forum: http://forum.equis.com/forums/post/26946.aspx

MS returns a boolean value of 1 or 0 depending on whether a condition can be expressed as true or false, so you dont need the If((AA-Ref(AA,-2)>0),1,0) it can just be written as (AA-Ref(AA,-2))>0 and it will return a value of 1 if this condition is true, 0 otherwise.

Binary values can be added together, e.g.

Code:
ma1:=Mov(C,12,S);
ma2:=Mov(C,33,S);

x:=Cross(ma1,ma2) + (C>10);

{plot}
x;


"x" will take on three possible values:
0 if the Cross() event did not happen AND the price is not greater than 10
1 if either of the Cross() event happened OR the price is greater than 10, but NOT both
2 if both of the Cross() event happened AND the price is greater than 10.

These concepts allow you to write more simple code to deal with more complex situations.

didn't deal with the N/A situations, but these can be easily figured out by looking at a chart with the above function plotted.


So for the RSI exploration: "If(RSI(C,7)<=30,1,0)" with a filter of ColA=1.

There is no need to have this condition in a Column and then refer to that column in the filter. Just put the condition in the filter, remembering that MS will use a binary value of TRUE or FALSE. If you need to see the values of the indicator, then yes, you have to put these in the columns, but leave all the filtering for the filter and leave the columns for displaying data. This also has a significant speed improvement. (if the filter condition is complex, sometimes the Colx function can be be faster but in simple cases it is faster to rewrite the column data in the filter, speed test both cases if speed is an issue)

So, the exploration might look something like:

{column A: RSI}
{only used to display the data in the results table}
RSI(C,7);

{filter}
RSI(C,7)<=30

{load at least 50 bars}



Hope this helps,

wabbit :D
 
Re: The Wyckoff Method

Hi.
Has anybody developed the correct code for Volume Wave similar to attached image?
In Metastock or BullScript.
joea
 

Attachments

  • RTTVolumeWave-L.jpg
    RTTVolumeWave-L.jpg
    108.5 KB · Views: 6
Bump.

Anyone want to have a go at joea's question above (post #65)?
 
If you google [JimDean+weis+wave+volume+indicator] you will come across two forum threads in which JimDean posts some code for the Weis wave and wave volume indicator. He also points out that the wave indicator repaints as it need future data to find the end of a wave. This is also seen in most zig-zag indicators and this makes them look good in hindsight but impossible to use real-time.
 
If you google [JimDean+weis+wave+volume+indicator] you will come across two forum threads in which JimDean posts some code for the Weis wave and wave volume indicator. He also points out that the wave indicator repaints as it need future data to find the end of a wave. This is also seen in most zig-zag indicators and this makes them look good in hindsight but impossible to use real-time.

The above indicator does work, and its on www.readtheticker.com. Its a proprietary
indicator, and seeing that I am a laid back trader, it would just suit me fine.
I got the code from the site you mentioned. So thank you.
joea
 
Hi,

I'm new to trading and new to Metastock - working my way through a mountain of resources (books, handbooks, websites, etc.) and I would be most grateful for help on this matter.

I'm trying to build an expert adviser which plots a buy signal when the Williams%R (14 period) crosses above the Bollinger Bands (lower), and plots a sell signal when the Williams%R(14 period) crosses below the Bollinger Bands (higher).

This is what I came up with (but it obviously doesn't work):

Buy
Cross(WillR(14), BBandBot(C,20,E,2))

Sell
Cross(BBandTop(C,20,E,2), WillR(14))

Thank you in advance.
 
Hi,

I'm new to trading and new to Metastock - working my way through a mountain of resources (books, handbooks, websites, etc.) and I would be most grateful for help on this matter.

I'm trying to build an expert adviser which plots a buy signal when the Williams%R (14 period) crosses above the Bollinger Bands (lower), and plots a sell signal when the Williams%R(14 period) crosses below the Bollinger Bands (higher).

This is what I came up with (but it obviously doesn't work):

Buy
Cross(WillR(14), BBandBot(C,20,E,2))

Sell
Cross(BBandTop(C,20,E,2), WillR(14))

Thank you in advance.

There should be something here digger...
http://www.meta-formula.com/Metastock-All-Formulas.html
 
Have a good look at the indicators and how they are constructed.
You'll soon realize that th us of the indicators as you are doing
Is not what they were designed for.
 
Have a good look at the indicators and how they are constructed.
You'll soon realize that th us of the indicators as you are doing
Is not what they were designed for.

Tech, maybe he is just trying to learn how to code...that's usually the easiest way to teach yourself to code is to start coding systems using indicators.

CanOz
 
Tech, maybe he is just trying to learn how to code...that's usually the easiest way to teach yourself to code is to start coding systems using indicators.

CanOz

Yeh I guess so
Like learning how to fly driving a car.
You'll learn how to drive but die in the plane crash.
 
Hi,

I'm trying to build an expert adviser which plots a buy signal when the Williams%R (14 period) crosses above the Bollinger Bands (lower), and plots a sell signal when the Williams%R(14 period) crosses below the Bollinger Bands (higher).

This is what I came up with (but it obviously doesn't work):
Buy
Cross(WillR(14), BBandBot(C,20,E,2))

Sell
Cross(BBandTop(C,20,E,2), WillR(14))

Thank you in advance.


Have a good look at the indicators and how they are constructed.
You'll soon realize that th us of the indicators as you are doing
Is not what they were designed for.

Hi Digger,

The Bollinger Band function returns an output that is price related whereas the Williams %R function returns a value between 0 and 100 (in MetaStock between -100 and 0), i.e. you are not comparing the crossing of one price by another price.

This can be an easy trap to fall into especially if you overlay (without scale) non-price indicators in the price window.
 
Top