Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Ayumi, AndrewAMD, howardR), 1,095 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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