drawtext is not displayed on the chart history

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15303 quote
    IG_CFD_Trader
    Participant
    Average

    What is wrong with the below simple code? the text :wekness detected is not displayed on chart. not sure why?

    DEFPARAM DRAWONLASTBARONLY = true
    DEFPARAM CALCULATEONLASTBARS=200
    
    c1=high[1]>BollingerUp[20](close) and close>BollingerUp[20](close)
    c2=high>BollingerUp[20](close) and high>high[1] and close<BollingerUp[20](close) and close<close[1]
    
    if c1 and c2 then
    DRAWTEXT("Weakness Detected",high,c2)
    endif
    RETURN
    #15307 quote
    Nicolas
    Keymaster
    Master

    Because you draw on last bar only. If you want to have your code working on the whole share history, delete your first line. And please use the insert code button next time, thank you.

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

drawtext is not displayed on the chart history


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
IG_CFD_Trader @wnakhoul Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
9 years, 3 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 10/22/2016
Status: Active
Attachments: No files
Logo Logo
Loading...