Using Output Elliot Oscillator Indicator in cBot
Created at 27 Oct 2014, 21:13
Using Output Elliot Oscillator Indicator in cBot
27 Oct 2014, 21:13
Hi,
I would like to use the Elliot Wave Oscillator indicator for the strategy of opening positions in the cBot.
For now I was able to use the LastValue of the various Output (UpTrend, DownTrend, Line).
I adding the following code:
In head:
public int FastPeriod = 5; public int SlowPeriod = 34; private ElliotOscillator EWO;
in protected override void OnStart()
EWO = Indicators.GetIndicator<ElliotOscillator>(Source, FastPeriod, SlowPeriod);
in private int MyGetSignal() - "Where do I put my opening strategy" for example:
if (EWO.UpTrend.LastValue > EWO.Line.LastValue) Result = 0; if (EWO.UpTrend.LastValue < EWO.Line.LastValue) Result = 1 : : ecc....
But I would like to read and use OHLC value of Output (uptrend, downtrend, line) for example of the last 3 candlesticks.
I've never done this thing.
How can I do?
Forex19
03 Nov 2014, 15:23
I think I've solved.
I wrote a simple indicator that reads OHLC candlesticks that interest me, using the API MarketSeries, who then called in the cBot.
I have to do some testing but I think it can work.
@Forex19