Skip to content

Commit

Permalink
Refs EA31337#8. ATR_MA_Trend now uses IndicatorLegacy.h file to allow…
Browse files Browse the repository at this point in the history
… using MQL5 versions of iNAME() indicators like iMA(), iRSI() in MQL4. We use it to run MQL5 indicator in MQL4.
  • Loading branch information
nseam committed Nov 22, 2023
1 parent 7f6450f commit be542c4
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 7 deletions.
43 changes: 43 additions & 0 deletions Misc/ATR_MA_Trend.mq4
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"
7 changes: 0 additions & 7 deletions Misc/ATR_MA_Trend.mq4.todo

This file was deleted.

0 comments on commit be542c4

Please sign in to comment.