Gamestudio Links
Zorro Links
Newest Posts
Black Book, 4th edition
by jcl. 03/17/26 09:28
Trying to get started...
by Lukudo. 03/16/26 09:08
ZorroGPT
by TipmyPip. 03/08/26 18:50
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 8,871 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
mredit, vestriaa, Lukudo, mldenoiser, the1
19204 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