Using Output Elliot Oscillator Indicator in cBot

Created at 27 Oct 2014, 21:13
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
Forex19's avatar

Forex19

Joined 13.06.2013

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). 
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
Replies

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

Ahlam Ahmad
17 Dec 2015, 16:57

Could you please post your solution??


@Ahlam Ahmad