Variable avec plusieurs niveaux d’incrémentation

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

    Bonjour,

    Existe-t-il un moyen de retranscrire une variable avec plusieurs niveaux d’incrémentation un peu dans cet esprit:

    for i = 1 to 3 do
    for j = 1 to 5 do
    if $Variable[i][j] = XXX then
    //action
    endif
    next
    next

    Merci

    #232090 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Bjr,

    Tableau monodimensionnel seulement pour le moment. Mais si l’une des dimensions a son rang max connu, figé et pas trop grand (comme le cas i=3), on peut contourner en créant 3 (du i= 1 à 3) tableaux monodimensionnels d’indice j, qu’on pourrait nommer $variable1[j], $variable2[j], $variable3[j], les 3 juxtaposés émulant la matrice voulue.

    Mais pour un i grand, ou inconnu d’avance, il faudrait des tableaux bidimensionnels (pas dispo au moment du post, ni sur le radar des prochaines nouveautés).

    Stef1618 thanked this post
    #232094 quote
    Stef1618Stef1618
    Participant
    Average

    Merci pour le retour rapide. Je voulais justement éviter de la faire à la main.

    Mais ce n’est pas trop grave, ce n’est heureusement pas critique pour mon développement.

    Bonne journée.

    JC_Bywan thanked this post
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

Variable avec plusieurs niveaux d’incrémentation


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
Stef1618 @stef1618 Participant
Summary

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

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 04/30/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...