You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since I'm doing calculations based on indicators, the first, let's say 50 records are not so accurate due to the fact that there wasn't enough data. I want to truncate those 50 records/results. How can I do that? The truncate should be executed in the beginning of the Frame.
publicclassRsiStrategy:StrategyBase{publicoverrideFrame<int,string>PopulateIndicators(Frame<int,string>dataFrame){varcandles=dataFrame.Rows.Select(kvp =>newCandle{Timestamp=kvp.Value.GetAs<DateTime>("Timestamp"),Open=kvp.Value.GetAs<decimal>("Open"),High=kvp.Value.GetAs<decimal>("High"),Low=kvp.Value.GetAs<decimal>("Low"),Close=kvp.Value.GetAs<decimal>("Close"),Volume=kvp.Value.GetAs<decimal>("Volume")}).Observations.Select(e =>e.Value).ToList<IOhlcv>();// TODO: Truncate the first 50 elements of the FramedataFrame.AddColumn("Rsi",candles.Rsi(2));returndataFrame;}}
The text was updated successfully, but these errors were encountered:
Since I'm doing calculations based on indicators, the first, let's say 50 records are not so accurate due to the fact that there wasn't enough data. I want to truncate those 50 records/results. How can I do that? The truncate should be executed in the beginning of the
Frame
.The text was updated successfully, but these errors were encountered: