• Australian (ASX) Stock Market Forum

Hello and welcome to Aussie Stock Forums!

To gain full access you must register. Registration is free and takes only a few seconds to complete.

Already a member? Log in here.

Amibroker FAQ

Discussion in 'Software and Data' started by RichKid, Jul 15, 2005.

  1. Gringotts Bank

    Gringotts Bank

    Posts:
    6,175
    Likes Received:
    602
    Joined:
    Jun 30, 2007
    Hey, here's a tough one!

    filter = c<.03;
    addcolumn(c,"close",1.3);
    addcolumn(C*V,"indicative turnover");
    SetSortColumns( -3);
     
  2. Elliot

    Elliot

    Posts:
    34
    Likes Received:
    0
    Joined:
    Feb 19, 2011
    Can someone explain to me please the colours on the right hand side of the charting sheet. Looking at the Stock REY it has Green at .3178 Blue at .287 Grey at .28 Red at .258 Black at .25 Grey at .233 . What do these colours mean I've searched on the tutorials for an example of the meaning but no light sorry for the noob question. I know that the black is the current price of the share. but, can anyone explain to me the rest of the colours ?

    Thanks in advance once again.
     
  3. howardbandy

    howardbandy

    Posts:
    838
    Likes Received:
    93
    Joined:
    Jun 13, 2007
    Hi Elliot --

    Each series (price, volume, moving average, whatever) displayed in the pane has a color. The rightmost value of each series is displayed as a number in the right margin of the pane. The color of the number, or usually the small colored area the number is in, is the same as the color of the indicator series it is associated with.

    Thanks,
    Howard
     
  4. Elliot

    Elliot

    Posts:
    34
    Likes Received:
    0
    Joined:
    Feb 19, 2011
    But, Which one exact means each part, apart from the black which means the current share price.

    Thanks.
     
  5. captain black

    captain black

    Posts:
    1,281
    Likes Received:
    746
    Joined:
    Oct 24, 2005
    Each indicator will have a separate colour which corresponds with the different colour values on the y-axis. Right-click on your chart and click "edit formula". The displayed formula will have several "Plot" statements. Each of those represents a different indicator plotted on the chart. Within each of those Plot statements will be a "color" statement. These will correspond to the colours on the y-axis.

    http://www.amibroker.com/guide/afl/plot.html
     
  6. Elliot

    Elliot

    Posts:
    34
    Likes Received:
    0
    Joined:
    Feb 19, 2011
    What do the Red, Blue, Grey, Grey colours mean ? Close Price? Sell? Buy?
     
  7. captain black

    captain black

    Posts:
    1,281
    Likes Received:
    746
    Joined:
    Oct 24, 2005
    Howard and I have both answered your question, can I suggest you reread some of the charting tutorials that are in the Amibroker manual as I'm not sure of any other way we can explain what the y-axis values mean.
     
  8. Gringotts Bank

    Gringotts Bank

    Posts:
    6,175
    Likes Received:
    602
    Joined:
    Jun 30, 2007
    Can someone help me re-write this please?

    if ( C > 0.1 )
    TGR = C+.005;
    else
    {
    TGR = C;

    }

    ----------------------------------

    If/else statements can't be used with arrays such as 'close'. Can someone suggest a solution?
     
  9. captain black

    captain black

    Posts:
    1,281
    Likes Received:
    746
    Joined:
    Oct 24, 2005
    TGR = IIf( C > 0.1 , C + 0.005 , C );
     
  10. Gringotts Bank

    Gringotts Bank

    Posts:
    6,175
    Likes Received:
    602
    Joined:
    Jun 30, 2007
    Thanks cap!
     
  11. pavilion103

    pavilion103

    Posts:
    3,278
    Likes Received:
    8
    Joined:
    Dec 14, 2010
    Sorry if this one is basic guys: How do I create a relative strength indicator that determines the strength of the individual stock with the overall market. (I'm not sure if anyone has read the book but one similar to "Stan Weistein's Secrets for Profiting in Bull and Bar Markets that measures on a scale of 6 to -6, or something similar).

    Thanks
     
  12. colion

    colion

    Posts:
    116
    Likes Received:
    0
    Joined:
    Aug 6, 2010
    Use the built-in function relstrength()
     
  13. TabJockey

    TabJockey

    Posts:
    370
    Likes Received:
    0
    Joined:
    Jul 13, 2009
    For whatever reason that does not work.
     
  14. colion

    colion

    Posts:
    116
    Likes Received:
    0
    Joined:
    Aug 6, 2010
    Works for me. What code are you using?
     
  15. pavilion103

    pavilion103

    Posts:
    3,278
    Likes Received:
    8
    Joined:
    Dec 14, 2010
    _SECTION_BEGIN("RS");
    base = ParamStr("RS base ticker", GetBaseIndex() );
    Plot( RelStrength(base), _SECTION_NAME() + "(" + base + ")", ParamColor( "color", colorCycle ), ParamStyle("Style") );
    _SECTION_END();

    1. Is this the correct code?

    2. Does this simply take the stock price divided by its Index (e.g. Metals and Mining)?

    3. I am not sure if anyone is aware of Stan Weinstein's Relative Strength indicator but I am trying to replicate this as closely as possible with the zero line being the median point.
    Does anyone know how to do this?
    The line moves above or below a zero base line, indicating whether the stock is performing better or worse than the market or index average.
     
  16. pavilion103

    pavilion103

    Posts:
    3,278
    Likes Received:
    8
    Joined:
    Dec 14, 2010
    I came across this one guys. This is alone the lines of what I was looking for with the positive and negative numbers (bottom window).

    Does anyone know how to change this from a bar format to a line?

    maPeriod = Param( "MA Period", 52 * 5, 0, 500, 1 );
    rsSymbol = ParamStr( "Base Index Symbol", "!SPX" );

    rs = RelStrength( rsSymbol );
    rsMan = ( rs / MA( rs, maPeriod ) ) - 1;

    dynColor = IIf( rsMan >= 0, colorLime, colorRed );
    Plot( rsMan, "RS Mansfield", dynColor, styleArea );

    Thanks :)

    RSC.png
     
  17. colion

    colion

    Posts:
    116
    Likes Received:
    0
    Joined:
    Aug 6, 2010
    I have not read Weinstein but Googling indicates that Weinstein's relative strength is simply the ratio of a stock to another stock or index or stock composite. This is what the RelStrength() function is doing except one has to divide it by 1000 to get the same number. So if you want to duplicate Weinstein use:

    weinsteinRS = C / Foreign("Symbol", "Close");

    or

    weinsteinRS = RelStrength("Symbol") / 1000;

    where C is for the currently selected stock and Symbol is the entity being used in the comparison. Plot these two versions of weinsteinRS and you will see that they are identical.
     
  18. pavilion103

    pavilion103

    Posts:
    3,278
    Likes Received:
    8
    Joined:
    Dec 14, 2010

    Thanks mate,
    How do I get it to show up now? I entered that in the formula editor but it came up blank, do I need to select/add something to it? How do I then plot it?

    Also with my previous post do you know how to change that from that bar format to just a straight line.

    Apologies if my questions are too basic.
     
  19. colion

    colion

    Posts:
    116
    Likes Received:
    0
    Joined:
    Aug 6, 2010
    Did you use Plot()?

    weinsteinRS = RelStrength( "Comparison Symbol" ) / 1000;

    Plot( weinsteinRS, "", colorWhite, styleline );
     
  20. pavilion103

    pavilion103

    Posts:
    3,278
    Likes Received:
    8
    Joined:
    Dec 14, 2010
    At the very bottom of this screen shot you can see that I've got a condensed chart and circled in red the part that displays the high, low, close, % etc....

    I am struggling to work out how to add that to the chart at the top (main chart). I have cut and pasted parts but it ends up changing the top chart to a candlestick chart. Obviously I am doing something wrong. Is anyone able to help me get the display correct (the same as the one highlighted in red)?

    Thanks

    amibroker.png
     
Loading...

Share This Page