Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 02:22:12 +0000



GetHighest/Lowest functions

View Count: 2122

[2013-03-21 20:03:08]
WarriorTrader - Posts: 245
I am using the GetHighest/Lowest functions to get the highest and lowest cumulative delta number for the day from the opening bar. When a two highs or lows are very close the function will not return the same number. It can return two different numbers even though the high/low has not changed.

I can provide some output if that is necessary. Is this something that you can be tightened up or will I have to live with it? I was rounding things off by 500 but the differences are greater than 500 now. Rounding things off by 1,000 may do the trick but that is a big margin of error for my study.

Thx,
WT


[2013-03-21 20:13:48]
Sierra Chart Engineering - Posts: 104368
There must be something else wrong In your code. You can find the source code for these functions in the SierraChart.h file. Look for:
float GetHighest(SCFloatArrayRef In, int Index, int Length)

You can see that they are written in a 100% stable way. You will have to do your own testing and find a solution.
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
Date Time Of Last Edit: 2013-03-21 20:14:13
[2013-03-21 21:28:38]
WarriorTrader - Posts: 245

Yes it is very stable. I'll implement something within my study. It is only an issue when sc.Index changes. So my guess is there is something wrong internally in Sierra Chart. This would explain the irregular behavior I've seen in a few of my studies that use the Drawing Tools. Things were going well till I upgraded from 853 to 949 and now 955.

I have not had to time to document what I have've seen so far but I will in the comming days.


Thx,
WT
[2013-03-22 00:11:27]
WarriorTrader - Posts: 245
OK,

Found the error in my code, but there is still some weird stuff going on with some of the Drawing tolls. I'll be back...

--WT

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account