I have this code for an indicator but would like it as an EA. I have no idea how to do it. Any help appreciated.
Code for indicator is attached.
I would like adding to it a martingale type system, inclusive of:
Trailing stop loss
Lot Size 1, Lot size 2 etc etc.
Restart new cycle once take profit hit.