Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 43779
- Rating:
- Published:
- 2009.07.09 07:39
- Updated:
- 2016.11.22 07:32
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
MACD lines and histogram for the Impulse trading system.
The idea:- Histogram down (current value less than previous) and line (specified by Line input) does down, the histogram is red - long trades are prohibited;
- Histogram up (curerent value greater than previous) and line up, the histogram is green - short trades are prohibited;
- Histogram down and line up (or reverse case) histogram is grey -no restrictions;
The Inertia is defined by Line input parameter:
- 0 - MA(MAPeriod);
- 1 - MACD line;
- 2 - Signal signal line.
Other input parameters:
- FastMA - Period of Fast Moving Average;
- SlowMA - Period of Slow Moving Average;
- SignalMA - Period of the Signal Line;
- MAPeriod - Period of Moving Average if Line = 0;
- MAMethod - Averaging Method (MODE_EMA by default);
- MAAppliedPrice - Applied Price (PRICE_CLOSE by default);
- Line - described above;
- DigitsInc - Precision format Digits + DigitsInc

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 Risk

Spectr