Alertes séquentielles

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

    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
    Nicolas
    Keymaster
    Master

    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.

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 Nicolas
6 years, 7 months ago.

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