Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (dBc), 17,971 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to create a function similar to LL #449321
03/14/15 11:22
03/14/15 11:22
Joined: Feb 2014
Posts: 183
R
RTG Offline OP
Member
RTG  Offline OP
Member
R

Joined: Feb 2014
Posts: 183
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;
}

Last edited by RTG; 03/14/15 11:36.
Re: How to create a function similar to LL [Re: RTG] #449322
03/14/15 12:32
03/14/15 12:32
Joined: Feb 2014
Posts: 183
R
RTG Offline OP
Member
RTG  Offline OP
Member
R

Joined: Feb 2014
Posts: 183
Ignore, just found the MinVal function.


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1