Hi, this is it. (Rev B)
1. Add stoploss for attack martingale code.
2. Modify AUTO LOT SIZE calculation code
3. Add AUTO by equity percentage (Profit dollar is changed based on equity percentage in your account)
If you don't want to use profit$, then select "Unuse", instead you use tp/sl or trailing stop to close orders.
If you want profit by manual input (dollars), select Manual input and put profit dollars.
If you want to use AUTO profit by lot size increase, then select AUTO by lot size (you also need to change lot size from Fixlot size to Risk percentage)
If you want to use AUTO profit by equity percentage, select AUTO by equity percentage and put profit dollars. Profit dollar is placed based on your account equity.
Please test it.


( I will use this templete from next EA!)
View attachment 70568