Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I've removed shorting from this kata, these issues should be resolved now.
Yeah, this kata expects some outside knowledge (about shorts, for example). It's not too deep, though. Some different, simpler article could probably introduce the concept better and solve this issue.
But, regarding my previous comment, now I lean towards thinking that the best solution is to abandon shorts altogether, making this kata a simple "buy, sell, buy, sell..."
To support B4B's comment, I had problems understanding what exactly short position means. The link did not helped me too much, but maybe I did not read it carefully enough?
the main problem I see is that your kata isn't a programming kata but more an economic kata. What I mean is that you're basing the resolution on knowledge outside the usual scope of problems, assuming the user already knows what you're talking about, without giving much information aside (the links seem rather poor to me). I personally have absolutely no idea what you're talking about (but I have to confess I'm somewhat allergic to economy related stuff, yeah... x) )
do you want your kata to be moved back to beta so you have more time to fix issues?
Now, as I think more about shorting, I see another problem. How much shares should the trader borrow? He's not limited by his deposit, as he is with longs. So, if he can short, he can theoretically short any amount. Calculating something based on liquidation price is meaningless, because he'll never get liquidated. So, how do we determine this? Idk, maybe we should get rid of shorts altogether, sticking to the "no leverage" rule? Otherwise, why not also have leveraged longs
50% profit at step 4 is incorrect, it's misunderstood shorting, same as in the OP example.
I don't really know what to say about the general approach. The point is just to squeese the most out of every price movement.
no, go ahead. Better to have something correct than "flawed because already approved".
Btw: I understand shit to the requirements... (like point 4: cannot get my head around that 50%. Doesn't make sense to me... Same about the general approach. Is it greedy or not? for 6 kyu, you should just drop the info clearly)
Whoa, you're right. Great observation. It's insane, how I let it through. I guess, it's too late to change the requirements and break existing solutions. I'll think how to justify the current formula in the description