Referencing data from the entry date in stops

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #48697 quote
    Real 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 Pro
    Participant
    Average

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

    #48705 quote
    JC_Bywan
    Moderator
    Master

    Topic moved as requested

    #48716 quote
    Nicolas
    Keymaster
    Master

    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 Pro
    Participant
    Average

    Thanks Nicolas.

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

    #48752 quote
    Real 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.

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 Pro
8 years, 5 months ago.

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