Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Quad), 6,235 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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,150
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,150
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