I am looking for the right syntax to increase or decrease my number of contracts based on whether or not I won or lost my last trade or series of trades. I know how to increase or decrease my quantity pretty easily, but I am unsure how to make this a condition based on the results of my last trade or last few trades. For example: If in my last trade I lost maybe on the next trade I decrease my number of contracts from 3 to 2, or if I lost my last 2 trades I increase my number of contracts from 3 to 4. I just don't know the specific syntax to look back at the last series of trades. Previous trade outcome 1, 2,3,4, etc.
Could anyone fill in the blanks a little bit in terms of what syntax I would use to see the last few trades?
I apologize if this has been asked previously in another question, but I had no luck finding it, as I don't know the exact wording or syntax that should be used to refer to the outcome of the previous few trades
Thanks,
Ian
Comment