Ajouter une condition si :

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #161376 quote
    UmbraproUmbrapro
    Participant
    Junior

    Bonjour je cherche un moyen d’ajouter une condition.

     

    J’aimerais par exemple pouvoir faire en sorte que mon algo achete au franchissement d’une mm20. Mais uniquement si sur les X dernieres périodes pendant au moins une période le rsi a été sous 30.

     

    J’aimerais aussi savoir si il est possible de programmer une condition pour prendre un ordre uniquement si une moyenne mobile est ascendante/descendante ?

     

    Merci d’avance

    #161460 quote
    NicolasNicolas
    Keymaster
    Legend

    Achète au franchissement : donc le prix franchit ? Si oui voici pour ta première condition :

    x = 10 //quantité de période pour le test sur le rsi
    test = price crosses over average[20] and summation[x](rsi[14]<30)>0

    Pour ta deuxième question, c’est plutôt simple, ascendant signifiant supérieur à sa valeur d’il y a X périodes et inversement pour descendante.

    #161693 quote
    UmbraproUmbrapro
    Participant
    Junior

    C’est la fonction summation que je cherché, merci beaucoup.

Viewing 3 posts - 1 through 3 (of 3 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

Ajouter une condition si :


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
Umbrapro @umbrapro Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by UmbraproUmbrapro
5 years, 9 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 02/14/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...