forked from EA31337/EA31337-indicators-other
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs EA31337#8. ATR_MA_Trend now uses IndicatorLegacy.h file to allow…
… using MQL5 versions of iNAME() indicators like iMA(), iRSI() in MQL4. We use it to run MQL5 indicator in MQL4.
- Loading branch information
Showing
2 changed files
with
43 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/** | ||
* @file | ||
* Implements strategy's indicator. | ||
*/ | ||
|
||
#include <EA31337-classes/IndicatorLegacy.h> | ||
|
||
#property indicator_chart_window | ||
#property indicator_buffers 4 | ||
#property indicator_plots 4 | ||
//+----------------------------------------------+ | ||
//| Bullish indicator rendering options | | ||
//+----------------------------------------------+ | ||
#property indicator_type1 DRAW_LINE | ||
#property indicator_color1 Blue | ||
#property indicator_style1 STYLE_DASHDOTDOT | ||
#property indicator_width1 2 | ||
#property indicator_label1 "Upper TrendValue" | ||
//+----------------------------------------------+ | ||
//| Bearish indicator rendering options | | ||
//+----------------------------------------------+ | ||
#property indicator_type2 DRAW_LINE | ||
#property indicator_color2 MediumVioletRed | ||
#property indicator_style2 STYLE_DASHDOTDOT | ||
#property indicator_width2 2 | ||
#property indicator_label2 "Lower TrendValue" | ||
//+----------------------------------------------+ | ||
//| Bullish indicator rendering options | | ||
//+----------------------------------------------+ | ||
#property indicator_type3 DRAW_ARROW | ||
#property indicator_color3 DeepSkyBlue | ||
#property indicator_width3 4 | ||
#property indicator_label3 "Buy TrendValue" | ||
//+----------------------------------------------+ | ||
//| Bearish indicator rendering options | | ||
//+----------------------------------------------+ | ||
#property indicator_type4 DRAW_ARROW | ||
#property indicator_color4 Red | ||
#property indicator_width4 4 | ||
#property indicator_label4 "Sell TrendValue" | ||
|
||
// Includes the main file. | ||
#include "ATR_MA_Trend.mq5" |
This file was deleted.
Oops, something went wrong.