Backtesting questions

Questions about MultiCharts and user contributed studies.
Duvald
Posts: 18
Joined: 11 Dec 2008

Backtesting questions

Postby Duvald » 24 Jul 2009

Hi,
I have two question about backtesting with multicharts:

Can some condition be set to either True or false.
Example, I want to backtest a system, and a condition is ADX > 30. I want to backtest with this condition either true or false.
Is this possible ?

The other question is about High-precision backtesting has been added in 5.5.
Can you be more specific, give exemple or show documentation about this ?

Thanks,
Duval

User avatar
TJ
Posts: 6572
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 968 times
Been thanked: 1901 times

Re: Backtesting questions

Postby TJ » 24 Jul 2009

Hi,
I have two question about backtesting with multicharts:

Can some condition be set to either True or false.
Example, I want to backtest a system, and a condition is ADX > 30. I want to backtest with this condition either true or false.
Is this possible ?
...
Thanks,
Duval



the short answer to the short question is -- YES

geektrader
Posts: 100
Joined: 17 Jul 2009
Location: Germany

Postby geektrader » 24 Jul 2009

And a simple example code for that would be:

-----------------------

input: ADXperiod(30), ADXTrigger(30);

condition1=false;
condition1=ADX(ADXperiod) > ADXTrigger;

If condition1 then buy next bar at market;
if condition1=false then sell next bar at market;


Return to “MultiCharts”