Hi traders! Im sezeones an engineer and hobby trader in my free time
I made a simple EA (code not optimized) that as a standalone strategy places a buy and sell of a given lotsize at the same time and while closing the side that is following the trend in profit the other one continues opening trades X distance from the last one (NOT INCREASING THE LOT SIZE) and calculating an average tp for all the orders of the same side, once the batch of orders hits the target it starts again.
Example:
I made a simple EA (code not optimized) that as a standalone strategy places a buy and sell of a given lotsize at the same time and while closing the side that is following the trend in profit the other one continues opening trades X distance from the last one (NOT INCREASING THE LOT SIZE) and calculating an average tp for all the orders of the same side, once the batch of orders hits the target it starts again.
Example:
- Market is trending up and our inputs are tp 50, distance 150
- Open Buy 1lot
- Open Sell 1lot
- Buy closes at tp and another Buy 1lot gets opened
- Buy closes at tp and another Buy 1lot gets opened
- Buy closes at tp and another Buy gets 1lot opened and another Sell 1lot open (tp is the average of all sells openprices + tp)
- Both sells reach the averaged tp and the orders batch get closed, another sell 1lot gets opened
- cycle continues...
Things that i can do:
- If you have any idea on how to improve this "strategy", especially to reduce the drawdown im willing to code a new version and optimize the code.
- Instead of random trades code another strategy to enter the market and this current EA as a money managment tool
DISCLAIMER: USE AT YOUR OWN RISK
Attached File(s)
averaging_scalping_v3.mq4
7 KB
|
81 downloads