Portfolio Simulation vs Raw Profit mode: 100% equity
Author: kelvinyip
Creation Date: 1/3/2013 4:11 PM
profile picture

kelvinyip

#1
Hi

I have a simple sample below. If it is monday, we go long else we reverse and go short. If I run this in gross profit mode,
I do see all the trades I expected. for example going long on monday and closing out short and then going long on Monday.

If I run this in simulation mode and put 100% equity or any amount of equity for that matter, I see trades that don't make any sense . Any idea ? Attached is my code.

CODE:
Please log in to see this code.
profile picture

Cone

#2
There's definitely a difference between 100% and "any amount" of equity sizing. Nonetheless, cash derived from trades that are not market orders (i.e., stop, limit, or at close) cannot be used for another trade on the same bar. So, if you bump the equity % below 50, you should see "most" of your trades again.

I say "most" because if it's near 50, there will still be a problem having sufficient equity for all trades due to sizing with basis price. See User Guide: Strategy Window > Backtesting Strategies > Inside a Portfolio Simulation > 100% of Equity Sizing
profile picture

kelvinyip

#3
let me check the doc and digest. thanks
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).