Login Page - Create Account

Support Board


Date/Time: Sat, 21 Apr 2018 15:30:50 +0000



GetHighest/Lowest functions

Support Request:
[2013-03-21 20:03:08]
WarriorTrader - Posts: 162
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: 59305
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. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
Date Time Of Last Edit: 2013-03-21 20:14:13
[2013-03-21 21:28:38]
WarriorTrader - Posts: 162

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: 162
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 login with your Sierra Chart account:

Login


Login Page - Create Account