I am trying to use the backtesting for the first time.
I am entering simple codes just to see how it works. Everytime I enter something it says -100% and every single trade is a loser. For example I said buy if close is HHV of last 20 days, sell is close is LLV for last 20 days.
The following is coming up.
1. How does it work with position sizes? As you can see above the red highlighted trade opens a trade with 10 shares. The next one opens a trade with 1983.14 shares (and why is it using decimal points)
a.)Why are position sizes different?
b.) Why does it use decimal points?
2. Can someone give me a basic code that produces some winners and losers and not 100% losers so I can a) have a play around with it and b) maybe see where I've gone wrong?