Login Page - Create Account

Support Board


Date/Time: Tue, 25 Feb 2025 15:58:55 +0000



[Programming Help] - Float problem on reading high

View Count: 477

[2021-04-16 11:45:35]
User554446 - Posts: 29
Hi, I am trying to return on the message board the highest value of the candle (including premarket ) for debugging purpose. But I tryed both this code and they are returning a wrong value. Can you please help?

First Code:
float Price;
Price = sc.GetHighest(sc.BaseDataIn[SC_HIGH],2) ;
SCString Buffer;
Buffer.Format("My last price is %f. ", Price);

Second Code
float Price= sc.High(sc.Index);

Where is the problem?

Thank you

Andrea

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

Login

Login Page - Create Account