I would like to integrate in my strategy a condition that would allow only one trade per side but I don't see what type of function to apply.
The idea is the following, after the EMA8 crosses over the EMA20 I want to take only one buy trade even if the other conditions are met until the cross is down and in this case I would like to take only one sell position and so on.
I thought about the boolean condition but I can't find the possibility in strategy builder to say that if the last position was a buy then I can take the sell. If this is possible I will not need to take into account the crossing of the moving averages.
Could you please give me a line of thought?

Comment