Hi - You can turn off that range checking by adding this to your code - SetOption( "PriceBoundChacking", False" );
Steve ----- Original Message ----- From: Potato Soup To: amibroker@yahoogroups.com Sent: Saturday, December 26, 2009 2:50 AM Subject: Re: [amibroker] Does anyone do FX backtesting? I tried using BuyPrice/SellPrice/ShortPrice/CoverPrice but the problem is it won't take values that fall outside the range of the Low and High for a bar. I can't think of any other way to trick it, any ideas? ------------------------------------------------------------------------------ From: Potato Soup <potatoso...@yahoo.com> To: amibroker@yahoogroups.com Sent: Sat, December 26, 2009 1:27:54 AM Subject: [amibroker] Does anyone do FX backtesting? How do you handle pairs quoted against the dollar, such as USDCAD? To the backtester it will look like the symbol costs 1.0579, when in fact it costs .94520. Is there a way to fix this automatically, or do you test for this in the script by looking at the pair? And if the latter, how do you retrieve the price so that you can invert it?