percent time in the market

 

hi,

is there any way in backtesting to know the percent of total backtesting time the EA have been in the market? somthing like tradestation performance report do?

thanks 

 
michelino:

hi,

is there any way in backtesting to know the percent of total backtesting time the EA have been in the market? somthing like tradestation performance report do?

thanks 

One way to figure this out is to go to strategy testers Results tab and see the average position holding time and multiply this by the number of trades then this product is divided by the backtest period. There might be simpler ways to do it but this should get the job done.

Cheers,

Candles

EDIT:

Please note that this method is not 100% accurate in every case though :(

 
Oh and of course one approach if to solve this programmatically. One could code a block that keeps track of the time the EA is exposed to the markets and logs this somewhere.
 
Candles:
Oh and of course one approach if to solve this programmatically. One could code a block that keeps track of the time the EA is exposed to the markets and logs this somewhere.

ok.

thanks