Topics
Replies
jeffmichaels
05 Mar 2014, 11:01
RE: RE:
Spotware said:
jeffmichaels said:
Could you please explain me about the stochastics too ?
What do you want to do with stochastics?
from my last post :
So i managed to build on your code and now have the 5 ADX in 1 window.
Trying to do the same myself now for 3 stochastics in 1 window, but to no avail. Im not a coder, im fine tweaking stuff but cant seem to get this done.
Any help would be appreciated. I like the lightness of ctrader but i need my MT4 system if i want to switch
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 using System; using cAlgo.API; using cAlgo.API.Internals; using cAlgo.API.Indicators; namespace cAlgo.Indicators { [Indicator(IsOverlay = false, TimeZone = TimeZones.UTC)] public class AdxR : Indicator { [Output("Slow", Color = Colors.Yellow)] public IndicatorDataSeries _stochasticslow { get; set; } [Output("Medium", Color = Colors.Red)] public IndicatorDataSeries _stochasticmedium { get; set; } [Output("Fast", Color = Colors.Blue)] public IndicatorDataSeries _stochasticfast { get; set; } private StochasticOscillator _stochasticslow; private StochasticOscillator _stochasticmedium; private StochasticOscillator _stochasticsfast; protected override void OnStart { _stochasticslow = Indicators.StochasticOscillator(100, 10, 10, SMA); _stochasticmedium = Indicators.StochasticOscillator(21, 10, 10, SMA); _stochasticsfast = Indicators.StochasticOscillator(8, 3, 3, SMA); } public override void Calculate(int index) { Slow[index] = _stochasticslow[index]; Medium[index] = _stochasticmedium[index]; Fast[index] = _stochasticfast[index]; } } }
@jeffmichaels
jeffmichaels
05 Mar 2014, 10:27
Could you please explain me about the stochastics too ?
@jeffmichaels
jeffmichaels
21 Feb 2014, 14:39
So i managed to build on your code and now have the 5 ADX in 1 window.
Trying to do the same myself now for 3 stochastics in 1 window, but to no avail. Im not a coder, im fine tweaking stuff but cant seem to get this done.
Any help would be appreciated. I like the lightness of ctrader but i need my MT4 system if i want to switch
using System; using cAlgo.API; using cAlgo.API.Internals; using cAlgo.API.Indicators; namespace cAlgo.Indicators { [Indicator(IsOverlay = false, TimeZone = TimeZones.UTC)] public class AdxR : Indicator { [Output("Slow", Color = Colors.Yellow)] public IndicatorDataSeries _stochasticslow { get; set; } [Output("Medium", Color = Colors.Red)] public IndicatorDataSeries _stochasticmedium { get; set; } [Output("Fast", Color = Colors.Blue)] public IndicatorDataSeries _stochasticfast { get; set; } private StochasticOscillator _stochasticslow; private StochasticOscillator _stochasticmedium; private StochasticOscillator _stochasticsfast; protected override void OnStart { _stochasticslow = Indicators.StochasticOscillator(100, 10, 10, SMA); _stochasticmedium = Indicators.StochasticOscillator(21, 10, 10, SMA); _stochasticsfast = Indicators.StochasticOscillator(8, 3, 3, SMA); } public override void Calculate(int index) { Slow[index] = _stochasticslow[index]; Medium[index] = _stochasticmedium[index]; Fast[index] = _stochasticfast[index]; } } }
@jeffmichaels
jeffmichaels
19 Feb 2014, 13:30
Hello,
Im looking at switching to cTrader but to my surprise this is not possible. I have a system with 3 stochastics in one window and 5 ADX in another.
If someone could point me in the right direction how to call 2 ADX in 1 window i can probably do the rest myself. Im not really a programmer but i could get tweaks done in MQL.
using System; using cAlgo.API; using cAlgo.API.Indicators; namespace cAlgo.Indicators { [Indicator(IsOverlay = false)] public class ADXR : Indicator { [Parameter(DefaultValue = 14)] public int interval { get; set; } [Output("ADXR", Color = Colors.Turquoise)] public IndicatorDataSeries adxr { get; set; } [Output("DiMinus", Color = Colors.Red)] public IndicatorDataSeries diminus { get; set; } [Output("DiPlus", Color = Colors.Blue)] public IndicatorDataSeries diplus { get; set; } private DirectionalMovementSystem adx; protected override void Initialize() { adx = Indicators.DirectionalMovementSystem(interval); } public override void Calculate(int index) { adxr[index] = (adx.ADX[index] + adx.ADX[index - interval]) / 2; diminus[index] = adx.DIMinus[index]; diplus[index] = adx.DIPlus[index]; } } }
Im looking to have a 7,21,42,89, and 144 ADX in one window, preferably wthout DI+ & DI- being visible.
@jeffmichaels
jeffmichaels
07 Mar 2014, 17:18
RE:
cAlgo_Fanatic said:
Link is dead
@jeffmichaels