[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: What is symbol



PureBytes Links

Trading Reference Links

Hello,

just past the code below (I made some changes to the plot statement)
*above* the first line in main price chart code, the one that 
says  //--Indicator-End--.

btop = BBandTop( C, Prefs( 4 ), Prefs(8)/100 );

bbot = BBandBot( C, Prefs(4), Prefs(8)/100 );

width = btop - bbot;

PctChange=100*(width-Ref(width,-1))/Ref(width,-1);

Plot(PctChange,"BwidthPctChg",colorBlack,styleNoDraw);



Johan






--- In amibroker@xxxxxxxxxxxxxxx, "mrdavis9" <mrdavis9@xxxx> wrote:
> All I really want to do is to add to the built-in Price Chart 
popup menu so that it will show this "BwidthPctChg" value at the 
bottom of the menu.
> 
> I have never tried to modify the main price chart.   I looked at 
the coding in it, and it is way beyond what I do right now.  I have 
other things I am working on right now, so I don't want to stop what 
I am doing in order to learn all about the coding in the price 
chart. It appears that you are supposed to somehow make the output 
from all of those WriteIf(statements)  appear in the commentary 
window, which I have yet to feel the need to use.
> 
> I copied the built-in price code to a custom indicator, deleted 
most of it, and then added the below modification to it, and it 
works, but I would sure like to have this function available in the 
built-in price chart.   BTW, in this custom version, the Bollinger 
bands ended up being super close together, even before I multiplied 
by 100 for the last plot(statement).
> 
> I sure would appreciate it if a kind soul would post the completed 
modification, and instruct me how to install it into the main price 
chart so that it will appear in the popup menu.  I assume it 
involves those writeif() functions that I see in the code, which I 
have also never used.  later, Ron D
> 
> movshort = MA( C, Prefs(4) );
> 
> movmed = MA( C, Prefs(6) );
> 
> movlong = MA( C, Prefs(28) );
> 
> btop = BBandTop( C, Prefs( 4 ), Prefs(8)/100 );
> 
> bbot = BBandBot( C, Prefs(4), Prefs(8)/100 );
> 
> width = btop - bbot;
> 
> PctChange=(width-Ref(width,-1))/Ref(width,-1);
> 
> Plot(btop,"Btop",colorBlack,styleLine);
> 
> Plot(bbot,"Bbot",colorBlack,styleLine);
> 
> Plot(width,"Bwidth",colorBlack,styleNoLine,styleOwnScale);
> 
> Plot
(PctChange*100,"BwidthPctChg",colorBlack,styleNoLine,styleOwnScale);
> 
> 
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.656 / Virus Database: 421 - Release Date: 4/10/2004



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
     amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/