Global fix (#9)
* Fix time for candle * Fix out ouf range * Fix pnl, fix custom money management * Clean a bit
This commit is contained in:
@@ -110,7 +110,7 @@ internal static class GmxV2Mappers
|
||||
{
|
||||
return new Candle()
|
||||
{
|
||||
Date = DateHelpers.GetFromUnixTimestamp((int)marketPrices[0]).AddSeconds(timeBetween).AddSeconds(-1),
|
||||
Date = DateHelpers.GetFromUnixTimestamp((int)marketPrices[0] + timeBetween).AddSeconds(-1),
|
||||
OpenTime = DateHelpers.GetFromUnixTimestamp((int)marketPrices[0]),
|
||||
Open = Convert.ToDecimal(marketPrices[1]),
|
||||
High = Convert.ToDecimal(marketPrices[2]),
|
||||
|
||||
Reference in New Issue
Block a user