C switch/case statement

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #153158 quote
    ErkimanErkiman
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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 MaddalunoDaniele 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.
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

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 MaddalunoDaniele Maddaluno
5 years, 9 months ago.

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