q-trader icon indicating copy to clipboard operation
q-trader copied to clipboard

Multiple buy before any sell

Open lamhk opened this issue 7 years ago • 2 comments

Hi, I found that there maybe multiple buying if the action == 1 is true, which means the program will record multiple buy before any sell could happen. And there is no limit of number of "buy" could be allowed. This is very different from real life situation. Am my understanding correct? However, when I tried to limit the "buy" to 1 if the system already hold a long position. I found the result during training is not stable and most of the time is negative. Do I miss something? Many thanks in advance.

lamhk avatar May 18 '18 05:05 lamhk

I noticed the same thing. By doing so when you include a training sample with upward bias the agent will just try to pile on every single dip. It is just a martingale betting system.

windwine avatar Feb 05 '19 17:02 windwine

I implemented a money system and it doesn't seem worth it. I used the "Better method from the pull requests" Going to do this with the standard and see if I get better results. https://github.com/zjs81/q-trader

zjs81 avatar Aug 15 '21 08:08 zjs81