Perfect Trend Line signaux en fonction du point pivot

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #175515 quote
    Roland57800Roland57800
    Participant
    Veteran

    Bonjour,
    je reviens sur un code que Nicolas a publié en 2017 – PERFECT TREND LINE
    J’ai repris ce code dans lequel j’ai associé le calcul du POINT PIVOT HORAIRE

    Dans le résultat du code je voudrais n’afficher que les signaux de PERFECT TREND LINE que si l’on est au dessus du
    Point Pivot Horaire pour les trades “LONG” et l’inverse pour les “SHORT”

    Je joins le bout de code qui ne fonctionne pas correctement.

    Est ce que l’erreur provient de la 2ème ligne Trend<>trend[1] ?

    apparemment j’ai un souci pour ajouter le code correctement. désolé

    // — SIGNAL —
    if close < PPh then
    if trend<>trend[1] then

    if trend = 0 then
    r=0
    g=0
    b=255
    else
    r=255
    g=0
    b=0
    ENDIF

    drawtext(“☼”,barindex,fastln + 0.27 ,Dialog,Bold,18) coloured(r,g,b)

    Merci pour l’aide
    Bonne journée

    Cordialement

    #175556 quote
    NicolasNicolas
    Keymaster
    Legend

    Au dessus signifiant supérieur, je pense que le problème est que tu testes inférieure à la ligne 4 ?

    #175591 quote
    Roland57800Roland57800
    Participant
    Veteran

    Bonjour Nicolas,

    Merci pour ta réponse.
    Je viens de trouver la solution,

    If Close < PPh n'était pas au bon endroit.

    Merci
    Bonne journée
    Cordialement

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

Perfect Trend Line signaux en fonction du point pivot


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Roland57800Roland57800
5 years, 1 month ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 08/17/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...