#resource and extern function

 

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?

 
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 ?
 
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.
 
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
 
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
 
Ok thanks! 
Reason: