Topics
04 Aug 2013, 14:30
 0
 2381
 2
30 Jul 2013, 05:56
 0
 7594
 4
Replies

Lawerance
05 Aug 2013, 13:38

RE:
cAlgo_Fanatic said:

It is not possible to drag the lines produced by an indicator.  You can only drag lines added manually on the chart.

For drawing straight lines you should use ChartObjects.DrawLine.

Thank you for your time


@Lawerance

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

Lawerance
31 Jul 2013, 01:38

RE:
cAlgo_Fanatic said:

Thank you for the kind words!
About the indicator it may be possible to create a custom indicator using the DrawLines method.
About adding volume to an existing position, it has been implemented and you will see it soon in one of the next releases.

Awesome! Thank you very much....


@Lawerance