Download MetaTrader 5

#resource and extern function

To add comments, please log in or register
fly7680
657
fly7680  

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?

Alain Verleyen
Moderator
33498
Alain Verleyen  
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 ?
Alain Verleyen
Moderator
33498
Alain Verleyen  
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.
fly7680
657
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
Mladen Rakic
62927
Mladen Rakic  
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
fly7680
657
fly7680  
Ok thanks! 
To add comments, please log in or register