I need some coding for the MT4 trading platform
(Negative offload line)
After a trade entry a green horizontal line will appear on the chart and go above/below the entry of the trade. This will be set at a level of where your trade would be if it went negative by 50% – This will be an interactive line that can be clicked and moved.
When price moves against your position and hits the green line then 50% of the position will be automatically offloaded/closed. (Changeable input - Ie: offload 50% - True)
(Positive offload lines)
2 blue horizontal lines will appear after entry of a position.
One that is at 1:1 from entry
The other is at 2:1 from entry
These are also both interactive and can be clicked and moved on the chart.
When price hits the first blue one then 50% of the current position is offloaded. (Changeable input - Ie: offload 50% - True)
When price hits the 2nd blue line the remaining position is closed.