EOD trailing SL indicator?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #117976 quote
    henry crun
    Participant
    New

    Hi.

    My ATR based (end of day) trailing stop loss code works well in ProBacktest:

    close<(Highest[BarIndex-TradeIndex+1](high)-(ATR*2.5))

    However, when I try to code it as an indicator on charts, the following error message is displayed:

    BUY/STOP orders are only allowed in ProBackTest

    Why is this trailing SL not allowed as an indicator?

    Can you suggest an alternative solution?

    Thanks in anticipation,

    #117981 quote
    robertogozzi
    Moderator
    Master

    As your post reports, indicators do not support BUY/STOP orders.

    Indicators can only RETURN data/signals. Orders are not their goal.

    Remove any trading order and add RETURN.

    #117982 quote
    Vonasi
    Moderator
    Master

    It is because indicators cannot have code in them that is do with orders. TRADEINDEX is a PrOrder code word and not a ProBuilder code word.

    The best way to display the stop level is to do it in the strategy by using GRAPHONPRICE.

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

EOD trailing SL indicator?


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
henry crun @henry-crun Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by Vonasi
6 years ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/27/2020
Status: Active
Attachments: No files
Logo Logo
Loading...