The proper construct is positionsize = IIF(equity() > ma(equity(), 20), -20, -10);
Best Regards Rick Osborn
From: Wolfgang Hader <faked@xxxxxxx> To: amibroker@xxxxxxxxxxxxxxx Sent: Fri, November 6, 2009 3:49:41 PM Subject: [amibroker] Trading equity-curve in Amibroker
Hi all,
how can I code some like this in Amibroker
(I know the following code is wrong, but how can I do it correctly in
Amiboker)?