Un signal passé en appelle un autre / Signal called for another

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

    Bonjour à tous, je suis heureux de publier mon premier post ici

    Je relève un setup de moyennes mobiles (setup1a ou setup1b) et attribue une valeur à mon signal S1,

    Je veux ensuite attribuer une valeur à mon signal S2, si le signal S1 a été égal à 1 au moins une fois sur les 50 dernières périodes et une condition3

    If Setup1a then
    
    S1 = 1
    
    Elsif Setup1b then
    S1 = -1
    Else
    S1 = 0
    
    Endif
    
    if summation[50](S1=1)>0 and condition3 then
    S2 = 1
    elsif summation[50](S1=-1)> 0 and condition3 then
    S2 = -1
    else
    S2 = 0
    endif
    #16315 quote
    yanaphil
    Participant
    New

    La commande est correcte de la sorte :

    S2 = summation[50](s1) >0

    Le problème vient de mon codage du Break Out :

    PlusHaut = highest[200](close)
    
    if S2 and close > PlusHaut then
    I=1
    else
    I=0
    Endif

    il faut mettre :

    PlusHaut = highest[200](close[1])
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Un signal passé en appelle un autre / Signal called for another


Support ProOrder

New Reply
Author
author-avatar
yanaphil @yanaphil Participant
Summary

This topic contains 1 reply,
has 1 voice, and was last updated by yanaphil
9 years, 2 months ago.

Topic Details
Forum: Support ProOrder
Language: French
Started: 11/10/2016
Status: Active
Attachments: No files
Logo Logo
Loading...