# #resource and extern function

657

using the command

#resource  "Indicators \\ \\ myIndicator.ex4"

and the code for inclusion in custom (),

iCustom(Symbol(), PERIOD_CURRENT, "::Indicators\\myIndicator.ex4", 0)

you can in the choice of the external parameter file .ex4?

Moderator
33498

fly7680:

using the command

#resource  "Indicators \\ \\ myIndicator.ex4"

Right syntax is :

#resource  "\\Indicators\\myIndicator.ex4"

and the code for inclusion in custom (),

iCustom(Symbol(), PERIOD_CURRENT, "::Indicators\\myIndicator.ex4", 0)

you can in the choice of the external parameter file .ex4?

Just add them to iCustom(), what's the problem ?
Moderator
33498

whroeder1:
1. Drop the resource, it has nothing to do which your indicators.
Using resource with indicators allow you to embed indicator's ex4 inside EA's ex4.
657

There is no problem, works well, but I wanted to be able to select from external parameter indicator that I write in the code #resource
62927

fly7680:
There is no problem, works well, but I wanted to be able to select from external parameter indicator that I write in the code #resource

You can not

#resource is compile time (and compiler) directive

You can use multiple #resource directives and then chose among the resources though
657

Ok thanks!