Announcement

Collapse
No announcement yet.

Using own Indicators

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using own Indicators

    Hi, I'm trying to do some backtesting with my own customer indicators and I'm not sure how to pull these from my library.

    I now if I just wanted to pull an ema it would go somthing like this:
    function preMain() {

    setPriceStudy(true);
    setStudyTitle("EMA");
    setCursorLabelName("EMA",0);
    setDefaultBarFgColor(Color.blue,0);
    setPlotType(PLOTTYPE_LINE,0);
    setDefaultBarThickness(1,0);
    }

    function main() {

    return ema(10);

    But if I wanted to pull my own personal indicator named "EMA Divergence" and resides in the Library folder, how can I do that ?

    I think I need to do the path but I'm not sure of the format any help appreciated.

    tks

  • #2
    shane280us2
    To call an external script use the efsExternal() function. For the description and syntax required by the function see this article in the EFS KnowledgeBase. You can find various examples on how to use this function in this thread.
    As to the path this can be written either as "\\Library\\nameofyourefs.efs" or "/Library/nameofyourefs.efs"
    Alex

    Comment

    Working...
    X