Australian (ASX) Stock Market Forum

Amibroker FAQ

thanks colion.

Why would this not return any results in an exploration?

filter = result = iif( c > o, ma( (h + L)/l, 15), null);
addcolumn(result,"result");

If you want to do an exploration then use:

Filter = Status( "lastbarinrange" );
result = IIf( C > O, MA( (H + L)/L, 15), Null);
AddColumn(result,"result");

Do the above and then your way to see the difference - good learning experience.
 
You can make it floating too. Just do right-click on the AA tab and select 'floating'.
Okay I found the floating option under the windows tab but it isn't a permanent solution. Like you have to set floating every time the AA is opened.
 
Hi all,

I'm trying to set up a buy condition based on the amount of buy signals my system is generating at the time.

I am basically trying to use this method:
http://www.amibroker.com/guide/a_addtocomposite.html

Where data is stored in a false ticker.

Here is the code I'm currently playing with, but have tried many variations without much luck.


buysignalcount = Buysignal;
AddToComposite(Buysignalcount, "~BuySignalCount", "C");

BuySigAvg = MA(Foreign("~BuySignalCount", "C"),10);
AddToComposite(BuySigAvg, "~BuySignalCount", "V");

Graph0 = Foreign("~BuySignalCount", "C");
Graph0 = Foreign("~BuySignalcount", "V");


So it's generating a false ticker ~BuysignalCount, and adding the buysignals to the close price of the ticker. I can get this to work.

I'm then trying to get the MA(C, 10) for this close price, and add it to the same ticker as the volume. I can get the volume to display, but the numbers are in the 1000's, and they should be <10. Can't work out the issue here.

Once I get the volume working I want to be able to reference this volume specifically in the code so I can add a buy condition based on it.
Basically I dont want to be buying if there aren't enough buy signals being generated.

Cheers
 
On the front page they have many features listed as new in 5.50: like free Fundamental Data and
direct link to eSignal, Interactive Brokers. Are there any expanded info on these features. Don't want to install the new version incase it breaks my current setup.
 
Hello. Ok, let's get ready to rumble. ;)

Hi joshsmi,

I'm currently studying scale-out code. There is the question of what to do with new entry signals that occur prior to completion of the scale-out (or stop-out).

If the original position has been reduced by half (via scale-out), I want to add back that size at the new signal.
 
On the front page they have many features listed as new in 5.50: like free Fundamental Data and
direct link to eSignal, Interactive Brokers. Are there any expanded info on these features. Don't want to install the new version incase it breaks my current setup.

The things you have mentioned aren't new. In fact those things were available in previous versions too.

New stuff that was added is listed at devlog as Captain Black has already pointed out.
 
I'm currently studying scale-out code. There is the question of what to do with new entry signals that occur prior to completion of the scale-out (or stop-out).

If the original position has been reduced by half (via scale-out), I want to add back that size at the new signal.

What code are you referring to?
 
Hi all,

I'm trying to set up a buy condition based on the amount of buy signals my system is generating at the time.

I am basically trying to use this method:
http://www.amibroker.com/guide/a_addtocomposite.html

Where data is stored in a false ticker.

Here is the code I'm currently playing with, but have tried many variations without much luck.


buysignalcount = Buysignal;
AddToComposite(Buysignalcount, "~BuySignalCount", "C");

BuySigAvg = MA(Foreign("~BuySignalCount", "C"),10);
AddToComposite(BuySigAvg, "~BuySignalCount", "V");

Graph0 = Foreign("~BuySignalCount", "C");
Graph0 = Foreign("~BuySignalcount", "V");


So it's generating a false ticker ~BuysignalCount, and adding the buysignals to the close price of the ticker. I can get this to work.

I'm then trying to get the MA(C, 10) for this close price, and add it to the same ticker as the volume. I can get the volume to display, but the numbers are in the 1000's, and they should be <10. Can't work out the issue here.

Once I get the volume working I want to be able to reference this volume specifically in the code so I can add a buy condition based on it.
Basically I dont want to be buying if there aren't enough buy signals being generated.

Cheers

I think i've managed to get this working..

buysignalcount = Buysignal;
AddToComposite(Buysignalcount, "~BuySignalCount", "V", 1 + 2 + 8 + 16);
Graph0 = Foreign("~BuySignalCount", "V");

Then as a condition of entering the trade:

Cond23 = MA(Foreign("~BuySignalcount", "V"), MAperiod) > xxx;
 
Hi all,

Thought I had ironed all the creases out of my system, but had an unexpected sell last week. It seems as though I am not using the Foreign and EMA correctly. Any thoughts?

// 2. Filter so the market is bullish
XAOSym = Foreign("XAO","CLOSE");
LowerEMA = EMA(XAOSym ,LowerExitEMA);
UpperEMA = EMA(XAOSym ,UpperExitEMA);
MarketBearish = LowerEMA < UpperEMA ;

I am getting different values for the UpperEMA as shown in the attachment.

SellSignals.jpg

Cheers
 
Hi all,

I think I have worked out what is going on... found the comments below in the help. Doesn't look like there is much I can do other than be aware of the behavior.

Cheers

Foreign function synchronizes the data file
you are referencing with the currently selected symbol.

Synchronization makes sure that EACH bar of FOREIGN data
matches exactly with each bar of currently selected symbol.

So if DateNum() function returns 990503 for given bar
then Close array represents the CLOSE of currently selected symbol at May 3, 1999
and Foreign("SYMBOL", "C") represents close of foreign symbol at May 3, 1999 TOO.

This is absolutely necessary because otherwise you won't be able
to do ANY meaningful operations involving both selected symbol and foreign symbol.

This also needed for the display so when you mark the quote with vertical
line it will always match the date displayed regardless if you use Foreign or not.

Please note that if you have data holes in currently selected symbol then in order to synchronize bars Foreign function will remove bars that exist in Foreign symbol but do not exist in currently selected symbol.
 
Newb question: say I put a horizontal line from the sp years ago and then the sp has gone down or up by a significant amount, is there a way I can 'scroll down' the window to see where the line is?
 
Newb question: say I put a horizontal line from the sp years ago and then the sp has gone down or up by a significant amount, is there a way I can 'scroll down' the window to see where the line is?

The best place to look for an answer is in the User Guide where it notes that you have control over the Y-axis which would permit you to see any previously drawn line (http://www.amibroker.com/guide/h_charting.html)
 
Newb question: say I put a horizontal line from the sp years ago and then the sp has gone down or up by a significant amount, is there a way I can 'scroll down' the window to see where the line is?

Move your mouse pointer over the price at the right of screen. Click and hold as you drag up or down.
 
Does anyone know of an AFL which displays ASX announcements/or news feed for Amibroker?

Understand that I might be asking for something which doesn't exist. :(
 
Top