Use Order Type (Market/Limit) as Variable

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #229078 quote
    boup09boup09
    Participant
    New

    Is there a way to use the order type (market or limit) as a variable?

    With the aim to optimize that strategy on that variable.

    Example variable for optimization: at market / at close limit

    #229090 quote
    PeterStPeterSt
    Participant
    Master

    Make an If/Else (as large as you want) and let the condition be ruled by an Optimization Variable …
    šŸ™‚

    boup09 thanked this post
    #229123 quote
    boup09boup09
    Participant
    New

    That works indeed, although making the code considerably longer

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

Use Order Type (Market/Limit) as Variable


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
boup09 @boup09 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by boup09boup09
2 years, 7 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 03/02/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...