Hi everyone, I'm looking for a simple way to code adding to a open position. I have an entry defined with a few criteria, I want to only have a max of 4 entries every time my criteria occurs. I'd like to adjust each entry amount like the SetHoldings, 0.2 for one, 0.4 for two, 0.6 for three, 1 for fourth.

I saw the post about Martingale, but that seems more code to implement than I want to deal with since I'm new at Python.

If anyone already has a simple example that I can work with that would be great.

Author