CALCUL AVEC LA FONCTION TIME

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #205063 quote
    cogeres51cogeres51
    Participant
    New

    Bonjour à tous,

    Mon proscrenner contient 2 jeux d’instructions.

    Au lancement du proscreener (time départ= currentime), je souhaite appliquer le jeu d’instructions n°1 et cela pendant dix minutes.

    Après dix minutes, le proscreener doit utiliser le jeu d’instructions n°2 pendant 10 minutes.

    Et effectuer ce basculement alternatif toutes les 10 minutes.

    Pouvez-vous m’aider à écrire cette routine, je n’y arrive pas.

    Merci

    #205113 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Bonjour

    // uniquement pour TF qui divise 10 minutes, donc pour timeframes 1mn, 2mn, 5mn, 10mn uniquement
    
    jeu1=1
    jeu2=-1
    once jeu0=jeu1
    
    if minute mod 10 = 0 then
     if jeu0=jeu1 then
      jeu0=jeu2
     elsif jeu0=jeu2 then
      jeu0=jeu1
     endif
    endif
    
    if jeu0=jeu1 then
    
     //ajouter un jeu d'instructions
     condition = ...
    
    elsif jeu0=jeu2 then
    
     //ajouter l'autre jeu d'instructions
     condition = ...
    
    endif
    
    
    screener[condition](...)
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

CALCUL AVEC LA FONCTION TIME


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
cogeres51 @cogeres51 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by JC_BywanJC_Bywan
3 years, 10 months ago.

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 11/30/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...