% instead of Pts

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #170715 quote
    Inertia
    Participant
    Master

    Hi there,

    The DOW prices 34500 and the TOPIX prices 1950.

    The “draw text” then dosen’t show at the right place on both. It is even in some occasion outside of the chart area.

    Q: What is the formula please to turn pts in % ? something like “pointsize/100”?

    Thank you in advance.

    If Signalachat then
    PrixACHAT = Low
    DRAWARROWUP(barindex, low -3)coloured (0,255 ,0)
    DRAWTEXT ("GO LONG !", barindex,low -10) coloured(0,125, 0)
    endif
    
    if Signalvente then
    PrixVENTE = high
    DRAWARROWDOWN(barindex,high+3) coloured (255, 40 , 0)
    DRAWTEXT ("GO SHORT !", barindex,High + 10 ) coloured(255,40,0)
    #170717 quote
    robertogozzi
    Moderator
    Master

    Use RANGE or (RANGE / 2) or AVERAGE[20,0](range)  instead of a constant:

    DRAWARROWUP(barindex, low - (range / 2))coloured (0,255 ,0)
    DRAWTEXT ("GO LONG !", barindex,low - AVERAGE[20,0](range)) coloured(0,125, 0)
    #170718 quote
    robertogozzi
    Moderator
    Master

    Any expression you may think of is valid.

    Inertia thanked this post
    #170719 quote
    Inertia
    Participant
    Master

    That is just perfect Roberto ! Grazie à lei !

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

% instead of Pts


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Inertia @inertia Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 05/29/2021
Status: Active
Attachments: No files
Logo Logo
Loading...