STD / standard deviation as TP / SL?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #178916 quote
    phoentzs
    Participant
    Master

    If I want to define the STD, i.e. the standard deviation from the course, as TP or SL, how can I write that as code? For example TP = 2 * STD of the last 200 bars?

    #178922 quote
    robertogozzi
    Moderator
    Master
    TP = 2 * STD[200](close)
    #178925 quote
    phoentzs
    Participant
    Master

    Does that work as take profit? So easy?

    #178926 quote
    robertogozzi
    Moderator
    Master

    It’s expressed as a price difference, just divide it by PIPSIZE to get pips (it doesn’t make any difference with indices, though).

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

STD / standard deviation as TP / SL?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
phoentzs @phoentzs Participant
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 10/01/2021
Status: Active
Attachments: No files
Logo Logo
Loading...