C switch/case statement

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #153158 quote
    Erkiman
    Participant
    Average

    Hi, is there any way of writing C/C# switch/case type statements in ProRealTime or is the only way to use multiple IF-statements?

    switch (expression)
    ​{
    case constant1:
    // statements
    break;

    case constant2:
    // statements
    break;
    .
    .
    .
    default:
    // default statements
    }

    #153159 quote
    robertogozzi
    Moderator
    Master

    No, there’s no SWITCH statement.

    You can read all available instructions, keywords and constants at https://www.prorealtime.com/en/help-manual/quick-tour.

    Erkiman thanked this post
    #153193 quote
    Daniele Maddaluno
    Participant
    Master

    Take a look at the documentation too, especially inside of the “instructions” section.
    In the column that you’ll find on the right there are all the possible instructions that you can use inside of PRT.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

C switch/case statement


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Erkiman @erkiman Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by Daniele Maddaluno
5 years, 2 months ago.

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