How to create a function similar to LL

Posted By: RTG

How to create a function similar to LL - 03/14/15 11:22

I have created a data series, and I want a function to examine its lowest low of the past x.

I thought I could copy the LL function defined in indicators.c

//Lowest Low
var LL(int Period)
{
var vLL = 999999;
for(g_count = 0; g_count < Period; g_count++)
vLL = Min(vLL,priceLow(g_count));
return vLL;
}

My version. I there is at least one problem with it. I dont have a predefined function which takes the place of priceLow to compare my fuction with.

I guess I need to find the code for the priceLow function. Where is it in the Zorro files?

var LLofVolatility(int Period) // setup a way to find the lowest low of the volatility indicator
{

int g_count;
int Period;
var vLLofVolatility = 999999;
for(g_count = 0; g_count < Period; g_count++)
vLLofVolatility = min(vLLofVolatility,LLofVolatility(g_count));
return vLLofVolatility;
}
Posted By: RTG

Re: How to create a function similar to LL - 03/14/15 12:32

Ignore, just found the MinVal function.
© 2024 lite-C Forums