@xyon126 Try this code: https://fxdreema.com/shared/OaBJphFqd
However, in order to use it you have to create a variable that you will call: LOT which you will initialize with 0 (zero), and which you will put in place of the buy and sell lots in the market. And also you will have to create 2 constants, 1 you will call it: PERCENTAGE, and you will put the percentage% of Equity you want to put into play,(to calculate 1% you will have to write 0.01 while to calculate 10% you will have to write 0.1). And the other you will call it: MINIMUM_LOT, and inside you will put the value 0.02 that is the minimum of the lot beyond which you must not go down. I hope I was clear.
