how can set a specific stop loss

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #181326 quote
    dddd
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
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

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 robertogozzirobertogozzi
4 years, 11 months ago.

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