GithubHelp home page GithubHelp logo

Comments (9)

DaveSkender avatar DaveSkender commented on May 18, 2024

Are you aware of and excluding the warmup period required for convergence precision in RSI? I've been debating whether or not we should keep this warmup period data in the results because we do get this inquiry occasionally (#306). Make sure you're using enough preceding price history and then ignore the warmup period, which - for RSI - is the first 10xN or 40-60 or more dates in your case. We recommend even more. See docs for RSI

For Aroon, I can't say what or where the issue is without more information. It's a fairly simple calculation. Can you compare your Binance chart to a more reputable site like StockCharts.com and let me know what you find? I personally do not trust the Binance and TradingView charts because they often use unverified user-provided indicators (#318).

For both, also consider that the source data in the charting site may be different than what you're using here.

from stock.indicators.

8AWESOME4 avatar 8AWESOME4 commented on May 18, 2024

List init_quote_300_Tick_For_Signals = new List();
Quote quote_ = new Quote();
decimal open = 0;
private void GetTick()
{
_ = BiSocketClient.Spot.SubscribeToKlineUpdates(pairs, interval, (data) =>
{
_ = Invoke(new Action(() =>
{
quote_.CloseDate = data.Data.CloseTime;
quote_.Open = data.Data.Open;
quote_.High = data.Data.High;
quote_.Low = data.Data.Low;
quote_.Close = data.Data.Close;
quote_.Volume = data.Data.QuoteVolume;

                  init_quote_300_Tick_For_Signals.RemoveAt(init_quote_300_Tick_For_Signals.Count - 1);
                  init_quote_300_Tick_For_Signals.Add(quote_);

                  
                  decimal? RSI = Indicator.GetRsi(init_quote_300_Tick_For_Signals, 4).LastOrDefault().Rsi; // the value does not change((((
                  decimal ? RSI_24 = Indicator.GetRsi(init_quote_300_Tick_For_Signals, 6).LastOrDefault().Rsi;// the value does not change((((
                  var AROON = Indicator.GetAroon(init_quote_300_Tick_For_Signals).LastOrDefault();// the value does not change((((
                  listBox1.Items.Add($"{data.Symbol}\tClose {data.Data.Close}\tOpen {data.Data.Open}\t{DateTime.Now.ToShortTimeString()}\tRSI-4 {Math.Round((decimal)RSI, 1)}\tRSI-6 {Math.Round((decimal)RSI_24, 1)}\tAroon_DOWN {AROON.AroonDown}\tAroon_UP {AROON.AroonUp}");
                  if (open != data.Data.Open)
                  {
                      listBox1.Items.Add("INTERVAL");
                      init_quote_300_Tick_For_Signals.RemoveAt(0);
                      init_quote_300_Tick_For_Signals.Add(quote_);
                      open = data.Data.Open;
                  }
              }));// Handle account info update 
          });
    }
private void GetKlinesBefore_300() // GOOD History  
    {
        init_quote_300_Tick_For_Signals.AddRange(BiClient.Spot.Market.GetKlines(pair, interval)
            .Data.Select(u => new Quote
            {
                Open = u.Open,
                Close = u.Close,
                Low = u.Low,
                High = u.High,
                Volume = u.QuoteVolume,
                Date = u.CloseTime
            }).ToList());
    }

from stock.indicators.

8AWESOME4 avatar 8AWESOME4 commented on May 18, 2024

RSI values do not change ((((

from stock.indicators.

8AWESOME4 avatar 8AWESOME4 commented on May 18, 2024

image

[Serializable]
public class Quote : IQuote
{
internal int? Index { get; set; }
public DateTime Date { get; set; }
public DateTime CloseDate { get; set; }
public decimal Open { get; set; }
public decimal High { get; set; }
public decimal Low { get; set; }
public decimal Close { get; set; }
public decimal Volume { get; set; }
}

from stock.indicators.

8AWESOME4 avatar 8AWESOME4 commented on May 18, 2024

Version=1.7.0.0 does not have Vortex indicator

from stock.indicators.

DaveSkender avatar DaveSkender commented on May 18, 2024

I can see you’re stuck here. I suspect there’s something in your implementation that’s problematic, around use of LastOrDefault().

Call for help: Anyone available to help with a user code review?

from stock.indicators.

8AWESOME4 avatar 8AWESOME4 commented on May 18, 2024

[Serializable]
public class Quote : IQuote
{
internal int? Index { get; set; }
public DateTime Date { get; set; }

public DateTime CloseDate { get; set; } // is ERROR

public decimal Open { get; set; }
public decimal High { get; set; }
public decimal Low { get; set; }
public decimal Close { get; set; }
public decimal Volume { get; set; }
}
Нашел ошибку, исправил теперь все работает!!! ) тикет можете закрыть

from stock.indicators.

DaveSkender avatar DaveSkender commented on May 18, 2024

Add DateTime IQuote.Date => CloseDate; into your custom Quote class. If you're customizing like this, you have to map your custom CloseDate to the original Date property. You may have to remove the Date property if you do it this way though.

More info: Using custom quote property names

I'm glad you were able to find and resolve the bug in your code. Closing the issue.

from stock.indicators.

github-actions avatar github-actions commented on May 18, 2024

This Issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new Issue for related bugs.

from stock.indicators.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.