how can set a specific stop loss

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #181326 quote
    dd
    Participant
    New

    how can set a stop loss at the lowest of the entry bar?
    eg. the lowest of 3 bar before the entry bar

    I can’t find a code for that

    #181342 quote
    robertogozzi
    Moderator
    Master

    There you go:

    IF MyLongConditions THEN
       BUY AT MARKET
       SET STOP LOSS abs(close - lowest[3](low))
    ENDIF
    Midlanddave thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

how can set a specific stop loss


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
dd @dylan_cheuk_yiu Participant
Summary

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

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