Topics
Replies
Spotware
02 Sep 2014, 09:47
RE: Ctrader Failed to save workspace - cannot connect to CHUB
jdaerial said:
Hi there,
I've been trying to login to Ctrader ID for desktop to save my workspaces - keeps coming up with an error message saying that workspace cannot be saved due to Chub not connecting.
Any ideas?
Thanks,
jdaerial, please press Shift+Ctrl+Alt+T. It will send us troubleshooting information.
@Spotware
Spotware
01 Sep 2014, 11:07
RE: RE:
hiba7rain said:
Thanks its fine on previous bar value , so if someone decide to go OnTick instead of OnBar the values would be accurate or still with some difference?
Spotware said:
OnBar event happens when new bar is opened. At that moment MarketSeries collection already contains tick from new bar. It means that last bar is not formed and in general cases open = high = low = close. If you want to access to last formed bar you need take previous one.
Print("{0}", ema.Result.Last(1));
In case of usage OnTick handler last bar is a live bar as well. You need to use previous values if you want to calculate indicator based on formed bars.
@Spotware
Spotware
01 Sep 2014, 10:33
OnBar event happens when new bar is opened. At that moment MarketSeries collection already contains tick from new bar. It means that last bar is not formed and in general cases open = high = low = close. If you want to access to last formed bar you need take previous one.
Print("{0}", ema.Result.Last(1));
@Spotware
Spotware
29 Aug 2014, 14:24
You can specify ScalePrecision property of Indicator attribute:
[Indicator("Stochastic Oscillator", ScalePrecision = 0, AccessRights = AccessRights.None)] public class StochasticOscillatorIndicator : Indicator, StochasticOscillator
@Spotware
Spotware
02 Sep 2014, 15:45
@Spotware