Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/9029
Drag & Drop the script at chart on point where StopLoss should stay. Script will compare desired StopLoss with the current price and determine the type of the order - Buy or Sell. The next step is calculating the volume according Free Margin and the RiskMACD Histogram WIS
MACD lines and histogram for the Impulse trading system.