Работа завершена
Техническое задание
Add an iCostum function into a working mql4 EA.
The routines for stopp loss, take profit are working properly in the file 'OMAPartialClosing_Test' and do not need to be changed. Same with one closing order that is closing part of the position at a certain price level following the routine (entryprice - indicator from OMAStopV12 in 'EA OMAPartialClosing_Test' + price for the long side). Final closing of all/parts of the position is done by the indicator 'OMAStopV12'. This indicator is already functioning in the EA by an iCustom function (variables read_top/read_bottom) from the finle ' OMAStopV12 '
Alas, another idicator needs to be imported to the EA 'OMAPartialClosing_Test' . It's values of an iCustom function are supposed to be integrated into a partial closing order (buy and sell). The partial closing order is already programmed and hopfully functioning. The new values have to be integrated from the file 'Stochastic Digi Avg' by an iCustom function in a partial closing order which is alread programmed.
All files are attached, as well as graphics to clarify the job of programming a new iCustom function from file 'Stochastic Digi Avg' into the EA 'OMAPartialClosing_Test. File OMA is the file 'OMAStopV12' is based on, just for a better understanding if neccessary.