.

RSI , DOT Can U help me ?

#1
Can someone please help me to place DOTS in the RSI (as shown in the image) , the color change its no important . Only DOTS



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

namespace cAlgo.Indicators
{

[Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AutoRescale = false, AccessRights = AccessRights.None)]
public class liskoRSI : Indicator
{
[Parameter("Typical(OHC/3)", DefaultValue = true)]
public bool is_typic { get; set; }
[Parameter("WClose (OHCC/4)", DefaultValue = false)]
public bool is_wclose { get; set; }
[Parameter("Median (OH/2)", DefaultValue = false)]
public bool is_median { get; set; }
[Parameter("Period:", DefaultValue = 10)]
public int Period { get; set; }

[Output("level80", Color = Colors.Red, LineStyle = LineStyle.Dots, PlotType = PlotType.Line, Thickness = 1)]
public IndicatorDataSeries level80 { get; set; }
[Output("level20", Color = Colors.Green, LineStyle = LineStyle.Dots, PlotType = PlotType.Line, Thickness = 1)]
public IndicatorDataSeries level20 { get; set; }

[Output("liskorsi", Color = Colors.Blue, PlotType = PlotType.Line, Thickness = 1)]
public IndicatorDataSeries liskoRSIResult { get; set; }

public RelativeStrengthIndex rsi;

protected override void Initialize()
{
DataSeries ds;
ds = MarketSeries.Typical;
if (is_typic)
{
ds = MarketSeries.Typical;
}
if (is_wclose)
{
ds = MarketSeries.WeightedClose;
}
if (is_median)
{
ds = MarketSeries.Median;
}
rsi = Indicators.RelativeStrengthIndex(ds, Period);
}

public override void Calculate(int index)
{
liskoRSIResult[index] = rsi.Result[index];
level80[index] = 80;
level20[index] = 20;
}
}
}
Attachments
ADC.png
"When something is important enough, you do it even if the odds are not in your favor." ElonMusk


Re: RSI , DOT Can U help me ?

#2
KayserCh wrote:
Thu Nov 08, 2018 11:12 am
Can someone please help me to place DOTS in the RSI (as shown in the image) , the color change its no important . Only DOTS



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

namespace cAlgo.Indicators
{

[Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AutoRescale = false, AccessRights = AccessRights.None)]
public class liskoRSI : Indicator
{
[Parameter("Typical(OHC/3)", DefaultValue = true)]
public bool is_typic { get; set; }
[Parameter("WClose (OHCC/4)", DefaultValue = false)]
public bool is_wclose { get; set; }
[Parameter("Median (OH/2)", DefaultValue = false)]
public bool is_median { get; set; }
[Parameter("Period:", DefaultValue = 10)]
public int Period { get; set; }

[Output("level80", Color = Colors.Red, LineStyle = LineStyle.Dots, PlotType = PlotType.Line, Thickness = 1)]
public IndicatorDataSeries level80 { get; set; }
[Output("level20", Color = Colors.Green, LineStyle = LineStyle.Dots, PlotType = PlotType.Line, Thickness = 1)]
public IndicatorDataSeries level20 { get; set; }

[Output("liskorsi", Color = Colors.Blue, PlotType = PlotType.Line, Thickness = 1)]
public IndicatorDataSeries liskoRSIResult { get; set; }

public RelativeStrengthIndex rsi;

protected override void Initialize()
{
DataSeries ds;
ds = MarketSeries.Typical;
if (is_typic)
{
ds = MarketSeries.Typical;
}
if (is_wclose)
{
ds = MarketSeries.WeightedClose;
}
if (is_median)
{
ds = MarketSeries.Median;
}
rsi = Indicators.RelativeStrengthIndex(ds, Period);
}

public override void Calculate(int index)
{
liskoRSIResult[index] = rsi.Result[index];
level80[index] = 80;
level20[index] = 20;
}
}
}
Do you think this help you possibly
if yes,then there are versions of it within rsi thread,try those
Attachments
Untitled.png

Who is online

Users browsing this forum: CommonCrawl [Bot], marwan81 and 0 guests