Sorry I don't know English, so I temporarily use Google Translate to send this message to you. Hope you understand what I said.
I am developing a very profitable EA, within a short period of time and especially, this EA started with a very small initial capital. (EA
However, because I do not have much knowledge of programming, I am having a little difficulty in optimizing profits for EA.
I need your help with 2 things:
1) I need you to write a function to calculate the Total Tick Fluctuations of the Bar(1) in the M1 time frame, and from there, calculate
the total number of fluctuating Points in 1 bar M1.
I call this the price fluctuation function (DD).
The total number of ticks for the bar(1), the M1 time frame is: 5.
DD = MathAbs (last_tick  -last_tick ) + MathAbs (last_tick  -last_tick ) + MathAbs (last_tick  -last_tick ) + MathAbs
(last_tick  -last_tick  -last_tick  4])
This is completely different from getting iHigh (1) -iLow (1).
2) As you can see in the attached file, I wrote 2 separate EA for Buy and Sell. And both directions are profitable.
I tried to merge these 2 EAs into 1 EA but it didn't work. Can you help me write a separate closing function for the buy and sell part?
If you can help me, I'll give you 1 year of using this EA. With 1 year of use, you can become a millionaire from the initial capital of $ 100.