Condition et TimeFrame

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #222450 quote
    fifi743fifi743
    Participant
    Master

    pour ce code les valeurs de retour sont bonne en 1 min

    
    timeframe(5 minute)
    a = gettimeframe/60
     
    timeframe(1 minute)
    b = gettimeframe/60
     
     
    return a as "5SM200",b as "1SM200"
    Capture-decran-2023-10-14-162734.png Capture-decran-2023-10-14-162734.png
    #222490 quote
    NicolasNicolas
    Keymaster
    Legend

    Si ça fonctionne, mais il ne faut pas utiliser de IF/ENDIF autour du CALL qui appelle un indicateur qui a l’instruction TIMEFRAME.

    Si le CALL retourne 0, alors cela signifie que l’indicateur en question ne peut se calculer (en cause un timeframe inatteignable, par exemple le TF 15-minutes sur un TF 1-heure).

    Exemple:

    valeur = call "mon indic 1 heure"
    
    if valeur > 0 then 
     // données atteignables faire quelque chose 
    else
     // pas de données! :( 
     // ne rien faire, message d'alerte par exemple?
    endif
Viewing 2 posts - 16 through 17 (of 17 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

Condition et TimeFrame


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
rwanderer @rwanderer Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 01/04/2023
Status: Active
Attachments: 4 files
ProRealCode ProRealCode
Loading...