Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

luten

Members
  • Content Count

    2
  • Joined

  • Last visited

Everything posted by luten

  1. I've never used Trade Bullet, but it looks like it can work with regular text files. So if you want to do this within Amibroker, you can use the fopen( fname, "w" ) function to write a text file with your trade whenever a buy/sell/short/cover is generated (in the format that I assume Trade Bullet requires) and then let Trade Bullet pick it up... I don't think you are going to find any off-the-shelf code for AB that you won't need to tweak yourself for your own purposes. L.
  2. I use AB extensively as well, including within an automated system I'm running. Wrt for/next loops, they are discouraged in AB because the fundamental data type is an array. So most operations are performed on an entire timeline of values at once (which is quite elegant, but a little hard to understand at first). For example, if you have the array 'C' that represents closing values on each bar, then TwentyBarHighs = HHV(C, 20); would set the variable TwentyBarHighs to an ARRAY, each element of which is calculated as the highest value of C in the prior 20 bars (inclusive). For/Next loops are absolutely supported, and are sometimes needed, but usually the array operations are far more efficient. I find AB an incredibly productive and well-supported environment. Takes a bit of time investment to learn, but it's a solid platform. L.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.