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.
Size:
Color:
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
Size:
Color:
let me check the doc and digest. thanks
Size:
Color: