Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AbrahamR), 717 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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: 181
R
RTG Offline OP
Member
RTG  Offline OP
Member
R

Joined: Feb 2014
Posts: 181
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: 181
R
RTG Offline OP
Member
RTG  Offline OP
Member
R

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


Moderated by  Petra 

Gamestudio download | chip programmers | 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