Close a position after certain time if takeprofit not met

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24134 quote
    robdavrobdav
    Participant
    Veteran

    I would like to know if it’s possible to close a position if it’s been open for a certain time and not met the takeprofit target.

    I would also like to know if it’s possible to know if the position is in profit prior to closing it.

    Many thanks

    Robert

    #24139 quote
    Joachim NilssonJoachim Nilsson
    Participant
    Average

    First question:

    Close a position after 3 hours

     

    Second question:

    Take a look in the pathfinder code. It closes after a certain time if the position is a winner or a looser.

    robdav 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

Close a position after certain time if takeprofit not met


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
robdav @robdav Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Joachim NilssonJoachim Nilsson
9 years, 7 months ago.

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