Set SL under previous low

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #148800 quote
    Jaykay
    Participant
    Senior

    Hello,

    I’m a little rusty here but if someone could help me to find the code for

    StopLoss on or under the previous low on the 15min chart before it starts trailing.

    Thank you.

    #154679 quote
    robertogozzi
    Moderator
    Master

    Try this (not tested):

    IF MyLongConditions THEN
       BUY 1 Contract at Market
       SET STOP LOSS abs(close - low[1])
    ENDIF
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Set SL under previous low


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Jaykay @jaykay Participant
Summary

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

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