Quote:
|
Originally Posted by daraknor
I agree, decrease factor wasn't working properly and was useless. I hadn't played with it or decided on how I wanted to fix it. I saw what the code was *intended* to do, and wasn't sure it was a good idea. Can we have a DecreaseFactor that is used as a percentage? Something like this:
DecreaseFactor=50 - 0 loss=100% lotsize
- 1 loss = 50% lotsize
- 2 loss = 25% lotsize
DecreaseFactor=10 - 0 loss = 100% lotsize
- 1 loss = 90% lotsize
- 2 loss = 81% lotsize
A value of 100 would stop trading immediately after a loss. Since there isn't a massively increasing lotsize based on wins (only balance changes) a massive DecreaseFactor may not be a good idea. Having a configurable value seems important to me.
Also keep in mind that some brokers round off decimals. A 0.9 lot becomes 0 lot I believe. We need to make the lot sizes decimal safe (I think Phoenix has a global decimal tracking system but I don't remember.)
If we can get something like this, I think that would be worthy of a new release. I was also considering email/screen alerts after 2 consecutive losses.
|
I came up with those numbers by optimizing. Well not the traditional way. I would allow for 3 factors to be used. We could put it into one string (My settings would have been 802000). Or 3 strings of 2. Your percentage Idea, I find too limiting. I actually tried formulas similar to yours. Things that felt mathematically good and symmetrical in some way. They didn't give the kind of results I wanted. I just stumbled upon the best result. I wanted to float the idea to see if it was any good.
I think 3 strings of 2, would lead to best optimization.
The best formula I came across indicates. 1 loss is nothing. 2 losses is a warning, things are deadly ahead, 3 losses stay out totally.
On your other point about partial lots. I think you said If you are trading mode 3 then you should use a micro account so it will use partial lots.
So lets find some common ground and I'll send you some code. I'm not so sure about how to make things lot safe.