Comments (9)
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.
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.
RSI values do not change ((((
from stock.indicators.
[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.
Version=1.7.0.0 does not have Vortex indicator
from stock.indicators.
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.
[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.
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.
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)
- allow Zig Zag chain sources
- Why is a Date needed in some simple indicators like Sma, Rsi etc?
- Rsi results seems to be wrong HOT 4
- add SMI Ergodic Indicator/Oscillator HOT 1
- RobiniaDocs API Explorer HOT 4
- Trying to port linreg function in tradingview to C#
- add Andrews pitchfork
- add isolated increment methods
- quote-stream auto-aggregator HOT 1
- handle out-of-sequence late-arrival quotes HOT 1
- auto-prune in-memory stream data HOT 5
- stream through full chains HOT 1
- Forward Curve for CoT Trading HOT 1
- How to calculate a stream HOT 1
- Stc Bug - Out of range exception HOT 3
- Can't seem to matchup the SuperTrend or ATR results with the results showing on chart. HOT 2
- Williams %R values out of 0 to -100 bounds HOT 4
- Fractal all nulls HOT 2
- RSI missing default param value when chainee HOT 2
- add RCI (Rank Correlation Index) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stock.indicators.