Esclusione righe di codice

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

    Buongiorno,

    Volevo chiedere qual’è la via piu’ rapida per escludere diverse righe di codice per poter testare un programma con o senza le righe escluse.

    In un altro liguaggio di programmazione ad esempio mi pare che si possano mettere le parentesi graffe all’inizio e alla fine delle righe da escludere.

    C’e qualcosa di simile?

    Grazie

    #194605 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Puoi commentare una singola riga mettendo due barre (//) all’inzio, in modo che, essendo considerati commenti, quella riga (dalle barre in poi, verso destra) sia ignorata, esempio:

    //BUY 1 Contract at Market

    Se devi commentarne più di una conviene usare barra+asterisco (/*) iniziale e, alla fine o dopo l’ultima riga, usare asterisco+barra (*/) finale, esempio:

    /*
    BUY 1 Contract at Market
    SL = abs(close - highest[3](high))
    TP = SL * 3
    */

    però, se preferisci, puoi usare le doppie barre su OGNI riga.
    Le parti commentate vengono grigiate dal ProRealTime.

    #194613 quote
    Stefano1234Stefano1234
    Participant
    Average

    Grazie Roberto

    barra+asterisco (/*) iniziale e, alla fine o dopo l’ultima riga asterisco+barra (*/) finale è quello che cercavo.

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

Esclusione righe di codice


ProOrder: Trading Automatico & Backtesting

New Reply
Author
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 06/04/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...