• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Graphic chart dataSeries

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Graphic chart dataSeries

    Hello !!! i try to display dataSeries in indicator
    if i add Add(CCI(myDataSeries,14)); line after Backtest NT7 shutdown

    if i use regular Close data input works fine, dont work with any custom dataSeries


    protected override void Initialize()
    {
    CalculateOnBarClose = true;
    ExitOnClose=false;
    EntriesPerDirection=1;
    BarsRequired = 120;
    SyncAccountPosition = true;
    EntryHandling = EntryHandling.UniqueEntries;
    myDataSeries = new DataSeries(this, MaximumBarsLookBack.Infinite);
    myDataSeriesM = new DataSeries(this, MaximumBarsLookBack.Infinite);
    myDataSeriesL = new DataSeries(this, MaximumBarsLookBack.Infinite);
    myDataSeriesH = new DataSeries(this, MaximumBarsLookBack.Infinite);
    Add("$USDCHF",PeriodType.Minute, 60);

    Add(CCI(myDataSeries,14));

    }

    private IOrder entryOrder = null;
    protected override void OnBarUpdate()
    {
    myDataSeries.Set((Closes[0][0] + Closes[1][0]));



    if (CurrentBar < 120 || CurrentBars[1] < 120)
    return;
    Last edited by GainForex; 03-27-2016, 11:35 PM.

    #2
    Hello GainForex,

    Thanks for your post.

    Plotting from within a strategy is not directly supported. There is a work around however please observe the note: This technique has limited functionality. It will NOT work for charts in the Strategy Analyzer during backtesting, but it will work on real-time charts.

    Here is the reference to "Strategy: Plotting from within a NinjaScript Strategy" : http://ninjatrader.com/support/forum/showthread.php?t=6651
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bortz, Today, 07:45 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Tyler  
    Started by hir04068, Today, 06:58 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by aprendiz, Today, 07:25 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by vivekniwas, Yesterday, 10:21 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by escobar63, Yesterday, 05:06 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Working...
    X