“Bloquer” un indicateur un timeframe particulier

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #184871 quote
    Sofitech
    Participant
    Master

    Bonjour à tous,
    je voudrais savoir s’il est possible de créer une condition faisant qu’un indicateur fonctionne uniquement sur 1 timeframe en particulier.

    Par exemple : quand il est placé sur M5, il fonctionne parfaitement mais est invisible sur tous les autres timeframe.

    Merci d’avance.

    #184986 quote
    Nicolas
    Keymaster
    Master

    On peut récupérer l’information du timeframe courant avec l’instruction GETTIMEFRAME, puis faire une condition basée sur son résultat.

    Exemple:

    if gettimeframe=300 then //timeframe 5 minutes = 300 secondes 
     //mon code indicateur 
    endif
    #186830 quote
    Sofitech
    Participant
    Master

    Merci Nicolas.
    Cela peut-il également fonctionner sur un graphique en “tick”. Par exemple indiquer une condition comme gettimeframe = 100 ticks ?

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

“Bloquer” un indicateur un timeframe particulier


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Sofitech @sofitech Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Sofitech
4 years, 1 month ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 01/08/2022
Status: Active
Attachments: No files
Logo Logo
Loading...