Quantcast Amibroker FAQ - Aussie Stock Forums - Page 3

Page 3 of 91 FirstFirst 123451353 ... LastLast
Results 41 to 60 of 1814

Thread: Amibroker FAQ

  1. #41
    Hatchet Moderator doctorj's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    2,675

    Default Re: Amibroker FAQ

    Unfortunately, most of the wonders from the system pasted above was as a result of one exceptional trade very early in the piece. Excluding this trade, the system still shows some potential and I intend to investigate further. As I'm more confident in the system, I will update to the short term system thread.

    If someone can help by providing code that will purchase a second portion of stock after the price has increased by 20% as per my previous post, that would be very helpful.

    Also, if anyone can let me know how to do monte carlo testing through amibroker (is it even possible?) - i'd be very greatful.
    Let blockheads read what blockheads wrote.” - Warren Buffett

  2. #42

    Default Re: Amibroker FAQ

    the example 3 from the help screens could help you
    see furhter down for modified code

    /*
    Example 3: increasing position when profit generated by trade without pyramiding becomes greater than 5% AND decreasing position when loss is greater than -5%
    */
    // percent equity change threshold when pyramiding is performed
    PyramidThreshold = 5;

    // regular trading rules (no pyramiding)
    Buy = Cross( MACD(), Signal() );
    Sell = Cross( Signal(), MACD() );

    e = Equity(1); // generate equity without pyramiding effect

    PcntProfit = 100 * ( e - ValueWhen( Buy, e ) )/ValueWhen( Buy, e );

    InTrade = Flip( Buy, Sell );

    // ExRem is used here to ensure that scaling-in/out occurs
    // only once since trade entry
    DoScaleIn = ExRem( InTrade AND PcntProfit > PyramidThreshold, Sell );
    DoScaleOut = ExRem( InTrade AND PcntProfit < -PyramidThreshold, Sell );

    // modify rules to handle pyramiding
    Buy = Buy + sigScaleIn * DoScaleIn + sigScaleOut * DoScaleOut;

    PositionSize = IIf( DoScaleOut, 500, 1000 ); // enter and scale-in size $1000, scale-out size: $500

    Now to change this to hopefully suit your reequirements
    No guarantees as just typing straight into here



    /*
    modified

    Example 3: increasing position when profit generated by trade without pyramiding
    becomes greater than 20%
    */
    // percent equity change threshold when pyramiding is performed
    PyramidThreshold = 20;

    // regular trading rules (no pyramiding)
    Buy = Cross( MACD(), Signal() );
    Sell = Cross( Signal(), MACD() );

    e = Equity(1); // generate equity without pyramiding effect

    PcntProfit = 100 * ( e - ValueWhen( Buy, e ) )/ValueWhen( Buy, e );

    InTrade = Flip( Buy, Sell );

    // ExRem is used here to ensure that scaling-in/out occurs
    // only once since trade entry
    DoScaleIn = ExRem( InTrade AND PcntProfit > PyramidThreshold, Sell );
    // DoScaleOut = ExRem( InTrade AND PcntProfit < -PyramidThreshold, Sell );

    // modify rules to handle pyramiding
    Buy = Buy + sigScaleIn * DoScaleIn; // + sigScaleOut * DoScaleOut;

    PositionSize = $1000 ; //IIf( DoScaleOut, 500, 1000 );
    // enter and scale-in size $1000, scale-out size: $500
    Cheers
    Graham

  3. #43
    Hatchet Moderator doctorj's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    2,675

    Default Re: Amibroker FAQ

    Thanks for your help.

    Next question, is there a setting that will cause AB to calculate everything based on weekly data (eg. EMA(C,14) would refer to 14 weeks and SAR(0.2,0.02) uses the weekly data)?
    Let blockheads read what blockheads wrote.” - Warren Buffett

  4. #44
    Pigs In Space GreatPig's Avatar
    Join Date
    Jul 2004
    Location
    Sydney
    Posts
    2,368

    Default Re: Amibroker FAQ

    Quote Originally Posted by doctorj
    is there a setting that will cause AB to calculate everything based on weekly data
    If you're talking about in AFL, take a look at the various TimeFrame functions (eg. TimeFrameSet).

    GP

  5. #45

    Default Re: Amibroker FAQ

    If you want everything in weekly, just change the settings in AA settings.
    If you mean mix days and weeks then as GP said look at the timeframe functions.
    Cheers
    Graham

  6. #46
    Jnr VP of Photocopying Dan_'s Avatar
    Join Date
    Feb 2005
    Posts
    152

    Default Re: Amibroker FAQ

    I've just stared to set up Amibroker and was wondering where people recommended getting their free EOD from?

    I've noticed a few different sources and wonder if anyone has any recommendations?

    Thanks in advance
    "Did you see the bubble?"

  7. #47

    Default Re: Amibroker FAQ

    Free EOD data can be found at www.float.com.au
    This is the Australian IPO and Float website.

    Cheers
    J

  8. #48

    Default Re: Amibroker FAQ

    I use float.com.au

    click on the *.txt file (for the day/month/year you want) and save it to your data file/folder.

    then use import wizard to download to your amibroker data file.

    repeat each day.

    If there is a problem with this site, I have resorted to getting it off commsec site (but its not available till after 8.30pm) whereas "float" is available by about 5pm.

  9. #49
    Jnr VP of Photocopying Dan_'s Avatar
    Join Date
    Feb 2005
    Posts
    152

    Thumbs up Re: Amibroker FAQ

    Thanks to both of your for your assistance

    I am downloading 2005 data now
    "Did you see the bubble?"

  10. #50

    Thumbs down Re: Amibroker FAQ

    Ezycast eod is available after 6, sometimes has holes, is in cents and costs money.

  11. #51

    Default Re: Amibroker FAQ

    Personally I would not recommend using free data. You would need to check first if it is the final data issued by ASX that includes the corrections for the day.
    Then with free data you have to make all amendments for splits, consolidations, symbol changes and stock deletions etc
    To me having this automatically done for me is money well worth spending if you want to use any historical data before the today.

    Consider the economics of buying from a reputable data provider against the potential trade losses if your system is based on backtesting on incorrect historical data.
    Cheers
    Graham

  12. #52
    Jnr VP of Photocopying Dan_'s Avatar
    Join Date
    Feb 2005
    Posts
    152

    Default Re: Amibroker FAQ

    Kaveman,

    Thanks for the wise advice. Currently I'll use free EOD data until i get the "feel" of the software. Then will look at paid clean data.

    Again thanks to all for this assistance
    "Did you see the bubble?"

  13. #53
    Jnr VP of Photocopying Dan_'s Avatar
    Join Date
    Feb 2005
    Posts
    152

    Default Re: Amibroker FAQ

    Another question for all you Amibrokers out there,

    I'm looking at buying the software but will want it to run on two separate computers (one at work and one at home). Now only 1 version will be operating at any one time (depending where I am) so I think a single license will be fine.

    Does anyone else run a setup like this? Or would the best bet be to simply install the software on an external USB drive and take it with me?

    Thanks for your thoughts
    "Did you see the bubble?"

  14. #54

    Default Re: Amibroker FAQ

    I believe you are allowed to run it on different computers with same licence, provided it is YOU using it.
    Cheers
    Graham

  15. #55
    Black Gold! Caliente's Avatar
    Join Date
    May 2005
    Location
    Perth
    Posts
    492

    Default Re: Amibroker FAQ

    For EOD I use Yahoo through Amiquote, seems dead easy? If I havent updated in a while I'll run the Historical first (takes a few minutes for the 200+ stocks I'm tracking) and then the Current (2 seconds).

    Works just fine for me, and its free *yay*.

  16. #56
    Jnr VP of Photocopying Dan_'s Avatar
    Join Date
    Feb 2005
    Posts
    152

    Default Re: Amibroker FAQ

    Ladies and Gents,

    Having just purchased Amibroker and some clean data can a few of you Ami-experts suggest a good guide for setting the program up?

    I've had a go and feel it's not right for various reasons. (Data incorrectly stored under group 255m not sorted into sectors and the such).

    Thanks in advance
    "Did you see the bubble?"

  17. #57

    Default Re: Amibroker FAQ

    Hi Dan,

    Try the link below:

    http://www.amibroker.org/3rdparty/ASX_Setup/

    the infomration contained in the directories/files below this link will help you set up your ASX database, as it provides a template that you can use.

    This will assist you in having your data ordered by sectors, as well as the relevant indexes.

    See how you go with it.

    It is not clear whether you are using a plugin or intend to load your data directly into AmiBroker.

    Cheers.

  18. #58
    Jnr VP of Photocopying Dan_'s Avatar
    Join Date
    Feb 2005
    Posts
    152

    Default Re: Amibroker FAQ

    Hey lesm,

    Thanks for the link, I'm downloading the stuff now and will try again regards setting it up correctly.

    Apologies for not being clearer. I have Amibroker and have purchased Bodhi Gold data (past) and 3 months of live update.

    I assume that this is not a direct plugin and I will have to load the data manually.

    If anyone has experience in this data provider your assistance/feedback is appreciated.

    Thanks again
    "Did you see the bubble?"

  19. #59

    Default Re: Amibroker FAQ

    Dan
    I use JustData as well.

    If you go to;
    http://www.justdata.com.au/Training/.../amibroker.htm

    It steps through how to setup the data for AmiBroker.

    You can set up Bhodi to download at a set time every day;
    http://www.justdata.com.au/Training/..._downloads.htm

    It doesn't take much once everything is set up.

    Stevo

  20. #60

    Default Re: Amibroker FAQ

    Quote Originally Posted by stevo
    Dan
    I use JustData as well.
    Stevo
    I do as well and Metastock will be a distant memory when Bodhi has Amibroker data direct without a MS plug-in!

    SB

Similar Threads

  1. How to get Amibroker to get automatic Yahoo ASX data feed?
    By flyhigher in forum Software and Data
    Replies: 23
    Last Post: 2nd-March-2011, 02:20 AM
  2. AmiBroker to TradeSim & Monte Carlo testing
    By stevo in forum Software and Data
    Replies: 15
    Last Post: 3rd-December-2009, 04:19 PM
  3. TechTrader With AmiBroker
    By Peakey in forum Software and Data
    Replies: 9
    Last Post: 31st-October-2009, 11:05 PM
  4. Getting EOD data into Amibroker (www.float.com.au)?
    By markrmau in forum Software and Data
    Replies: 36
    Last Post: 29th-December-2008, 12:57 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Aussie Stock Forums