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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16310 quote
    yanaphilyanaphil
    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
    yanaphilyanaphil
    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.
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

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


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
yanaphil @yanaphil Participant
Summary

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

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 11/10/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...