StockFetcher Forums · General Discussion · Balance of Power indicator<< 1 2 >>Post Follow-up
kramer62
8 posts
msg #39850
Ignore kramer62
1/1/2006 4:13:46 PM

how can i use this indicator ? it is not available in the Filter Builder.


kramer62
8 posts
msg #39869
Ignore kramer62
1/2/2006 2:36:52 PM

is there a combination or equation for it?


garryp
39 posts
msg #39893
Ignore garryp
1/3/2006 9:43:24 AM

I *think* BOP is an unpublished proprietary indicator of TC2000 software. It is related to but different from AD, as I recall.


kramer62
8 posts
msg #39900
Ignore kramer62
1/3/2006 11:36:59 AM

i already got the equation for AmiBroker,, and as i recall i saw it once in a forum for MetaStock.
i.e. it is spread out.


garryp
39 posts
msg #39912
Ignore garryp
1/3/2006 6:49:04 PM

Can you share the manner of calculation for BOP?


yepher
359 posts
msg #39919
Ignore yepher
1/3/2006 11:09:12 PM

Although this is not working yet here is the basic idea behind the balance of power indicator. I think it is over the SF set limit. I tried on professional and regular account and neither returned any results.

Fetcher[
/*Balance Of Power - BOP*/

/*THL:=If(H-L=0,.00001,H-L);*/
set{tempTHL, high - low}
set{THL, max(tempTHL, .00001)}


/* create some helper vars */
set{ hmo, high - open}
set{ hmc, high - close}

set{ oml, open - low}
set{ omc, open - close}

set{ cml, close - low}
set{ cmo, close - open}

/* BuRBoC:=(C-L)/(THL); */
set{BuRBoO, hmo / THL}

/* BeRBoO:=(O-L)/(THL); */
set{BeRBoO, oml / THL}


/* BuRBoC:=(C-L)/(THL); */
set{BuRBoC, cml / THL}

/* BeRBoC:=(H-C)/(THL); */
set{BeRBoC, hmc / THL}


/* BuRBoOC:=If(C>O,(C-O)/(THL),0);; */
/* my make shift if */
set{myIf_cao, count(close above open, 1)}
set{tempBuRBoOC, cmo / THL }
set{BuRBoOC, tempBuRBoOC * myIf_cao}


/* BeRBoOC:=If(C>O,0,(O-C)/(THL)); */
/* my make shift if */
set{myIf_oac, count(open above close, 1)}
set{tempBeRBoOC, omc / THL}
set{BeRBoOC, tempBeRBoOC * myIf_oac}

/* Create typical 1 */
set{aarg1, BuRBoO + BuRBoC}
set{aarg2, aarg1 + BuRBoOC}
set(typical1, aarg2 / 3}

set{barg1, BeRBoO + BeRBoC}
set{barg2, barg2 + BeRBoOC}
set{typical2, barg2 / 3}

set{BOP, typical1 - typical2}

draw BOP
]





Here is the working version from Metastock.

THL:=If(H-L=0,.00001,H-L);
{Reward Based on the Open}

BuRBoO:=(H-O)/(THL);
BeRBoO:=(O-L)/(THL);
{Reward Based on the Close}

BuRBoC:=(C-L)/(THL);
BeRBoC:=(H-C)/(THL);
{Reward Based on the Open-Close}

BuRBoOC:=If(C>O,(C-O)/(THL),0);
BeRBoOC:=If(C>O,0,(O-C)/(THL));
BOP:=(BuRBoO+BuRBoC+BuRBoOC)/3 - (BeRBoO+BeRBoC+BeRBoOC)/3;
BOP



-- Yepher


yepher
359 posts
msg #39932
Ignore yepher
1/4/2006 2:51:03 PM

Fixed a couple of typos:

Fetcher[
/*Balance Of Power - BOP*/

/*THL:=If(H-L=0,.00001,H-L);*/
set{tempTHL, high - low}
set{THL, max(tempTHL, .00001)}


/* create some helper vars */
set{ hmo, high - open}
set{ hmc, high - close}

set{ oml, open - low}
set{ omc, open - close}

set{ cml, close - low}
set{ cmo, close - open}

/* BuRBoC:=(C-L)/(THL); */
set{BuRBoO, hmo / THL}

/* BeRBoO:=(O-L)/(THL); */
set{BeRBoO, oml / THL}


/* BuRBoC:=(C-L)/(THL); */
set{BuRBoC, cml / THL}

/* BeRBoC:=(H-C)/(THL); */
set{BeRBoC, hmc / THL}


/* BuRBoOC:=If(C>O,(C-O)/(THL),0);; */
/* my make shift if */
set{myIf_cao, count(close above open, 1)}
set{tempBuRBoOC, cmo / THL }
set{BuRBoOC, tempBuRBoOC * myIf_cao}


/* BeRBoOC:=If(C>O,0,(O-C)/(THL)); */
/* my make shift if */
set{myIf_oac, count(open above close, 1)}
set{tempBeRBoOC, omc / THL}
set{BeRBoOC, tempBeRBoOC * myIf_oac}

/* Create typical 1 */
set{aarg1, BuRBoO + BuRBoC}
set{aarg2, aarg1 + BuRBoOC}
set{typical1, aarg2 / 3}

set{barg1, BeRBoO + BeRBoC}
set{barg2, barg1 + BeRBoOC}
set{typical2, barg2 / 3}

set{BOP, typical1 - typical2}

draw BOP
]




yepher
359 posts
msg #39954
Ignore yepher
1/4/2006 11:51:14 PM

Here is the working version or BOP:

Fetcher[
/*Balance Of Power - BOP*/

set{THL, high - low}

set{ hmo, high - open}
set{ hmc, high - close}

set{ oml, open - low}
set{ omc, open - close}

set{ cml, close - low}
set{ cmo, close - open}

set{BuRBoO, hmo / THL}

set{BeRBoO, oml / THL}

set{BuRBoC, cml / THL}

set{BeRBoC, hmc / THL}


set{myIf_cao, count(close above open, 1)}
set{tempBuRBoOC, cmo / THL }
set{BuRBoOC, tempBuRBoOC * myIf_cao}


set{myIf_oac, count(open above close, 1)}
set{tempBeRBoOC, omc / THL}
set{BeRBoOC, tempBeRBoOC * myIf_oac}

set{aarg1, BuRBoO + BuRBoC}
set{aarg2, aarg1 + BuRBoOC}
set{typical1, aarg2 / 3}

set{barg1, BeRBoO + BeRBoC}
set{barg2, barg1 + BeRBoOC}
set{typical2, barg2 / 3}

set{BOP, typical1 - typical2}

draw BOP
close above 1
and volume above 500000
]



-- Yepher


mktmole
325 posts
msg #40016
Ignore mktmole
1/6/2006 2:44:16 PM

How would it be possible to display these total overall positive and negative raw Bull and Bear Power numbers? ( the more positive the greater the Bull..the more negative etc.etc

Thanks


yepher
359 posts
msg #40019
Ignore yepher
1/6/2006 5:53:44 PM

Not exactly sure what you are asking. Maybe adding this is what you are looking for?

"AND add column BOP"

-- Yepher


StockFetcher Forums · General Discussion · Balance of Power indicator<< 1 2 >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.