Cannot evaluate expression because the code of the current method is optimized
Created at 26 Jan 2016, 23:14
            
    TM
    
        
            Cannot evaluate expression because the code of the current method is optimized
            
                 26 Jan 2016, 23:14
            
                    
Hi,
I'm trying to debug an indicator within Visual Studio but am receiving
Cannot evaluate expression because the code of the current method is optimized
when trying to access IndicatorDataSeries results.
A simple example is below.
Should I be able to view the values within IndicatorDataSeries?
Thanks
using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
namespace cAlgo
{
    [Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class NewIndicator : Indicator
    {
        [Output("Main")]
        public IndicatorDataSeries Result { get; set; }
        private MarketSeries daily;
        protected override void Initialize()
        {
            daily = MarketData.GetSeries(TimeFrame.Daily);
        }
        public override void Calculate(int index)
        {
                Result[index] = daily.Close.LastValue;
        }
    }
}

tmfd
27 Jan 2016, 22:14
Forget the above - have tried it on a different computer and works fine. Not sure what's wrong with the other yet though.
@tmfd