Replies

oneb700d@gmail.com
31 Aug 2018, 14:37

I manged to get it working and that is exactly what i want, but not as a bot! Is it possible to just do that sort of thing without a bot? and just an indicator on its own?

 

Thanks again, sorry for being a pain.


@oneb700d@gmail.com

oneb700d@gmail.com
31 Aug 2018, 11:35

RE:

Panagiotis Charalampous said:

Hi oneb700d@gmail.com,

Is this what you are looking for?

using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;

namespace cAlgo.Robots
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class NewcBot : Robot
    {

        RelativeStrengthIndex _rsi;
        protected override void OnStart()
        {
            _rsi = Indicators.RelativeStrengthIndex(MarketSeries.Close, 14);
        }
        protected override void OnTick()
        {
            Chart.DrawText("RSI", _rsi.Result.LastValue.ToString(), Server.Time, Symbol.Ask, Color.Red);
        }

        protected override void OnStop()
        {
            // Put your deinitialization logic here
        }
    }
}

Best Regards,

Panagiotis

Hey thanks for the reply, when i try build that code I'm getting 2 errors, is there something I'm missing? 


@oneb700d@gmail.com

oneb700d@gmail.com
02 Apr 2018, 07:49

DOM total

Could we please at some point have the numbers inside the DOM show a total for bid and ask at the top of each side.


@oneb700d@gmail.com