Création d’un indicateur d’avalement

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #184999 quote
    dridridridri
    Participant
    Junior

    Bonjour, vous serais t’il possible de créer un indicateur entourant sous forme d’ellipse un bougie d’avalement.
    L’avalement serait considéré à partir du moment ou les mèches débordent au dessus et en dessous de la bougie précédente, mise à part celle du dimanche.
    Si cela vous est possible je vous en remercie.
    Bonne journée à vous.

    #185100 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Bonjour, à tester en UT jour seulement:

    if opendayofweek=1 then
     back=3
    else
     back=2
    endif
    
    if opendayofweek<>1 then
     prevO=open[1]
     prevH=high[1]
     prevL=low[1]
     prevC=close[1]
    endif
    
    if opendayofweek<>0 then
    
    if close>max(prevO,prevC) and open<min(prevO,prevC) and high>prevH and low<prevL then
     DRAWELLIPSE(barindex[back], low-range/4, barindex+1, high+range/4) coloured(0,255,0)
    endif
    if close<min(prevO,prevC) and open>max(prevO,prevC) and high>prevH and low<prevL then
     DRAWELLIPSE(barindex[back], low-range/4, barindex+1, high+range/4) coloured(255,0,0)
    endif
    
    endif
    
    return

    en l’ajoutant dans la fenêtre du prix: https://www.prorealcode.com/blog/video-tutorials/how-to-add-an-indicator-on-price-prorealtime/

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

Création d’un indicateur d’avalement


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
dridri @dridri Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by JC_BywanJC_Bywan
4 years, 8 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/10/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...