Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Dear Sierrachart programmers, i am starting to study the sierrachart programming language and would need some help.
As this is all new for me, i would greatly appreciate if somebody can give me an example simple sourcecode of an indicator that would have 1 output (a line or an historigram, separated from main chart, to appear in a panel below the primary chart).
This historigram output would simply have a value of "1" if the close price of a bar is higher than the close price of the previous bar, and -1 if lower.
It would be very helpful in starting to understand the basis of the programming language for me!
thank you very much
Can you help answer these questions from other members on NexusFi?
uhm.. i used to give a fast look to the studies*.cpp files but got literally scared from the lenght of such files (7000 lines of code in a single sourcefile!).
Now i see in one single file there are many indicators coded, so it start making some sense..
I will look deep into them, thank you for pointing it out to me! Appreciated
// Section 1 - Set the configuration variables and defaults
if (sc.SetDefaults)
{
sc.GraphName = "Examplecode4w4rn1ng";
// During development set this flag to 1, so the DLL can be rebuilt without restarting Sierra Chart. When development is completed, set it to 0 to improve performance.
sc.FreeDLL = 1;
sc.AutoLoop = 1; //Automatic looping is enabled.
sc.GraphRegion = 1;