Alertes séquentielles

Viewing 2 posts - 46 through 47 (of 47 total)
  • Author
    Posts
  • #102949 quote
    NicolasNicolas
    Keymaster
    Legend

    Quelle est la plus petite unité de temps du robot ?

    Si c’est le timeframe M5 par exemple, c’est celui qui s’update le plus rapidement/souvent.

    Soit respectivement C1,C2 et C3, 3 conditions temporelles d’autres UT pour passer un signal à 1:

    timeframe(5 minutes)
     if c1 and not c1[1] then
      datec1 = date
      timec1 = time
     endif
     if c2 and not c2[1] then
      if date>=datec1 and time>=timec1 then 
       datec2 = date
       timec2 = time 
      endif
     endif
     if c3 and not c3[1] then
      if date>=datec2 and time>=timec2 then 
        signal=1
      endif
     endif

    Brouillon non testé. Il faudra penser à réinitialiser le signal à 0.

    #102950 quote
    NicolasNicolas
    Keymaster
    Legend

    Sauf erreur de ma part et Vendredi oblige 😆 , on pourrait aussi essayer d’utiliser le barindex de l’UT M5 avec cet exemple (au lieu de comparer les dates et heures).

Viewing 2 posts - 46 through 47 (of 47 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

Alertes séquentielles


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
PhilippeN @philippen Participant
Summary

This topic contains 46 replies,
has 2 voices, and was last updated by NicolasNicolas
7 years, 2 months ago.

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 05/15/2019
Status: Active
Attachments: 3 files
ProRealCode ProRealCode
Loading...