[amibroker] Array returned from function seems to be empty within Custom Backtester

2010-03-28 Thread jacek_lempart
Hi All, Could anyone tell me why ALWAYS anything returned by ATR() is 0.0 within the for loop in the Custom Backtester? I will be extremely grateful for your hints here. regards /* CODE */ SetCustomBacktestProc(""); if( Status("action") == actionPortfolio ){ bo = GetBacktesterObject();

[amibroker] Problem with stop&reverse transactions

2010-02-16 Thread jacek_lempart
Hi All, I have a simple S&R system, however noticed strange thing, which cannot understand: sometimes it happens that based on the code below, there is not transaction when it should be. For example let say, that we have a short position. Then on the next day price is moving up and crosses (or