Double or tripple top function

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Double or tripple top function

Postby arjfca » 08 Feb 2011

Hello

Before a recreate the word, is there an existing function to detect a double or tripple top or buttom in price?

Martin

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Double or tripple top function

Postby TJ » 08 Feb 2011

Hello

Before a recreate the word, is there an existing function to detect a double or tripple top or buttom in price?

Martin
you have to first define your meaning of a "top".

A top is a very general term,
but in trading, it means different things to different people.

a double top is simply

Code: Select all


my.top = my.top[x]

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: Double or triple top function

Postby arjfca » 08 Feb 2011

Hi TJ

Always there to remind us to be precise and accurate :). Very good point

My Point or idea is:
Within a predermined # of bars or time
Top: two bars having the same high
Buttom: two bars having the same low

Martin
Montreal, Canada

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Double or triple top function

Postby TJ » 08 Feb 2011

Hi TJ

Always there to remind us to be precise and accurate :). Very good point

My Point or idea is:
Within a predermined # of bars or time
Top: two bars having the same high
Buttom: two bars having the same low

Martin
Montreal, Canada
try this for idea:

Code: Select all


var:
double.top(false);

double.top = (high = highest( high, x )[1]);

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: Double or tripple top function

Postby arjfca » 09 Feb 2011

Thanks TJ

Work great.

The idea as not show to have any value in my system.
But, at least I'm gonna be a little less dummy when going to bed :)

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Double or tripple top function

Postby TJ » 09 Feb 2011

Thanks TJ

Work great.

The idea as not show to have any value in my system.
But, at least I'm gonna be a little less dummy when going to bed :)
Life is one step at a time.


Return to “MultiCharts”