CALL function

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #50376 quote
    SerdySerdy
    Participant
    Average

    ciao a tutti,

    non mi è del tutto chiaro l’utilizzo della funzione CALL.

    Serve a chiamare un indicatore all’interno di un altro.

    Ma i due parametri che la seguono come si possono utilizzare?

    Ho visto che Nicholas ha usato quei parametri in alcune chiamate e mi piacerebbe conoscere il loro possibile utilizzo.

    Grazie

    myValue = CALL "myIndicator"[parameter1,parameter2]
    #50399 quote
    robertogozzirobertogozzi
    Moderator
    Legend
    indicator1, indicator2 = CALL "myIndicator"[parameter1,parameter2]

    Nella prima variabile verrà messo il dato restituito come primo da RETURN, poi il secondo ecc…

    Se, ad esempio, ci sono 3 parametri e a te interessa solo il secondo puoi usare la parola riservata IGNORED per ignorare quelli inutilizzati, ovviamente ad indicator2 puoi dare il nome che preferisci:

    ignored, indicator2, ignored = CALL "myIndicator"[parameter1,parameter2]

    I valori sono quelli indicati (ed in quell’esatto ordine) con RETURN, non quelli che tu indichi quando fai la CALL.

    Nicolas and Serdy thanked this post
Viewing 2 posts - 1 through 2 (of 2 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

CALL function


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Serdy @trade1959 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
8 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 10/24/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...