How to close on current bar..

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #70999 quote
    dacdac
    Participant
    New

    Hello

    I need help to find a coding example please as I am new to this.

    I have a strategy where I close on a cross over  of two lines. For my strategy, I need to code in, as soon as the cross over happens (as well as having other factors in place), the trade will stop at that point. At the moment it will close at the start of the next 5 minute bar which can mean a jump in price if the indicators happens at the beginning of the 5 minute block.

     

    I notice the drop down box on the simplified creation box is limited to “next bar open” setting…

    Thanks in advance

    #71006 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    As of this version of ProOrder it is not possible to work around this problem.

    MTF (multi time frame) is a long-awaited feature still in the works, expected to be relased this year.

    You may want to read https://www.prorealcode.com/topic/betatesting-multitimeframe-support-automatic-trading/.

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 to close on current bar..


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
dac @dac Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
8 years, 4 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 05/21/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...