some help needed on my EA

 

Hi,
I have recently had a indicator turned into a EA not being a programmer I am only capable of reading and understanding some code not writing it.

I am looking for some code snipets to do the following so that i can backtest and decide on the best way forward.

at present my EA just runs at a fixed lot size.

I am looking for code i can add to do the following.


1/ after a loss increase the lot size by xx untill a win then return to original size

2/ take the account balance and a risk required say 2% of balance and then work out the lot size, adjusting it for each trade.

Thanks in advance for any help offerd.


Console.

console_2002@yahoo.co.uk


here is the EA code i am using.





Files:
Reason: