Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
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
2 registered members (AndrewAMD, TipmyPip), 12,420 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
Doubt about creating new indicator on the indicators.c file!! #469232
11/09/17 09:07
11/09/17 09:07
Joined: Oct 2017
Posts: 10
O
Oligon Offline OP
Newbie
Oligon  Offline OP
Newbie
O

Joined: Oct 2017
Posts: 10
Hello everyone, I have been trying to create a custom zigzag indicator in the indicators.c file. I also included the name reference for the function on the functions.h file.

However, when I try to test it from a new script, the message "Undefined function called!" appears.

Does anyone know what else do I need to do in order to be able to call my new indicator from a new script??

Thanks!!

Re: Doubt about creating new indicator on the indicators.c file!! [Re: Oligon] #469237
11/09/17 12:43
11/09/17 12:43
Joined: Aug 2017
Posts: 102
Spain
B
Brax Offline
Member
Brax  Offline
Member
B

Joined: Aug 2017
Posts: 102
Spain
Hi.

I just created my own advindicators.c in "Include" directory and link it in my scripts with #include <advindicators.c>.

This way you don“t mess the original files.

Re: Doubt about creating new indicator on the indicators.c file!! [Re: Brax] #469242
11/09/17 15:20
11/09/17 15:20
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Yes, indicators.c is for studying the source only. Adding code in that file has no effect.

Re: Doubt about creating new indicator on the indicators.c file!! [Re: jcl] #469327
11/10/17 23:44
11/10/17 23:44
Joined: Oct 2017
Posts: 10
O
Oligon Offline OP
Newbie
Oligon  Offline OP
Newbie
O

Joined: Oct 2017
Posts: 10
Thank you so much @brax and @jcl!! This was really helpful, however I'm getting an error message saying: "'function' undeclared identifier".

I'm probably missing something important here, that message appears when I call the function from a new script and I have included the #include <test.c> statement.

Re: Doubt about creating new indicator on the indicators.c file!! [Re: Oligon] #469333
11/11/17 11:56
11/11/17 11:56
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
You must also include <default.c> before. It is only automatically included when nothing else is included.

Re: Doubt about creating new indicator on the indicators.c file!! [Re: jcl] #469498
11/18/17 14:08
11/18/17 14:08
Joined: Oct 2017
Posts: 10
O
Oligon Offline OP
Newbie
Oligon  Offline OP
Newbie
O

Joined: Oct 2017
Posts: 10
Thanks for your help! That worked like a charm laugh


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1