I'm trying to create a strategy who change the quantity in function of the last trade :
If the last trade is a profit, then new quantity is "900".
I try this, but it doesn't work :
If (Performance.AllTrades.Count - 1 > 0)
EnterLong(900, "");
May you help me into this ?

Thank you in advance.

Comment