工作已完成
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
I am looking to get an indicator I use on TradingView (Pine Editor) converted into an MT4/5 Expert Advisor.
It has around 100 lines of code in Pine and opens long and short positions when several conditions are met. It is coded in a way that it is always in a trade at any given time on whichever currency pair, index, or cfd it is used.
It needs to be working for all timeframes/markets and it must also work on various brokers with a trading account denominated in USD, EUR, GBP or other currencies including including Bitcoin.
Please note that the original Pine script is actually coded with variables based on Heikin Ashi Candlesticks which are not natively built-in MT4/MT5, however that indicator is available on the MQL4 free Library.
That might add a layer of complexity to the project.
I need all indicator parameters to be editable from defaults via input boxes.
I would like to have the 2 options for position size calculation.
Option 1, a user defined % allocation of capital per market
Option 2, a fixed initial lot with a size increasing option by a defined percentage when the previous trade ends up to be a loosing one
I would like 3 options for a stop,
Option 1, Automatic stop (or TP) when an opposite position is entered.
Option 2, an adjustable trailing stop for a defined number of pips
Option 3, a manual % for a stop.
With the possibility of enabling one or more options at once.
I would also like to have arrows painted on the chart to illustrate position open/close
I would like to have all source code also, so I can tweak this code myself in the future.
I hope to hear from you soon.
I do not wish to make the code public, so therefore it will be provided upon request to all interested developers.
Here's a screenshot of the indicator in action :