I need help please...

Created at 04 Aug 2013, 14:30
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!
LA

Lawerance

Joined 30.07.2013

I need help please...
04 Aug 2013, 14:30


How can I make my horizontal lines movable? ie...draggable

 

This is what I have right now...

//-------------------------------------------------------------------------------------------------------

using System;
using cAlgo.API;
using cAlgo.API.Indicators;

namespace cAlgo.Indicators
{
    [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC)]
    public class NewIndicator : Indicator
    {
        [Parameter(DefaultValue = 0.0)]
        public double Parameter { get; set; }

        [Output("Main", PlotType = PlotType.Line)]
        public IndicatorDataSeries Result { get; set; }

       public override void Calculate(int index)
        {
            Result[index] = 1.3;
        }
    }
}

//-------------------------------------------------------------------------------------------------------

My question is this.How can I eliminate having to put in the value of the line (ie...1.3, etc...),

and make it draggable?

 

Thank you

 

 

 


@Lawerance
Replies

Lawerance
04 Aug 2013, 14:33

RE:
Lawerance said:

How can I make my horizontal lines movable? ie...draggable

 

This is what I have right now...

//-------------------------------------------------------------------------------------------------------

using System;
using cAlgo.API;
using cAlgo.API.Indicators;

namespace cAlgo.Indicators
{
    [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC)]
    public class NewIndicator : Indicator
    {
        [Parameter(DefaultValue = 0.0)]
        public double Parameter { get; set; }

        [Output("Main", PlotType = PlotType.Line)]
        public IndicatorDataSeries Result { get; set; }

       public override void Calculate(int index)
        {
            Result[index] = 1.3;
        }
    }
}

//-------------------------------------------------------------------------------------------------------

My question is this.How can I eliminate having to put in the value of the line (ie...1.3, etc...),

and make it draggable?

 

Thank you

 

 

 

Sorry, I posted this in the wrong place.


@Lawerance