Skip to content

Commit

Permalink
Merge pull request karlwancl#108 from enricodetoma/master
Browse files Browse the repository at this point in the history
Fix for managing period transforms correctly where there are "holes" in original period data
  • Loading branch information
Karl Wan authored Mar 7, 2020
2 parents a84bb84 + 7390751 commit 3bfcf19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Trady.Core/CandleExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static IReadOnlyList<IOhlcv> Transform<TSourcePeriod, TTargetPeriod>(this
var indexTime = orderedCandles[i].DateTime;
if (indexTime >= periodEndTime)
{
periodStartTime = periodEndTime;
periodStartTime = indexTime;
periodEndTime = periodInstance.NextTimestamp(periodStartTime);

AddComputedCandleToOutput(outputCandles, tempCandles);
Expand Down

0 comments on commit 3bfcf19

Please sign in to comment.