Login Page - Create Account

Support Board


Date/Time: Thu, 19 Sep 2024 21:33:16 +0000



Post From: Exponential Moving Averages Calculation

[2014-02-23 20:15:29]
Sierra Chart Engineering - Posts: 104368
With floating-point calculations sometimes there could be results which are not valid numbers. The main case would be dividing by 0. This code is designed to catch numbers which are not actually valid floating-point numbers and ignore them:
!((PreviousMovingAverageValue > -FLT_MAX) && (PreviousMovingAverageValue < FLT_MAX))
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing