The cAlgo building error
The cAlgo building error
05 Apr 2018, 20:42
the calgo Indicator edit in vs2017, the builder is right,but if after builded in calgo,the building is error.
the czsc.cs files is in my dll,the syntax in czsc.cs is absolute right.
namespace Me.Core.Ind { public class Czsc { private MarketSeries marketSeries; public List<BarInfo> BarInfos; public Czsc(MarketSeries series) { marketSeries = series; BarInfos = new List<BarInfo>(); } public void CulBarInfo(int index, out List<BarInfo> bars) { BarInfo bar = BarInfos.FindLast(x => x.Trend != BarTrend.Null); if (bar.Index == 0) { bar = BarInfos.Last(); } AddBarInfos(); bars = BarInfos; #region MyRegion void AddBarInfos() { //..... } #endregion } } }
Replies
PanagiotisCharalampous
10 Apr 2018, 09:59
Hi yearn2012,
We will need the code for the indicator to be able to help you. Unfortunately the error messages are in Chinese therefore we cannot understand what the problem might be.
Best Regards,
Panagiotis
@PanagiotisCharalampous
Bits
12 Apr 2018, 03:37
RE:
Panagiotis Charalampous said:
Hi yearn2012,
We will need the code for the indicator to be able to help you. Unfortunately the error messages are in Chinese therefore we cannot understand what the problem might be.
Best Regards,
Panagiotis
I have solved it,most possibly is the calgo builder is not support the native method it is in the lastest C# 7.1,
@Bits
PanagiotisCharalampous
12 Apr 2018, 09:25
Hi yearn2012,
cAlgo code currently uses .Net Framework 4.0, therefore C# 7.1 features are not supported.
Best Regards,
Panagiotis
@PanagiotisCharalampous
... Deleted by UFO ...