leonex3 Posted December 8, 2017 Report Posted December 8, 2017 (edited) There are only a few lines of code to have the SmartBook.CS but I can not finish it . Can any good programmer come to my aid ? thanks this is the link to the partial CS https://www.forexupload.com/6eg Edited December 8, 2017 by leonex3 Quote
leonex3 Posted February 26, 2018 Author Report Posted February 26, 2018 (edited) hello the problems are these few lines of code but I'm not a programmer are only a self-taught and nono know translate them.but if you put the CS in indicator and try to compile CTRl-F5 you will see errors (the original code is the one indented) I would love to have the CS to make small changes, I hope you succeed. Thanks in advance and I hope that Google has translated well. Lines 286 - 298 - 304 - 459 protected override void OnMarketDepth(MarketDepthEventArgs e) { try { SortedDictionary<double, int> dictionary; // if (e.get_MarketDataType() == null) if (e.MarketDataType == MarketDataType.Ask) { dictionary = this._AskAllLimitOrderLevels; } else { // if (e.get_MarketDataType() != 1) if (e.MarketDataType != MarketDataType.Bid) { return; } dictionary = this._BidAllLimitOrderLevels; } // if ((e.get_Operation() == null) || (e.get_Operation() == 1)) if ((e.Operation == null) || (e.Operation == 1)) { // if (dictionary.ContainsKey(e.get_Price())) if (dictionary.ContainsKey(e.Price)) { // dictionary.Remove(e.get_Price()); dictionary.Remove(e.Price); } // dictionary.Add(e.get_Price(), (int) e.get_Volume()); dictionary.Add(e.Price, (int) e.Volume); } // if (((e.get_Operation() == 2) && (e.get_MarketDataType() == null)) && (e.get_Price() < base.GetCurrentAsk())) if (((e.Operation == 2) && (e.MarketDataType == null)) && (e.Price < base.GetCurrentAsk)) { // dictionary.Remove(e.get_Price()); dictionary.Remove(e.Price); } // if (((e.get_Operation() == 2) && (e.get_MarketDataType() == 1)) && (e.get_Price() > base.GetCurrentBid())) if (((e.Operation == 2) && (e.MarketDataType == 1)) && (e.Price > base.GetCurrentBid)) { // dictionary.Remove(e.get_Price()); dictionary.Remove(e.Price); } if (this.lastRefresh.AddMilliseconds((double) this.levelIIRefreshDelayMillis) < DateTime.Now) { // base.get_ChartControl().Refresh(); base.ChartControl.Refresh(); this.lastRefresh = DateTime.Now; } } catch (Exception exception) { base.Print("SmartBook OnMarketDepth(...) - " + exception.Message); } } Edited February 26, 2018 by leonex3 Quote
lbf4223 Posted February 26, 2018 Report Posted February 26, 2018 leonex3 said: please help me I'm missing only 4 or 5 lines of code but I'm not a programmer I'm self-taught and I do not get there ??? Upload the original DLL you sourced this from and your wish will be granted. Quote
leonex3 Posted February 26, 2018 Author Report Posted February 26, 2018 This is the dll - https://www.forexupload.com/6gm and thank you very much Quote
leonex3 Posted February 26, 2018 Author Report Posted February 26, 2018 Whao thank you so much, how can I return, really thank you. :) Quote
casper Posted February 28, 2018 Report Posted February 28, 2018 leonex3 said: Whao thank you so much, how can I return, really thank you. :) Dear Leo, Now plz let everyone know how to use this indicator. Quote
leonex3 Posted February 28, 2018 Author Report Posted February 28, 2018 honestly I do not know I'm trying various others, I wanted to try to make visual changes but I'm not a programmer I'm a self-taught and I could not finish the decoding. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.