Stoploss Distance indicator

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #53636 quote
    Marcel van VlietMarcel van Vliet
    Participant
    Veteran

    Lazy as I am, I got tired of calculating the stoploss distance of two times the ATR(20) for each trade or backtest.  So I created a very simple indicator to do this job for me. The indicater shows the distance needed between the low of a candle and the stoploss. (In the case of the image 96 pip) You can tweak this indicator to your own needs. (For example; The name in Dutch on the cursor details screen)

    //Stoploss distance
     
    period=20
     
    c=averagetruerange[period](close)
     
    AG = C*2
     
    return AG as "Stoploss distance"

     

    manel thanked this post
    stoploss-distance-1511363868plc48.jpg stoploss-distance-1511363868plc48.jpg
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Stoploss Distance indicator


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 11/22/2017
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...