NexusFi: Find Your Edge


Home Menu

 





hide a plot on condition


Discussion in NinjaTrader

Updated
    1. trending_up 4,474 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

hide a plot on condition

  #1 (permalink)
 solondon 
London, UK
 
Experience: Intermediate
Platform: ninja,TS,Meta,Tradeguider
Trading: FX,Metals
Posts: 38 since Sep 2011
Thanks Given: 9
Thanks Received: 6

Hi

i want to get the commented out section working ie. only plot if a condition is not met. Ive tried ShortProfitTarget.Reset(); but i cant see how to make the plot transparent , any ideas or an example appreciated

protected override void Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.MediumBlue), PlotStyle.Line, "LongProfitTarget"));
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "ShortProfitTarget"));
Overlay = true;
}

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
LongProfitTarget.Set(Close[0]+ATR(5)[0]);
ShortProfitTarget.Set(Close[0]-ATR(5)[0]);

// if ((SMA(18)[0] >= SMA(18)[1]
// && SMA(9)[0] >= SMA(9)[1])
// && (SMA(18)[1] < SMA(18)[2] ||
// SMA(9)[1] < SMA(9)[2])
// && (ADX(14)[0]>16 || CrossAbove(ADX(14), 16, 10)))

//// PlotColors[0][0] = Color.Transparent;
//
// if ((SMA(18)[0] <= SMA(18)[1]
// && SMA(9)[0] <= SMA(9)[1])
// && (SMA(18)[1] > SMA(18)[2] ||
// SMA(9)[1] > SMA(9)[2])
// && (ADX(14)[0]>16 || CrossAbove(ADX(14), 16, 10)))

//// PlotColors[1][0] = Color.Transparent;


}

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
How to apply profiles
Traders Hideout
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
REcommedations for programming help
Sierra Chart
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Tao te Trade: way of the WLD
24 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 
vvhg's Avatar
 vvhg 
Northern Germany
 
Experience: Intermediate
Platform: NT
Trading: FDAX, CL
Posts: 1,583 since Mar 2011
Thanks Given: 1,016
Thanks Received: 2,824



solondon View Post
Hi

i want to get the commented out section working ie. only plot if a condition is not met. Ive tried ShortProfitTarget.Reset(); but i cant see how to make the plot transparent , any ideas or an example appreciated

Could you perhaps describe what exactly is not working?
Also: please post the complete code, that makes it easier, and wrap code tags around it like:
 
Code
protected override void Initialize()
        {
            Add(new Plot(Color.FromKnownColor(KnownColor.MediumBlue), PlotStyle.Line, "LongProfitTarget"));
            Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "ShortProfitTarget"));
            Overlay				= true;
        }

        /// <summary>
        /// Called on each bar update event (incoming tick)
        /// </summary>
        protected override void OnBarUpdate()
        {
            // Use this method for calculating your indicator values. Assign a value to each
            // plot below by replacing 'Close[0]' with your own formula.
         	LongProfitTarget.Set(Close[0]+ATR(5)[0]);
			ShortProfitTarget.Set(Close[0]-ATR(5)[0]);
			
//			if ((SMA(18)[0] >= SMA(18)[1]
//                && SMA(9)[0] >= SMA(9)[1]) 
//				&& (SMA(18)[1] < SMA(18)[2] ||
//				SMA(9)[1] < SMA(9)[2])
//				&& (ADX(14)[0]>16 || CrossAbove(ADX(14), 16, 10)))

////				PlotColors[0][0] = Color.Transparent;
//
//			if ((SMA(18)[0] <= SMA(18)[1]
//                &&  SMA(9)[0] <= SMA(9)[1])
//				&& (SMA(18)[1] > SMA(18)[2] ||
//				SMA(9)[1] > SMA(9)[2])
//				&& (ADX(14)[0]>16 || CrossAbove(ADX(14), 16, 10))) 

////				PlotColors[1][0] = Color.Transparent;


			}

vvhg

Hic Rhodos, hic salta.
Reply With Quote
  #4 (permalink)
 solondon 
London, UK
 
Experience: Intermediate
Platform: ninja,TS,Meta,Tradeguider
Trading: FX,Metals
Posts: 38 since Sep 2011
Thanks Given: 9
Thanks Received: 6

Hi

the following plots nothing


 
Code
#region Using declarations
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Gui.Chart;
#endregion

// This namespace holds all indicators and is required. Do not change it.
namespace NinjaTrader.Indicator
{
    /// <summary>
    /// Enter the description of your new custom indicator here
    /// </summary>
    [Description("Enter the description of your new custom indicator here")]
    public class aaPipMaximizer1ProfitTarget : Indicator
    {
        #region Variables
        // Wizard generated variables
            private int aTRperiod = 5; // Default setting for ATRperiod
        // User defined variables (add any user defined variables below)
        #endregion

        /// <summary>
        /// This method is used to configure the indicator and is called once before any bar data is loaded.
        /// </summary>
        protected override void Initialize()
        {
            Add(new Plot(Color.FromKnownColor(KnownColor.MediumBlue), PlotStyle.Line, "LongProfitTarget"));
            Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "ShortProfitTarget"));
            Overlay				= true;
        }

        /// <summary>
        /// Called on each bar update event (incoming tick)
        /// </summary>
        protected override void OnBarUpdate()
        {
            // Use this method for calculating your indicator values. Assign a value to each
            // plot below by replacing 'Close[0]' with your own formula.
         	LongProfitTarget.Set(Close[0]+ATR(5)[0]);
			ShortProfitTarget.Set(Close[0]-ATR(5)[0]);
			
			if ((SMA(18)[0] >= SMA(18)[1]
                && SMA(9)[0] >= SMA(9)[1]) 
				&& (SMA(18)[1] < SMA(18)[2] ||
				SMA(9)[1] < SMA(9)[2])
				&& (ADX(14)[0]>16 || CrossAbove(ADX(14), 16, 10)))
				PlotColors[0][0] = Color.MediumBlue;
			else
//				LongProfitTarget.Reset();
				PlotColors[0][0] = Color.Transparent;
//
			if ((SMA(18)[0] <= SMA(18)[1]
                &&  SMA(9)[0] <= SMA(9)[1])
				&& (SMA(18)[1] > SMA(18)[2] ||
				SMA(9)[1] > SMA(9)[2])
				&& (ADX(14)[0]>16 || CrossAbove(ADX(14), 16, 10))) 
				PlotColors[0][0] = Color.Orange;
			else
//				ShortProfitTarget.Reset();
				PlotColors[1][0] = Color.Transparent;

			}

        #region Properties
        [Browsable(false)]	// this line prevents the data series from being displayed in the indicator properties dialog, do not remove
        [XmlIgnore()]		// this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
        public DataSeries LongProfitTarget
        {
            get { return Values[0]; }
        }

        [Browsable(false)]	// this line prevents the data series from being displayed in the indicator properties dialog, do not remove
        [XmlIgnore()]		// this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
        public DataSeries ShortProfitTarget
        {
            get { return Values[1]; }
        }

        [Description("")]
        [GridCategory("Parameters")]
        public int ATRperiod
        {
            get { return aTRperiod; }
            set { aTRperiod = Math.Max(1, value); }
        }
        #endregion
    }
}

#region NinjaScript generated code. Neither change nor remove.
// This namespace holds all indicators and is required. Do not change it.
namespace NinjaTrader.Indicator
{
    public partial class Indicator : IndicatorBase
    {
        private aaPipMaximizer1ProfitTarget[] cacheaaPipMaximizer1ProfitTarget = null;

        private static aaPipMaximizer1ProfitTarget checkaaPipMaximizer1ProfitTarget = new aaPipMaximizer1ProfitTarget();

        /// <summary>
        /// Enter the description of your new custom indicator here
        /// </summary>
        /// <returns></returns>
        public aaPipMaximizer1ProfitTarget aaPipMaximizer1ProfitTarget(int aTRperiod)
        {
            return aaPipMaximizer1ProfitTarget(Input, aTRperiod);
        }

        /// <summary>
        /// Enter the description of your new custom indicator here
        /// </summary>
        /// <returns></returns>
        public aaPipMaximizer1ProfitTarget aaPipMaximizer1ProfitTarget(Data.IDataSeries input, int aTRperiod)
        {
            if (cacheaaPipMaximizer1ProfitTarget != null)
                for (int idx = 0; idx < cacheaaPipMaximizer1ProfitTarget.Length; idx++)
                    if (cacheaaPipMaximizer1ProfitTarget[idx].ATRperiod == aTRperiod && cacheaaPipMaximizer1ProfitTarget[idx].EqualsInput(input))
                        return cacheaaPipMaximizer1ProfitTarget[idx];

            lock (checkaaPipMaximizer1ProfitTarget)
            {
                checkaaPipMaximizer1ProfitTarget.ATRperiod = aTRperiod;
                aTRperiod = checkaaPipMaximizer1ProfitTarget.ATRperiod;

                if (cacheaaPipMaximizer1ProfitTarget != null)
                    for (int idx = 0; idx < cacheaaPipMaximizer1ProfitTarget.Length; idx++)
                        if (cacheaaPipMaximizer1ProfitTarget[idx].ATRperiod == aTRperiod && cacheaaPipMaximizer1ProfitTarget[idx].EqualsInput(input))
                            return cacheaaPipMaximizer1ProfitTarget[idx];

                aaPipMaximizer1ProfitTarget indicator = new aaPipMaximizer1ProfitTarget();
                indicator.BarsRequired = BarsRequired;
                indicator.CalculateOnBarClose = CalculateOnBarClose;
#if NT7
                indicator.ForceMaximumBarsLookBack256 = ForceMaximumBarsLookBack256;
                indicator.MaximumBarsLookBack = MaximumBarsLookBack;
#endif
                indicator.Input = input;
                indicator.ATRperiod = aTRperiod;
                Indicators.Add(indicator);
                indicator.SetUp();

                aaPipMaximizer1ProfitTarget[] tmp = new aaPipMaximizer1ProfitTarget[cacheaaPipMaximizer1ProfitTarget == null ? 1 : cacheaaPipMaximizer1ProfitTarget.Length + 1];
                if (cacheaaPipMaximizer1ProfitTarget != null)
                    cacheaaPipMaximizer1ProfitTarget.CopyTo(tmp, 0);
                tmp[tmp.Length - 1] = indicator;
                cacheaaPipMaximizer1ProfitTarget = tmp;
                return indicator;
            }
        }
    }
}

// This namespace holds all market analyzer column definitions and is required. Do not change it.
namespace NinjaTrader.MarketAnalyzer
{
    public partial class Column : ColumnBase
    {
        /// <summary>
        /// Enter the description of your new custom indicator here
        /// </summary>
        /// <returns></returns>
        [Gui.Design.WizardCondition("Indicator")]
        public Indicator.aaPipMaximizer1ProfitTarget aaPipMaximizer1ProfitTarget(int aTRperiod)
        {
            return _indicator.aaPipMaximizer1ProfitTarget(Input, aTRperiod);
        }

        /// <summary>
        /// Enter the description of your new custom indicator here
        /// </summary>
        /// <returns></returns>
        public Indicator.aaPipMaximizer1ProfitTarget aaPipMaximizer1ProfitTarget(Data.IDataSeries input, int aTRperiod)
        {
            return _indicator.aaPipMaximizer1ProfitTarget(input, aTRperiod);
        }
    }
}

// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Strategy
{
    public partial class Strategy : StrategyBase
    {
        /// <summary>
        /// Enter the description of your new custom indicator here
        /// </summary>
        /// <returns></returns>
        [Gui.Design.WizardCondition("Indicator")]
        public Indicator.aaPipMaximizer1ProfitTarget aaPipMaximizer1ProfitTarget(int aTRperiod)
        {
            return _indicator.aaPipMaximizer1ProfitTarget(Input, aTRperiod);
        }

        /// <summary>
        /// Enter the description of your new custom indicator here
        /// </summary>
        /// <returns></returns>
        public Indicator.aaPipMaximizer1ProfitTarget aaPipMaximizer1ProfitTarget(Data.IDataSeries input, int aTRperiod)
        {
            if (InInitialize && input == null)
                throw new ArgumentException("You only can access an indicator with the default input/bar series from within the 'Initialize()' method");

            return _indicator.aaPipMaximizer1ProfitTarget(input, aTRperiod);
        }
    }
}
#endregion

if I remove the conditional attempt to make the plots transparent the code works but i get a plot above and bellow for each bar. ie. this section is causing both plots to hide for every bar

if ((SMA(18)[0] >= SMA(18)[1]
&& SMA(9)[0] >= SMA(9)[1])
&& (SMA(18)[1] < SMA(18)[2] ||
SMA(9)[1] < SMA(9)[2])
&& (ADX(14)[0]>16 || CrossAbove(ADX(14), 16, 10)))
PlotColors[0][0] = Color.MediumBlue;
else
// LongProfitTarget.Reset();
PlotColors[0][0] = Color.Transparent;

what i want is to only show the plot if the condition is met, i want it to show above my entry condition bar

Sorry the logic doesnt look great but im not a great programmer.

thanks in advance

Started this thread Reply With Quote
  #5 (permalink)
 
vvhg's Avatar
 vvhg 
Northern Germany
 
Experience: Intermediate
Platform: NT
Trading: FDAX, CL
Posts: 1,583 since Mar 2011
Thanks Given: 1,016
Thanks Received: 2,824


solondon View Post
Hi

the following plots nothing


 
Code
#region Using declarations
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Gui.Chart;
#endregion

// This namespace holds all indicators and is required. Do not change it.
namespace NinjaTrader.Indicator
{
    /// <summary>
    /// Enter the description of your new custom indicator here
    /// </summary>
    [Description("Enter the description of your new custom indicator here")]
    public class aaPipMaximizer1ProfitTarget : Indicator
    {
        #region Variables
        // Wizard generated variables
            private int aTRperiod = 5; // Default setting for ATRperiod
        // User defined variables (add any user defined variables below)
        #endregion

        /// <summary>
        /// This method is used to configure the indicator and is called once before any bar data is loaded.
        /// </summary>
        protected override void Initialize()
        {
            Add(new Plot(Color.FromKnownColor(KnownColor.MediumBlue), PlotStyle.Line, "LongProfitTarget"));
            Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "ShortProfitTarget"));
            Overlay				= true;
        }

        /// <summary>
        /// Called on each bar update event (incoming tick)
        /// </summary>
        protected override void OnBarUpdate()
        {
            // Use this method for calculating your indicator values. Assign a value to each
            // plot below by replacing 'Close[0]' with your own formula.
         	LongProfitTarget.Set(Close[0]+ATR(5)[0]);
			ShortProfitTarget.Set(Close[0]-ATR(5)[0]);
			
			if ((SMA(18)[0] >= SMA(18)[1]
                && SMA(9)[0] >= SMA(9)[1]) 
				&& (SMA(18)[1] < SMA(18)[2] ||
				SMA(9)[1] < SMA(9)[2])
				&& (ADX(14)[0]>16 || CrossAbove(ADX(14), 16, 10)))
				PlotColors[0][0] = Color.MediumBlue;
			else
//				LongProfitTarget.Reset();
				PlotColors[0][0] = Color.Transparent;
//
			if ((SMA(18)[0] <= SMA(18)[1]
                &&  SMA(9)[0] <= SMA(9)[1])
				&& (SMA(18)[1] > SMA(18)[2] ||
				SMA(9)[1] > SMA(9)[2])
				&& (ADX(14)[0]>16 || CrossAbove(ADX(14), 16, 10))) 
				PlotColors[0][0] = Color.Orange;
			else
//				ShortProfitTarget.Reset();
				PlotColors[1][0] = Color.Transparent;

			}

        #region Properties
        [Browsable(false)]	// this line prevents the data series from being displayed in the indicator properties dialog, do not remove
        [XmlIgnore()]		// this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
        public DataSeries LongProfitTarget
        {
            get { return Values[0]; }
        }

        [Browsable(false)]	// this line prevents the data series from being displayed in the indicator properties dialog, do not remove
        [XmlIgnore()]		// this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
        public DataSeries ShortProfitTarget
        {
            get { return Values[1]; }
        }

        [Description("")]
        [GridCategory("Parameters")]
        public int ATRperiod
        {
            get { return aTRperiod; }
            set { aTRperiod = Math.Max(1, value); }
        }
        #endregion
    }
}

#region NinjaScript generated code. Neither change nor remove.
// This namespace holds all indicators and is required. Do not change it.
namespace NinjaTrader.Indicator
{
    public partial class Indicator : IndicatorBase
    {
        private aaPipMaximizer1ProfitTarget[] cacheaaPipMaximizer1ProfitTarget = null;

        private static aaPipMaximizer1ProfitTarget checkaaPipMaximizer1ProfitTarget = new aaPipMaximizer1ProfitTarget();

        /// <summary>
        /// Enter the description of your new custom indicator here
        /// </summary>
        /// <returns></returns>
        public aaPipMaximizer1ProfitTarget aaPipMaximizer1ProfitTarget(int aTRperiod)
        {
            return aaPipMaximizer1ProfitTarget(Input, aTRperiod);
        }

        /// <summary>
        /// Enter the description of your new custom indicator here
        /// </summary>
        /// <returns></returns>
        public aaPipMaximizer1ProfitTarget aaPipMaximizer1ProfitTarget(Data.IDataSeries input, int aTRperiod)
        {
            if (cacheaaPipMaximizer1ProfitTarget != null)
                for (int idx = 0; idx < cacheaaPipMaximizer1ProfitTarget.Length; idx++)
                    if (cacheaaPipMaximizer1ProfitTarget[idx].ATRperiod == aTRperiod && cacheaaPipMaximizer1ProfitTarget[idx].EqualsInput(input))
                        return cacheaaPipMaximizer1ProfitTarget[idx];

            lock (checkaaPipMaximizer1ProfitTarget)
            {
                checkaaPipMaximizer1ProfitTarget.ATRperiod = aTRperiod;
                aTRperiod = checkaaPipMaximizer1ProfitTarget.ATRperiod;

                if (cacheaaPipMaximizer1ProfitTarget != null)
                    for (int idx = 0; idx < cacheaaPipMaximizer1ProfitTarget.Length; idx++)
                        if (cacheaaPipMaximizer1ProfitTarget[idx].ATRperiod == aTRperiod && cacheaaPipMaximizer1ProfitTarget[idx].EqualsInput(input))
                            return cacheaaPipMaximizer1ProfitTarget[idx];

                aaPipMaximizer1ProfitTarget indicator = new aaPipMaximizer1ProfitTarget();
                indicator.BarsRequired = BarsRequired;
                indicator.CalculateOnBarClose = CalculateOnBarClose;
#if NT7
                indicator.ForceMaximumBarsLookBack256 = ForceMaximumBarsLookBack256;
                indicator.MaximumBarsLookBack = MaximumBarsLookBack;
#endif
                indicator.Input = input;
                indicator.ATRperiod = aTRperiod;
                Indicators.Add(indicator);
                indicator.SetUp();

                aaPipMaximizer1ProfitTarget[] tmp = new aaPipMaximizer1ProfitTarget[cacheaaPipMaximizer1ProfitTarget == null ? 1 : cacheaaPipMaximizer1ProfitTarget.Length + 1];
                if (cacheaaPipMaximizer1ProfitTarget != null)
                    cacheaaPipMaximizer1ProfitTarget.CopyTo(tmp, 0);
                tmp[tmp.Length - 1] = indicator;
                cacheaaPipMaximizer1ProfitTarget = tmp;
                return indicator;
            }
        }
    }
}

// This namespace holds all market analyzer column definitions and is required. Do not change it.
namespace NinjaTrader.MarketAnalyzer
{
    public partial class Column : ColumnBase
    {
        /// <summary>
        /// Enter the description of your new custom indicator here
        /// </summary>
        /// <returns></returns>
        [Gui.Design.WizardCondition("Indicator")]
        public Indicator.aaPipMaximizer1ProfitTarget aaPipMaximizer1ProfitTarget(int aTRperiod)
        {
            return _indicator.aaPipMaximizer1ProfitTarget(Input, aTRperiod);
        }

        /// <summary>
        /// Enter the description of your new custom indicator here
        /// </summary>
        /// <returns></returns>
        public Indicator.aaPipMaximizer1ProfitTarget aaPipMaximizer1ProfitTarget(Data.IDataSeries input, int aTRperiod)
        {
            return _indicator.aaPipMaximizer1ProfitTarget(input, aTRperiod);
        }
    }
}

// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Strategy
{
    public partial class Strategy : StrategyBase
    {
        /// <summary>
        /// Enter the description of your new custom indicator here
        /// </summary>
        /// <returns></returns>
        [Gui.Design.WizardCondition("Indicator")]
        public Indicator.aaPipMaximizer1ProfitTarget aaPipMaximizer1ProfitTarget(int aTRperiod)
        {
            return _indicator.aaPipMaximizer1ProfitTarget(Input, aTRperiod);
        }

        /// <summary>
        /// Enter the description of your new custom indicator here
        /// </summary>
        /// <returns></returns>
        public Indicator.aaPipMaximizer1ProfitTarget aaPipMaximizer1ProfitTarget(Data.IDataSeries input, int aTRperiod)
        {
            if (InInitialize && input == null)
                throw new ArgumentException("You only can access an indicator with the default input/bar series from within the 'Initialize()' method");

            return _indicator.aaPipMaximizer1ProfitTarget(input, aTRperiod);
        }
    }
}
#endregion

if I remove the conditional attempt to make the plots transparent the code works but i get a plot above and bellow for each bar. ie. this section is causing both plots to hide for every bar

if ((SMA(18)[0] >= SMA(18)[1]
&& SMA(9)[0] >= SMA(9)[1])
&& (SMA(18)[1] < SMA(18)[2] ||
SMA(9)[1] < SMA(9)[2])
&& (ADX(14)[0]>16 || CrossAbove(ADX(14), 16, 10)))
PlotColors[0][0] = Color.MediumBlue;
else
// LongProfitTarget.Reset();
PlotColors[0][0] = Color.Transparent;

what i want is to only show the plot if the condition is met, i want it to show above my entry condition bar

Sorry the logic doesnt look great but im not a great programmer.

thanks in advance

OK, that happens because you set the color to transparent when the condition is met, but you don't change it back when the condition doesn't apply anymore. Though i think this will result in the entire plot being either visible or not, and not hiding parts of it (but I'm not sure).

Perhaps you want to have a look at the supertrend indy as that plot might be something similar (in principle) than what you try to achieve, if not, have a look at indicators in the download section for a plot that is similar to what you want and then have a look in the code how it is done...

vvhg

Hic Rhodos, hic salta.
Reply With Quote
Thanked by:
  #6 (permalink)
 solondon 
London, UK
 
Experience: Intermediate
Platform: ninja,TS,Meta,Tradeguider
Trading: FX,Metals
Posts: 38 since Sep 2011
Thanks Given: 9
Thanks Received: 6

actually my code want working due to a failure to check for enough bars CurrentBar > 20 , thanks for the help anyway

Started this thread Reply With Quote




Last Updated on July 1, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts