There's several ways to do this in AB:
1/There's an export.js script in the Amibroker scripts folder that you can run.
2/There's an export AFL in the library that Kaveman has written.
http://www.amibroker.com/library/detail.php?id=327
3/Using an exploration AFL is another way to output data to a CSV file. Scroll down to the "examples" on this page:
http://www.amibroker.com/guide/h_exploration.html
Each option has it's advantages and disadvantages and each will probably require some adjustments to achieve the output you require.
Aaaayyyye! Cool Cap'En, I'll give it a whirl later.
Cheers,
CanOz
I think you'd need to do the stop calculation in the custom backtester to use current equity instead of initial capital.
And you need to be aware that ATR(20) could well be a bit different when calculated in the backtester than when calculated in the main code, due to differences in days traded (ie. bar alignment happens in the backtester). If it's a liquid stock though that trades every day, then the difference may not matter much.
GP
Try this
Risk = -1;
PositionSize = (Risk/TrailStopAmount)*BuyPrice;
Thanks for the response; not at my trade-puter at the moment, but will check it out. Knew it would probably be something obviousCheck the bar period setting in analysis window
Hello and welcome to Aussie Stock Forums!
To gain full access you must register. Registration is free and takes only a few seconds to complete.
Already a member? Log in here.