Referencing data from the entry date in stops

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #48697 quote
    Real ProReal Pro
    Participant
    Average

    Hi,  Could someone please advise if it’s possible to reference data from the entry bar and use that in the stops?

    eg.  at the entry bar, the low = 10.  Stop if close<10

    Thanks very much.

    #48702 quote
    Real ProReal Pro
    Participant
    Average

    Sorry I’ve accidentally posted this is the wrong forum.  Needs to be in Pro Order.  Thanks.

    #48705 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Topic moved as requested

    #48716 quote
    NicolasNicolas
    Keymaster
    Legend

    Yes, you can put your stoploss directly when entering the trade like this:

    if entrycondition then 
     buy 1 share at market 
     set stop loss close-low
    endif
    #48729 quote
    Real ProReal Pro
    Participant
    Average

    Thanks Nicolas.

    It doesn’t seem to be working.  What does ‘close-low’ mean please?

    #48752 quote
    Real ProReal Pro
    Participant
    Average

    EDITED

    ok, working now!  Thanks again Colin.

Viewing 6 posts - 1 through 6 (of 6 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

Referencing data from the entry date in stops


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Real Pro @real-pro Participant
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by Real ProReal Pro
8 years, 11 months ago.

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