Работа завершена
Техническое задание
Hello
I need a simple EA which uses 3 horizontal lines and can also work properly on MeanRenko charts:
Rule for shorts:
- I draw a horizontal line manually and name it ‚entry_short‘
- I draw a horizontal line manually and name it ‚sl_short‘
- I draw a horizontal line manually and name it ‚tp_short‘
1) Wait until a candlestick closed above the entry line for at least 1 candle. It's possible that the price is already above my line in the moment I draw it.
2) Wait until a candlestick closed below the entry line again. (The price breaks the line from top)
3) Open a sell order at the opening of the following candle.
4) Put the SL for this order at horizontal line ‚sl_short‘
5) Put the TP for this order at horizontal line ‚tp_short‘
Rule for longs:
- I draw a horizontal line manually and name it ‚entry_long‘
- I draw a horizontal line manually and name it ‚sl_long‘
- I draw a horizontal line manually and name it ‚tp_long‘
1) Wait until a candlestick closed below the entry line for at least 1 candle. It's possible that the price is already below my line in the moment I draw it.
2) Wait until a candlestick closed above the entry line again. (The price breaks the line from below)
3) Open a buy order at the opening of the following candle.
4) Put the SL for this order at horizontal line ‚sl_long‘
5) Put the TP for this order at horizontal line ‚tp_long‘
- I want to move the lines on my chart according to my analysis and EA should be able to handle this and always check at which value which line lays.
- EA is already placed on chart: When I delete the lines the EA should recognize when I draw and name new lines without reloading EA to the chart.
- Of course the EA trades only at the lines with the names above and not at my other lines.
- This EA should work correctly on MeanRenko charts.
- It's possible to use long and short at the same time, so 6 lines at my chart.
Parameter:
- Magic number
- Comment
- Money management true
=> Risk of equity per trade
- Money management false
=> fixed lotsize
- Max. open trades allowed per symbol (how many trades is this EA allowed to open for every pair: default 1)