Always on market

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #99929 quote
    AlgoAlexAlgoAlex
    Participant
    Master

    Given two conditions, let call them BUY and SELL, is it possible to create a system always on market long or short?

    F.e. when the system starts, the firs signal is BUY, and it stays long on market until a SELL signal appears that close the long and open a short position etc.

    Is it possible in ProOrder?

    #99931 quote
    GraHalGraHal
    Participant
    Master

    Yes I’ve got a few like that … they are onmarket like 98.9% of the time!

    You need cumulateorders = False, well I do anyway as I always do.

    #99932 quote
    VonasiVonasi
    Moderator
    Master

    Yes. Any time that you are long on the market a SELLSHORT order will close the long trade and open a short trade and any time that you are short on the market a BUY order will close the short trade and open a long trade.

    #99933 quote
    NicolasNicolas
    Keymaster
    Legend

    Yes and because hedging is not possible through a single ProOrder system, that how it operates: close the current order before sending the opposite one:

    A buy order will close the short one and vice-versa.

    #99937 quote
    AlgoAlexAlgoAlex
    Participant
    Master

    So all I need is just define buy and sellshort conditions?

    #99938 quote
    GraHalGraHal
    Participant
    Master

    Yes and use cumulate = false unless you want multiple BUY orders OR multiple SELL Orders … which you might get depending on your conditions?/

    #99939 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Yes.

    #99940 quote
    AlgoAlexAlgoAlex
    Participant
    Master

    Yes and use cumulate = false unless you want multiple BUY orders OR multiple SELL Orders … which you might get depending on your conditions?/

    No sure I want the system to be long or short with a fixed size.

    It would be impossible to have multiple buys or sells open because my idea has an alternation of buy and sell.

    GraHal thanked this post
Viewing 8 posts - 1 through 8 (of 8 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

Always on market


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
AlgoAlex @alexf Participant
Summary

This topic contains 7 replies,
has 5 voices, and was last updated by AlgoAlexAlgoAlex
7 years, 4 months ago.

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