Australian (ASX) Stock Market Forum

Amibroker FAQ

Hey, here's a tough one!

filter = c<.03;
addcolumn(c,"close",1.3);
addcolumn(C*V,"indicative turnover");
SetSortColumns( -3);
 
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.
 
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
 
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

But, Which one exact means each part, apart from the black which means the current share price.

Thanks.
 
But, Which one exact means each part, apart from the black which means the current share price.

Thanks.

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
 
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

What do the Red, Blue, Grey, Grey colours mean ? Close Price? Sell? Buy?
 
What do the Red, Blue, Grey, Grey colours mean ? Close Price? Sell? Buy?

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

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

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.
 
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?
 
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
 
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

Use the built-in function relstrength()
 
Use the built-in function relstrength()

_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.
 
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
 
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.
 
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.


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.
 
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.

Did you use Plot()?

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

Plot( weinsteinRS, "", colorWhite, styleline );
 
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
 
Top