仕事が完了した
指定
I need to convert a trading view indicator "Pine script" into mql5 indicator then I want to use it in an EA.
You can find the indicator at this link and this is the indicator name “SGDDEMAATRB [Loxx]”. and i will attach the source code here.
the indicator shows HikenAshi candelas and a a two color line.
the drawings are important here. it must be shown on the MT5 correctly.
when the indicator changing the Trend it should give sign on the chart (Long/Short)
also all the indicator input are required.
i need the source.
the MT5 EA:
you will use the developed indicator to build an EA with it with those specifications:
1- all indicator inputs.
2- all standard input like, lot size, TP,SL, detailed Trailing Stop(Trailing Start, Distance, TrailingStep) with bool input to activate. and Break even also with bool input to activate.
3- a bool input to show the indicator drawings and HikenAshi on chart
4- the EA will open order when the indicator change from bye to sell /OR VS/
5- i need an input to open a number of orders from the same signal. i.e. if #Orders=3; and the trend changed from short to long, the EA will open 3 Buy orders of the same size.
6- opposite direction will close previouse orders. i.e. if i have 3 buys in the market and the trend change to be short. the EA will close the 3 buys. (also bool to use or not).
7-if #Orders>1 then, the EA will close the initiated orders -1, if it revisit the Open Price of the candle that initiate the orders.
it means: lets say #Orders=5. and we have new signal, we open 5 orders. 4 of those 5 orders will be closed if the price reach the opening price of the candle we initiate the order from. one order will be left to close either on TP or SL or on trend change or trailing stop.
if the EA close the 4 order after visiting the Open Price. the EA must open 4 New orders on the open of the next candle.
also input bool to activate this feature.
General Conditions:
-the code MUST be Clean, Organize and well commented.
-use methods and functions to make the code reusable. and sound variable naming.
- Deliverables are 1 MT5 indicator with the source code and 1 MT5 EA with the source.
- all job should be done within 3 days