Basic questions regarding AmiBroker

Discussion in 'Programming' started by Stoopidly, Dec 17, 2012.

  1. Hi all,

    I bought AmiBroker a couple of weeks ago and have been testing playing around with it for a bit. I have a couple of questions that have been bugging me for a little while now.

    1. From my understanding, instead of using different data types like double, bool etc. it converts everything to float ? What does this mean, do I use int for everything and AFL converts it to float?

    2. I'm trying to use if-else if statements but it won't accept the use of arrays, like the Average True Range, any ideas on how I would make it accept ATR, or something similar? I have tried searching around, and found that I could use an 'Iif' statement, but I don't understand how I would apply that if I need if-else if statements.

    3. I would like to know what kind of drawdown I'd see on open positions, is there a feature for this in AmiBroker? Or any idea how I would apply that to a code?

    I know this probably isn't the right place to be asking these questions, I found an AmiBroker forum, but it didn't seem to be very active. So I'm hoping someone on here could help me out.

    Any help is appreciated.
  2. Thank you very much for that reply, aldey.
    Now my strategy is finally starting to look like the one I made in NinjaTrader. I didn't expect such a thorough reply, this has been really helpful for me. Apologies if my questions seemed a bit confusing, my programming knowledge is indeed very limited. Though, you responded with clear statements that was easy for me to understand.

    Didn't know about the Yahoo forum for Amibroker, I will definitely check it out.

    Again, thank you so much for your response, I really appreciate it.
  3. If you Google 'Amibroker' + your query, often you'll find a formula which you can use for coding ideas.

    There is another forum, it's based in Australia called 'the chartist'.
    It is a very quiet forum, and one needs to register to see the forum, but they do have Amibroker boffins on there who very readily assist with coding issues.
  4. Thanks to the both of you.

    Will try out SelectedValue() and LastValue(), looks like they could be very useful for me.
  5. The guy who runs it with his wife, basically uses the web site to plug their own product which is a charting service and book.
    He's an Elliot Wave guy.
    The site was quite popular once but now nearly lifeless.
  6. Sanz