Hi,
Your question has been asked a number of times in the forum. Here is a link to
one answer previously posted:
http://finance.groups.yahoo.com/group/amibroker/message/129312
Mike
--- In amibroker@yahoogroups.com, "Corey Saxe" wrote:
>
> Hi Ed,
>
> I don't use MaxOpenPositions because it pe
Here is how I do it based on % loss of account equity per trade and a ATR
multiple for max loss.
//---
SetOption("InitialEquity", 10);
CompoundSwitch = 0;
BuyBarsSince = BarsSince(Buy == 1);
ATROpen = Ref(ATR(20),-BuyBarsSince);
BuyPri