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)
Thx @Trembling Hand for had a look on my question but on your pic the RSI value of the left chart is different from the value shown in the message log window. My aim is to get the correct value for further calculations.
Can you help answer these questions from other members on NexusFi?
If it matters... I'd like to use this on the same instrument but different time frames. To evaluate higher time frame's values for lower time frame's dicision. The study I need the values from contains 3 subgraphs and of course sooner or later I'll need all of them
As you can see I try to get (only now other way around) the value of RSI from the 30sec chart. The study still runs on chart#4. The price graph value window' value differs from the message log.
Hi
In C:\SierraChart\ACS_Source folder there is a .cpp called TradingSystem.cpp and in that file around line 1494 there is already a coded trading system based on crossovers called "Trading System - Study Subgraph Crossover". You can use that as the base code.
The Study/Price Overlay Study is coded directly in C++, and the source code is not available. It appears using an ASCIL version of what is a similar function uses more CPU time.
Hi everyone,
I am trying to write a custom function for some calculations but I need to input an array(scFloatArray) into the function.
Now the compiler is showing an error when I call this function and give this array as input. It seems that scArrays are different than normal arrays and hence this error.
The compiler is telling you whats wrong. Your function takes a C++ array but you are passing in a SCFloatArrayRef data structure. Change your function parameters to match what you are passing to it like,
int barsSinceCross(SCFloatArrayRef arr, int occurence) {
int bars = 0;
int reps = 0;
for (int i = sizeof(arr) - 1; i > 0; i--)
{
if (arr[i] == 0.0)
{
bars++;
}
else if (reps < occurence)
{
reps++;
}
else
{
break;
}
}
return bars;
}