CALL myIndicator from strategy

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16517 quote
    Philippo
    Participant
    Average

    Hi, anyone resolved something similar?

    I am trying to use a home made indicator in my strategy and it won’t find it…

     

    How I call my indicator from  within the strategy

    lsl, ssl = CALL "myATRstop[ATRlevel]" 

    see attachemnts, first is the actual indicator, it has one input and two outputs

    second is the error message i get.

     

    probably something really dim ive done..anyone got any ideas? Thanks

    myATRstop indicator:

    atr=AverageTrueRange[14](close)*multiplier
    longstoplevel=lowest[14](low-atr)
    shortstoplevel=highest[14](low+atr)
    //longstoptrigger=low<longstoplevel[1]
    //shortstoptrigger=high>shortstoplevel[1]
    //DRAWARROWUP (0, longstoplevel) COLOURED (255, 0, 0)
    
    return longstoplevel[1] as "Long level", shortstoplevel[1] as "Short level"
    
    //, shortstoptrigger*shortstoplevel as "Short trigger", longstoptrigger*longstoplevel as "Long trigger"
    
    Screen-Shot-2016-11-14-at-17.07.39-1.png Screen-Shot-2016-11-14-at-17.07.39-1.png Screen-Shot-2016-11-14-at-17.02.37-1.png Screen-Shot-2016-11-14-at-17.02.37-1.png
    #16521 quote
    Philippo
    Participant
    Average

    ..second is the error i get when i run the strategy

    #16529 quote
    Nicolas
    Keymaster
    Master

    You should call your indicator like this instead:

    lsl, ssl = CALL "myATRstop"[ATRlevel] 

    If I understand correctly, you want to modify the default parameter of the called indicator with (‘multiplier’ variable) with ‘ATRlevel’ from the strategy?

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

CALL myIndicator from strategy


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Philippo @philipd Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Nicolas
9 years, 3 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 11/14/2016
Status: Active
Attachments: No files
Logo Logo
Loading...