Australian (ASX) Stock Market Forum

Amibroker FAQ

I lost the key awhile ago and this is what AB told me to do. I have removed the link code obviously and I don't know if it will trigger any memories for you so good luck with it.


Thanks Wysiwyg found mine after going back through my emails last night

Anyone with guidance on which files I can copy over so all my settings, databases etc remain the same

Thanks
 
Thanks Captain your links nailed it your help as always invaluable
 
Hi

Can someone please help me put this into AFL language.

"Most recent bar that made a higher high and a higher low than the current bar"


Do I have to put a time frame on it. I was hoping to have it just look back an unspecified number of bars until it finds the first one that met the criteria. I know how to make it the highest high in 5 days etc.

Is this possible?

Thanks
 
Hi

Pennies I am trying to work out something similiar. I have a zig zag pattern with the price moving up to a high (a), then price moves down to a low(b) (over any time span, but movement is always down from the high), and I want to buy when I get a new high that is larger than the high of the low (b).
Any help would be greatly appreciated.

Thanks
 
Hi
Can anybody help for the trail stops to follow the condition Buy=cross(macd(),signal()); and short=cross(signal(),macd());

HTML:
k =Optimize("k",Param("k",2,0.25,4,0.1),0.25,4,0.1);  
per = Optimize("per",Param("per",5,1,24,1),5,24,1); 
filt = ATR(per)*k ;
Lo = 0; 
Hi = H + 2*filt;
for(i = 2; i < BarCount; i ++)//2 
{ 
   if(i == 2) trend[1] = 1;
   if(trend[i-1] == 1) 
   { 
      LoN = L[i] - filt[i]; 
      if(LoN > Lo[i-1]) 
      { 
         Lo[i] = LoN; 
      } 
      else 
      { 
         Lo[i] = Lo[i-1]; 
      } 
      if(L[i] < Lo[i])    
      { 
         trend[i] = 0; 
         Hi[i] = H[i] + filt[i]; 
      } 
      else trend[i] = 1; 
   } 
   if(trend[i-1] == 0) 
   { 
      HiN = H[i] + filt[i]; 
      if(HiN < Hi[i-1]) 
      { 
         Hi[i] = HiN; 
      } 
      else 
      { 
         Hi[i] = Hi[i-1]; 
      } 
      if(H[i] > Hi[i]) 
      { 
         trend[i] = 1; 
         Lo[i] = L[i] - filt[i]; 
      } 
      else trend[i] = 0; 
   } 
} 
Hi = IIf(!trend, Hi, Null); 
Lo = IIf(trend, Lo, Null); 
Plot( Close,"Price",colorBlack,styleBar);
Plot( Hi, "hi", colorGreen );
Plot( Lo, "lo", colorRed );
Thanks in advance.
 
Hi,

Looking for a Divergence indicator for RSI, have looked everywhere. Most are inadequate and do not pick up all the divergences that occur.

More than willing to pay for it if it works and preferrably does not use the Zig Zag, trough or peak functions.

Cheers
 
Yes tried that one as well.

Thanks anyway, appreciated.

Someone must have written a decent divergence indicator, will keep looking and having a go coding one myself.

Cheers
 
Anyone know how to implement two ApplyStop functions in one strategy please?

There needs to be a function that links the Long trailing stop to the Buy and the Short trailing stop to the Sell. After +10 hours of searching archives I have not found the answer. From what I am experiencing, the ApplyStop function can't be isolated to one variable.

The IIF function is very handy but I couldn't work out how to get the link from Buy to long trailing stop and Short to short trailing stop. It needed a flip. I have tested it with an ATR trailer on a Long/Short strategy and it worked for all the trades I checked the stop against. Please, if anyone finds this does not work for them let me know. It works on my strategy tester. So simple, flip.

Two Trailers

PHP:
Buy = yyy;
Sell = 0;
Short = mmm;
Cover = 0;

Swap = Flip(Buy, Short);

LongTrail = 5 * ATR(14);
ShortTrail = 3 * ATR(14);

ApplyStop(stopTypeTrailing, stopModePoint, IIf(Swap, LongTrail, ShortTrail), 2);
 
I hope someone can help!

Was playing around with a system and deleted a chart. That is fine BUT now on all my charts I seem to be stuck on AIG somehow I seem to have broken the link between the chart I am seeing on screen and the one I am selecting in the selection window. Same with Automatic Analysis window, when I select a stock that my system has brought/sold that stock isnt been brought up on screen STILL AIG !!!

I had abviously done somthing stupid and hopefully simple so could someone help out a stupid and simple one!!!
 
Could someone please help me with this formula.

I want to code a profit stop for "entry plus 2 x 20ATR from the entry" and a failure stop at "entry minus 1 x 20 ATR".

The profit stop is not a trailing stop just a set target of the entry price plus 2 times 20ATR.

Any help appreciated. Having a lot of trouble.

Thanks
 
Could someone please help me with this formula.

I want to code a profit stop for "entry plus 2 x 20ATR from the entry" and a failure stop at "entry minus 1 x 20 ATR".

The profit stop is not a trailing stop just a set target of the entry price plus 2 times 20ATR.

Any help appreciated. Having a lot of trouble.

Thanks

This is the profit stop.

Profit = 2 * ATR(20);
ApplyStop(stopTypeProfit, stopModePoint, Profit, 2);

This is the stop loss.

Loss = 1 * ATR(20);
ApplyStop(stopTypeLoss, stopModePoint, Loss, 2);
 
I have a dreadful time with real time feed into Amibroker if I have an indicator running that is doing some number crunching. Not a high degree of crunching but nevertheless the load factor is too high to run the real time data feed effectively. A huge drag. I have the database settings to 5000 bars (10 days approx.) and time frame at 1 minute.

Anyone have similar experience and know a fix please.
 
Hi all, I just ordered the Amibroker Pro and now try the Premium Data, but it looks like there is something wrong with the watchlist in the premium database. When I expand the "Watchlist" in the "Symbols" tab, there are a lot of invisible watchlists (name is blank) in the beginning (the first visible watchlist is "Absolute Return Funds"). I could not rename the invisible watchlist and no Pop-Up Menus appear when I left click on it.
I would like to make my customized watchlist, and I suppose these invisible watchlists are actually made for that purpose, just can someone let me know how to make them customizable?
Thanks!
 
Hi all, I just ordered the Amibroker Pro and now try the Premium Data, but it looks like there is something wrong with the watchlist in the premium database. When I expand the "Watchlist" in the "Symbols" tab, there are a lot of invisible watchlists (name is blank) in the beginning (the first visible watchlist is "Absolute Return Funds"). I could not rename the invisible watchlist and no Pop-Up Menus appear when I left click on it.
I would like to make my customized watchlist, and I suppose these invisible watchlists are actually made for that purpose, just can someone let me know how to make them customizable?
Thanks!

I just found that the watchlist could be modified by editing the file "index.txt"
 
Top