<commit_before>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Xml;
using System.Xml.Serialization;
using AgenaTrader.API;
using AgenaTrader.Custom;
using AgenaTrader.Plugins;
using AgenaTrader.Helper;

/// <summary>
/// Version: 1.0
/// -------------------------------------------------------------------------
/// <NAME> 2016
/// -------------------------------------------------------------------------
/// Namespace holds all indicators and is required. Do not change it.
/// </summary>
namespace AgenaTrader.UserCode
{
    public enum IndicatorEnum
    {
        SMA = 1,
        EMA = 2
    }

	[Description("Compare the current value of an indicator to latest high value of the indicator in a defined period of time.")]
	public class HighestHighValue_Indicator : UserIndicator
	{
        //input
        private Color _plot1color = Color.Orange;
        private int _plot1width = 2;
        private DashStyle _plot1dashstyle = DashStyle.Solid;
        private int _indicatorEMAPeriod = 200;
        private int _indicatorSMAPeriod = 200;
        private int _comparisonPeriod = 30;
        private IndicatorEnum _indicatorenum = IndicatorEnum.SMA;

        //output


        //internal
        private DataSeries _DATA_List;

        /// <summary>
        /// Initalizie the Plot.
        /// </summary>
		protected override void Initialize()
		{
            Add(new Plot(new Pen(this.Plot1Color, this.Plot0Width), PlotStyle.Line, "IndicatorPlot1"));

            CalculateOnBarClose = true;
		}

        /// <summary>
        /// Init all variables on startup.
        /// </summary>
        protected override void OnStartUp()
        {
            this._DATA_List = new DataSeries(this);
        }

        /// <summary>
        /// Recalculate all data on each each bar update. <commit_msg>using global constants<commit_after>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Xml;
using System.Xml.Serialization;
using AgenaTrader.API;
using AgenaTrader.Custom;
using AgenaTrader.Plugins;
using AgenaTrader.Helper;

/// <summary>
/// Version: 1.1
/// -------------------------------------------------------------------------
/// <NAME> 2016
/// -------------------------------------------------------------------------
/// Namespace holds all indicators and is required. Do not change it.
/// </summary>
namespace AgenaTrader.UserCode
{
    public enum IndicatorEnum
    {
        SMA = 1,
        EMA = 2
    }

	[Description("Compare the current value of an indicator to latest high value of the indicator in a defined period of time.")]
	public class HighestHighValue_Indicator : UserIndicator
	{
        //input
        private Color _plot1color = Const.DefaultIndicatorColor;
        private int _plot1width = Const.DefaultLineWidth;
        private DashStyle _plot1dashstyle = Const.DefaultIndicatorDashStyle;
        private int _indicatorEMAPeriod = 200;
        private int _indicatorSMAPeriod = 200;
        private int _comparisonPeriod = 30;
        private IndicatorEnum _indicatorenum = IndicatorEnum.SMA;

        //output


        //internal
        private DataSeries _DATA_List;

        /// <summary>
        /// Initalizie the Plot.
        /// </summary>
		protected override void Initialize()
		{
            Add(new Plot(new Pen(this.Plot1Color, this.Plot0Width), PlotStyle.Line, "HighestHighValue_Indicator"));

            CalculateOnBarClose = true;
		}

        /// <summary>
        /// Init all variables on startup.
        /// </summary>
        protected override void OnStartUp()
        {
            this._DATA_List = new DataSeries(this);
        }

        /// <summary>
        /// Recalculate all data on each each bar update. 
{'fraction_non_alphanumeric': 0.16201689275659073, 'fraction_numerical': 0.01177373944202713, 'mean_word_length': 1.8991097922848665, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5922489', 'n_tokens_mistral': 1070, 'n_tokens_neox': 1016, 'n_words': 298}