Divide by zero fatal error #1

Open
opened 2025-04-01 17:54:13 +02:00 by warlock · 0 comments
Owner

Unhandled exception. System.DivideByZeroException: Attempted to divide by zero.
at System.Decimal.DecCalc.VarDecDiv(DecCalc& d1, DecCalc& d2)
at System.Decimal.op_Division(Decimal d1, Decimal d2)
at Indicators.getVwapWeekly(List1 responses, Int32 index) in /root/cprojects/coin_alerts/Indicators.cs:line 132 at SignalsTest.TAReport.Generate(String _pair, Int32 _interval, List1 response, Int32 index, List`1 history) in /root/cprojects/coin_alerts/TAReport.cs:line 114
at SignalsTest.CoinWatch.Analyze(String symbol) in /root/cprojects/coin_alerts/CoinWatch.cs:line 129
at System.Threading.Tasks.Task.<>c.b__128_1(Object state)
at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

Unhandled exception. System.DivideByZeroException: Attempted to divide by zero. at System.Decimal.DecCalc.VarDecDiv(DecCalc& d1, DecCalc& d2) at System.Decimal.op_Division(Decimal d1, Decimal d2) at Indicators.getVwapWeekly(List`1 responses, Int32 index) in /root/cprojects/coin_alerts/Indicators.cs:line 132 at SignalsTest.TAReport.Generate(String _pair, Int32 _interval, List`1 response, Int32 index, List`1 history) in /root/cprojects/coin_alerts/TAReport.cs:line 114 at SignalsTest.CoinWatch.Analyze(String symbol) in /root/cprojects/coin_alerts/CoinWatch.cs:line 129 at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state) at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: warlock/coin_alerts#1
No description provided.