ne plus afficher de signaux avec vwap

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

    j’ai créer une stratégie avec un vwap qui affiche un signal quand il est traversé mais je voudrait lui donner la condition

    de ne plus rien affiché tant que l’on ne retraverse par en sens inverse je ne sais pas faire merci de votre aide

    je joint une photo ou l’on voie les autres signaux affiché

    Capture.jpg Capture.jpg
    #233613 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Salut. Vous devez créer une variable qui contrôle si vous êtes ou non à l'intérieur de la position lorsque le signal d'entrée se produit. par exemple vous pouvez créer la variable long.

    indicator1=highest[20](close)
    indicator2=lowest[20](close)
    once long=0
    
    if long=0 and close crosses over indicator1[1] then
    drawarrowup(barindex,close)
    long=1
    endif
    
    if long and close crosses under indicator2[1] then
    drawarrowdown(barindex,close)
    long=0
    endif
    
    return indicator1 coloured("blue"), indicator2 coloured("red")
    #233617 quote
    HETraderHETrader
    Participant
    Junior

    Top  ca fonctionne Merci de votre aide précieuse

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

From idea to ProBuilder code in seconds.

Your coding copilot for ProRealTime™. Ask in plain English — get clean, ready-to-paste indicators, screeners and systems.

Available in 7 languages
Try ProRealAI

ne plus afficher de signaux avec vwap


Support Plateforme : Graphiques, Données & Courtiers

New Reply
Author
author-avatar
HETrader @hetrader Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by HETraderHETrader
2 years, 3 months ago.

Topic Details
Forum: Support Plateforme : Graphiques, Données & Courtiers
Language: French
Started: 06/07/2024
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...