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

Re: [amibroker] Re: Adding name of Stock to heading



PureBytes Links

Trading Reference Links

you can put it anywhere above this line
//--Inicator End --
this should read
//--Indicator End --






On Tue, 25 Jan 2005 14:16:26 -0000, areehoi <hoierman@xxxxxxx> wrote:
> 
> 
> Graham:
> Thanks much for the reply.  Below is the formula that appears when I
> right click edit. It is the "built in" formula that came with
> AmiBroker.  I don't want to screw it up.  What I have showing on the
> main Chart is 3 moving average and OBV plus of course price. I put
> the MA's on from preference menue in older version.  Now tell me
> where to put the line of code you recommend?  Thanks
> 
> Dick H.
> PS: I've been to Perth (loved the city and ares) but where are the
> caves??
> 
> // Above line instructs the parser that the code
> // below is only for commentary/interpretation window
> // This provides significant performance improvement
> //
> // (C)2002 amibroker.com
> 
> 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;
> lslop = LinRegSlope( C, 30 ) + 100;
> lslo = LLV( lslop, 90 );
> lshi = HHV( lslop, 90 );
> lswidth = lshi - lslo;
> trend = 100*( lslop - lslo )/lswidth;
> Plot( OBV(),"OBV",colorViolet = 38,styleOwnScale);
> 
> //--Inicator End --
> mawidth = MA( width, 100 );
> relwidth = 100*(width - mawidth)/mawidth;
> 
> _N( tname = Name()+"("+FullName()+")" );
> 
> "Price and moving averages:";
> tname + " has closed " + WriteIf( C > movshort, "above" , "below" )
> + " its short time moving average. ";
> 
> "Short time moving average is currently " + WriteIf( movshort >
> movmed, "above", "below") + " mid-time, and " + WriteIf( movshort >
> movlong, "above", "below" ) + " long time moving averages.";
> 
> "The relationship between price and moving averages is: "+
> WriteIf( C > movshort AND movshort > movmed, "bullish",
> WriteIf( C < movshort AND movshort < movmed, "bearish", "neutral" ) )
> + " in short-term, and "+
> WriteIf( movshort > movmed AND movmed > movlong , "bullish",
> WriteIf( movshort < movmed AND movmed <
> movlong, "bearish", "neutral" ) ) + " in mid-long term. ";
> 
> "\nBollinger Bands:";
> tname+ " has closed " +
> WriteIf( C < bbot, "below the lower band by " +
> WriteVal( 100 *( bbot-C )/ width, 1.1 ) + "%. " +
> WriteIf( trend < 30, " This combined with the steep downtrend can
> suggest that the downward trend in prices has a good chance of
> continuing.  However, a short-term pull-back inside the bands is
> likely.",
> WriteIf( trend > 30 AND trend < 70, "Although prices have broken the
> lower band and a downside breakout is possible, the most likely
> scenario for "+tname+" is to continue within current trading
> range.", "" ) ), "" ) +
> 
> WriteIf( C > btop, "above the upper band by " +
> WriteVal( 100 *( C- btop )/ width, 1.1 ) + "%. " +
> WriteIf( trend > 70, " This combined with the steep uptrend suggests
> that the upward trend in prices has a good chance of continuing.
> However, a short-term pull-back inside the bands is likely.",
> WriteIf( trend > 30 AND trend < 70, "Although prices have broken the
> upper band and a upside breakout is possible, the most likely
> scenario for "+tname+" is to continue within current trading
> range.", "" ) ), "" ) +
> 
> WriteIf( C < btop AND ( ( btop - C ) / width ) < 0.5,
> "below upper band by " +
> WriteVal( 100 *( btop - C )/ width, 1.1 ) + "%. ",
> WriteIf( C < btop AND C > bbot , "above bottom band by " +
> WriteVal( 100 *( C - bbot )/ width, 1.1 ) + "%. ", "" ) );
> WriteIf( ( trend > 30 AND trend < 70 AND ( C > btop OR C < bbot ) )
> AND abs(relwidth) > 40,
>                 "This picture becomes somewhat unclear due to the
> fact that Bollinger Bands are  currently",
>                 "Bollinger Bands are " )+
> WriteVal( abs( relwidth ), 1.1 ) + "% " +
> WriteIf( relwidth > 0, "wider" , "narrower" ) +
> " than normal.";
> 
> WriteIf( abs( relwidth ) < 40, "The current width of the bands
> (alone) does not suggest anything conclusive about the future
> volatility or movement of prices.","")+
> WriteIf( relwidth < -40, "The narrow width of the bands suggests low
> volatility as compared to " + tname + "'s normal range.  Therefore,
> the probability of volatility increasing with a sharp price move has
> increased for the near-term. "+
> "The bands have been in this narrow range for " + WriteVal(BarsSince
> (Cross(-40,relwidth)),1.0) + " bars. The probability of a significant
> price move increases the longer the bands remain in this narrow
> range." ,"")+
> WriteIf( relwidth > 40, "The large width of the bands suggest high
> volatility as compared to " + tname + "'s normal range.  Therefore,
> the probability of volatility decreasing and prices entering (or
> remaining in) a trading range has increased for the near-term. "+
> "The bands have been in this wide range for  " + WriteVal(BarsSince
> (Cross(relwidth,40)),1.0) + " bars.The probability of prices
> consolidating into a less volatile trading range increases the longer
> the bands remain in this wide range." ,"");
> 
> "\nThis commentary is not a recommendation to buy or sell. Use at
> your own risk.";
> 
> --- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> > use
> > Title = "{{NAME}} - {{INTERVAL}} {{DATE}} : {{VALUES}} ";
> >
> > then just add more information to it to suit what you want
> >
> > On Mon, 24 Jan 2005 20:13:16 -0000, areehoi <hoierman@xxxx> wrote:
> > >
> > >
> > > My Amibroker program came with a built in formula for the main
> chart
> > > window (Sheet1) that includes Symbol, date, open, high ,low, close
> > > and volume.  I would like to add the Name of the stock in that
> > > heading but am lost as to how.  As I recall that was an option in
> the
> > > earlier versions under preferences but not in 4.60 and higher.  I
> > > looked a the formula and it has everything but the "kitchen
> sink " in
> > > it but I couldn't figure out how to change to include the Name of
> the
> > > stock.  Not being a programmer any help will be appreciated.
> Thanks.
> > >
> > > Dick H.
> > >
> > >
> > > Check AmiBroker web page at:
> > > http://www.amibroker.com/
> > >
> > > Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> >
> >
> > --
> > Cheers
> > Graham
> > http://e-wire.net.au/~eb_kavan/
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

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/