N'utiliser qu'une seule variable avec CALL

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #66602 quote
    gharyghary
    Participant
    Veteran

    Bonjour,

    Je fais appel à un indicateur via call mais je ne veux prendre qu’une partie de cette indicateur mais pas les autres composantes, est ce possible ?

    Exemple avec le point pivot Hourly:

    myPivotpointsHourly, myPivotpointsHourly2, myPivotpointsHourly3, myPivotpointsHourly4, myPivotpointsHourly5, myPivotpointsHourly6, myPivotpointsHourly7 = CALL "Pivot points Hourly"
    

    ici je ne veux prendre en considération que ” mypivotpointshourly” et pas les autres variable dans le nouvelle indicateur, lorsque je valide on me dit erreur car je ne fait pas appelle aux autres mypivot2, 3 …

     

    merci

    #66608 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Vous devez remplacer les noms des variables qui ne vous intéressent pas par IGNORED:

    myPivotpointsHourly, ignored, ignored, ignored, ignored, ignored, ignored = CALL "Pivot points Hourly"

    mais vous ne pouvez en omettre aucune

    Roberto

    Nicolas and Nuno thanked this post
    #66609 quote
    NicolasNicolas
    Keymaster
    Legend

    Il faut dans ce cas “ignorer” les variables retournées par l’indicateur que tu ne souhaites pas utiliser, en utilisant le mot clé “ignored”, exemple ci dessous on ne récupère que la 1ère et la 3ème variable:

    myValue1, ignored, myValue3 = CALL "myIndicator"[parameter1,parameter2]

    Comme expliqué dans notre documentation en ligne: https://www.prorealcode.com/documentation/call/

    Nuno thanked this post
    #66610 quote
    NicolasNicolas
    Keymaster
    Legend

    @robertogozzi

    Same reply at the same minute! We are just like twins 😆

    robertogozzi thanked this post
Viewing 4 posts - 1 through 4 (of 4 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

N'utiliser qu'une seule variable avec CALL


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
ghary @ghary Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by NicolasNicolas
8 years, 5 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 03/28/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...