Australian (ASX) Stock Market Forum

Amibroker FAQ

Does anyone know how to code in a trailing stop for amibroker? It is a short term SHORT system.

Here's what I have so far -
ApplyStop( stopTypeTrailing, stopModeBars, Ref(HHV(H,3),-1), True);

What I want is a trailing stop to follow behind at the highest high of the last 3 bars, also is there a way I can also put in a profit protecting stop at say 50% of open profits? I also want to put an intial stop at the High of the entry bar.

Thanks in advance for any help offered, I such a nuff nuff when it comes to writing code.:banghead:
 
Does anyone know how to code in a trailing stop for amibroker? It is a short term SHORT system.

Here's what I have so far -


What I want is a trailing stop to follow behind at the highest high of the last 3 bars, also is there a way I can also put in a profit protecting stop at say 50% of open profits? I also want to put an intial stop at the High of the entry bar.

Thanks in advance for any help offered, I such a nuff nuff when it comes to writing code.:banghead:

On second thoughts - An intial stop at the High of the signal bar followed by a percent of profit risk stop.

Something like this? But how do I put in the intial stop?

ApplyStop( stopTypeTrailing, stopModeRisk, 50, True);
 
Hi guys, just downloaded a NYSE database which contains quite a few no quote, delisted tickers. Is there a quick way in AB to identify these stocks, or those that have not traded in the past say year, and delete in batch?

I vaguely remember the ASX database I downloaded a long time ago had this function but yeah, any help appreciated!

EDIT: Or perhaps a way through AmiQuote? It tells me all the symbols that it wasn't able to get quotes for, maybe from there?
 
Hi guys, just downloaded a NYSE database which contains quite a few no quote, delisted tickers. Is there a quick way in AB to identify these stocks, or those that have not traded in the past say year, and delete in batch?

I vaguely remember the ASX database I downloaded a long time ago had this function but yeah, any help appreciated!

EDIT: Or perhaps a way through AmiQuote? It tells me all the symbols that it wasn't able to get quotes for, maybe from there?

Tools > Cleanup Database

Should do the trick ;)

Cheers
Brad
 
hopeing someone can help with a strange problem ive found with my database.

it seems most (if not all) of the quotes in database (ASK all ords) have now got prices for the 20th Sept 2061, 2062, 2063 and 2064. ie: all charts look fine up to todays date but then have a little bit of september tacked on the end.. very odd.

I have no idea how this occurred but im wondering if anyone knows a quick way to rid all my tickers of these few days of data? ive tried the manual "Quote Editor" way however it seems i have to do this for each indivudual stock. is there an easier way?

Thanks!!
 
--B--,
What data are you using?
Might be best to delete your database and reload the historical data if possible

Brad
 
Quick little one for the more experienced. How do I change my date setting so it reads day/month/year instead of how it currently reads @ month/day/year?

Cheers.
 
Quick little one for the more experienced. How do I change my date setting so it reads day/month/year instead of how it currently reads @ month/day/year?

Cheers.

Johhny,

I don't have the answer yet but how is your PC configured? What date format is currently active?
 
ive been playing about with a very simple MA crossover system and was wondering if someone can help explain if im doing something wrong.

when i get my results (running the test over a single symbol) ill often get an entry in which the trade is identified as "Long (6)" rather than simply "Long", and i get all sorted of crazy losses (like 99% of my position) which obviously ruins my results.

Am i doing something wrong with this?
 
update - pretty sure i figured it out and can blame the issue on my crap free data!!

If you want me to test the system out p.m it to me and i'll give you the results, should tell you whether it's your data or not.

Brad
 
thanks beamstas but ive worked it out. i can track the trades where the error occurs and its definitely my data.

eg: the share might be trading at 3.30 when im holding then all of a sudden the price drops to .0125c or something ridiculous like that for a few days then pops back up to its normal price. so the backtest sells at the ridiculous price and i lose all my capital.

it doesnt happen with every share.. but happens to quite a few.

i think ive got to make the call and pay for my data.
 
Apologies for my extremely noob question. But am I correct in saying that if I want live prices on Amibroker then the only way to achieve that is from paying for a subscription? Or can you not get live prices full stop? Sorry again for the stupid question.

Thanks a lot
 
Apologies for my extremely noob question. But am I correct in saying that if I want live prices on Amibroker then the only way to achieve that is from paying for a subscription? Or can you not get live prices full stop? Sorry again for the stupid question.

Thanks a lot

As far as I know, YES, only paid live prices.

Anyone using the 5.20 version of AB? I just upgraded my IB plugin to the latest (which comes default with 5.2), am getting lots of "exception caught while reading socket" error messages when trying to backfill. Have updated all my tickers to the latest convention, anyone know what this message stands for?

Cheers
 
Top