logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Perty  
#1 Posted : Monday, May 15, 2017 3:42:23 PM(UTC)
Perty

Rank: Member

Groups: Registered, Registered Users, Unverified Users
Joined: 8/1/2007(UTC)
Posts: 17

Thanks: 7 times
Hello,
Can someone please assist in creating a volume based indicator something similar to On Balance Volume with a few changes.
The plot is on a histogram, which start from 0 going upwards.
There are 2 plots. One for the UP move and one for the DOWN move.
The UP move plot can be shown a green histogram.
The DOWN move plot can be shown a red histogram.
UP move plot - When todays close is above previous days close, todays volume gets added to the previous days volume.
When todays close is below previous days close by less than 2%, then also the todays volume gets added to the previous days volume.
This cumulative volume is continuously plotted on the histogram.
The reversal of this UP move plot takes place when todays close is lower by 2% or more from of previous days close. This 2% should be a variable input.
DOWN move plot -  Once a revsersal takes place, the Down move plot is calculated and is exactly the opposite of the UP move plot.
Any help will be appreciated.
Thanks.
wabbit  
#2 Posted : Tuesday, May 16, 2017 12:44:03 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
There's a pretty good template of code to work from in the MS User Manual for OBV: modify it to suit your needs. If you get stuck, post your best attempt here and someone will assist you to correct it.
thanks 1 user thanked wabbit for this useful post.
Perty on 5/18/2017(UTC)
m_jor75  
#3 Posted : Tuesday, May 16, 2017 6:41:13 AM(UTC)
m_jor75

Rank: Member

Groups: Registered, Registered Users
Joined: 3/14/2010(UTC)
Posts: 11

Thanks: 1 times
Wondering if someone can assist in creating and explorer that would give me Daily S/R levels (duration 4 weeks including current week) and Weekly S/R levels (duration 6 months including current month). I also would like an explorer showing instruments that are in a trading range for same period mentioned above. For both explorers I would like to know those levels within the columns of the both explorer. Appreciate if you could assist Thank you
m_jor75  
#4 Posted : Tuesday, May 16, 2017 3:27:05 PM(UTC)
m_jor75

Rank: Member

Groups: Registered, Registered Users
Joined: 3/14/2010(UTC)
Posts: 11

Thanks: 1 times
Any help here?
mstt  
#5 Posted : Wednesday, May 17, 2017 11:28:03 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
What's your definition of Support and Resistance?
thanks 1 user thanked mstt for this useful post.
m_jor75 on 5/19/2017(UTC)
Perty  
#6 Posted : Thursday, May 18, 2017 3:28:50 PM(UTC)
Perty

Rank: Member

Groups: Registered, Registered Users, Unverified Users
Joined: 8/1/2007(UTC)
Posts: 17

Thanks: 7 times

There's a pretty good template of code to work from in the MS User Manual for OBV: modify it to suit your needs. If you get stuck, post your best attempt here and someone will assist you to correct it.

Hi Wabbit, Can you post a link to download the MS User Manual.# The one I have only has the formula, no template. Thanks.

MS Support  
#7 Posted : Thursday, May 18, 2017 10:25:57 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,929

Thanks: 85 times
Was thanked: 154 time(s) in 150 post(s)
Originally Posted by: Perty Go to Quoted Post

There's a pretty good template of code to work from in the MS User Manual for OBV: modify it to suit your needs. If you get stuck, post your best attempt here and someone will assist you to correct it.

Hi Wabbit, Can you post a link to download the MS User Manual.# The one I have only has the formula, no template. Thanks.

We do have an example indicator called "O.B.V. Good example of if() func"

Code:
Cum( 
    If( C, >, Ref(C,-1), +V, 
        If( C, <, Ref(C,-1), -V, 0) )
)

Essentially you should be able to replace the two IF conditions C, >, Ref(C,-1) and C, <, Ref(C,-1) with your own criteria, such as using a ROC of the price values you want.

thanks 1 user thanked MS Support for this useful post.
Perty on 5/21/2017(UTC)
m_jor75  
#8 Posted : Friday, May 19, 2017 1:58:19 AM(UTC)
m_jor75

Rank: Member

Groups: Registered, Registered Users
Joined: 3/14/2010(UTC)
Posts: 11

Thanks: 1 times
Originally Posted by: mstt Go to Quoted Post
What's your definition of Support and Resistance?
Hi mstt Thank you for your reply. Here are tge requirements and tell me if it makes senses and can be formulated intonan explorer An explorer that identifies securities over a certain number of periods have been trading within a range that does not exceed more than (15-20%) of the current closing price of the security. That is the width of the range peak to trough. Flexibility of peak and trough: within +\-3% of a prior peak and trough. The filter must have a minimum of three peaks and three troughs within the range period. As for trading ranges time frames are: Daily.- 4 weeks including current week Weekly - 6 months including current month). Thank you and waiting your reply.
Users browsing this topic
Similar Topics
Price Action Indicator (3rd Party Advertisements)
by tradeintra 10/25/2023 2:14:08 PM(UTC)
Show the last value of an indicator in Y-AXIS in Metastock 11 RT (Formula Assistance)
by Atomo12345 8/22/2023 10:43:04 AM(UTC)
Add counting date to the indicator (Formula Assistance)
by kkrishna79 4/4/2023 7:40:03 AM(UTC)
May 2020: Correlation as a Trend Indicator (2020)
by MS Support 6/15/2022 4:21:22 PM(UTC)
X.TSE indicators data missing (Data Related Questions)
by konradmarcin 3/1/2022 11:35:31 PM(UTC)
How do I turn on Indicator Last Value Labels in a chart? (MetaStock RT and DC)
by MS Support 2/14/2022 3:31:42 PM(UTC)
How to save my changes to an indicator as the default setting? (MetaStock RT and DC)
by MS Support 2/14/2022 2:49:52 PM(UTC)
How to change from the old style of indicators to the new style? (MetaStock RT and DC)
by MS Support 2/14/2022 2:44:30 PM(UTC)
Restrict an indicator to show only in the last instance (Formula Assistance)
by Crossover521 3/4/2021 10:37:32 AM(UTC)
SMI ergodic Indicator/oscillator (Formula Assistance)
by kensho123 2/23/2021 3:42:47 AM(UTC)
Tsunami Indicator (by Bryan Johnson) (Formula Assistance)
by TomHam 1/15/2021 8:20:22 PM(UTC)
Formula for Cumulation of Momentum (COM) Indicator (Formula Assistance)
by oem7110 7/1/2020 1:43:17 AM(UTC)
PMO indicator formula (Formula Assistance)
by TomHam 1/7/2020 5:06:16 PM(UTC)
Indicator with static symbol (Formula Assistance)
by daveskis2019 12/23/2019 1:34:09 AM(UTC)
November 2018: The Stiffness Indicator (2018)
by MS Support 11/5/2019 5:55:19 PM(UTC)
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.