Gamestudio Links
Zorro Links
Newest Posts
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
ZorroGPT
by TipmyPip. 08/22/26 08:44
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
phantom() not defined in indicators.c
by jcl. 08/07/26 11:45
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 3,002 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 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