Advice on finding a Point

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #137182 quote
    TravellingTrader
    Participant
    New

    Hi

    I would like to write a code that involves finding a point and then Working forwards from this to another point and then working forwards from this potentially with another instruction

    Any quick instruction I could use

    Have been playing with loops having done the tutorial but cant work out how to get my desired outcome

    The outcome I am aiming for is :-

    Touch Upper Bollinger Bar then Higher High and Close – Show Arrow

    I then want to show arrow on subsequent bar index  until either 25 Periods have elapsed without repeating the above or Touching The lower Bollinger Bar

    Attached is the first part I have done which works fine

    All help and advice would be appreciated

     

     

     

    //Bollinger Calculations
    AVG = average[20](close)
    BOLLUP = AVG+std[20](close)*BollingerDeviation 
    BOLLDOWN = AVG+std[20](close)*-BollingerDeviation 
    #137235 quote
    Nicolas
    Keymaster
    Master

    I’m not sure to have perfectly understood what you are requesting, but try the below code to find out if it can help:

    //Bollinger Calculations
    AVG = average[20](close)
    BollingerDeviation = 2
    BOLLUP = AVG+std[20](close)*BollingerDeviation
    BOLLDOWN = AVG+std[20](close)*-BollingerDeviation
    
    bollbreak = close crosses over bollup
    
    if bollbreak[1] and high>high[1] and close>close[1] and barindex-signalbar>25 then 
    signalbar=barindex
    drawarrowup(barindex,high)
    endif
    
    return
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Advice on finding a Point


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 06/25/2020
Status: Active
Attachments: No files
Logo Logo
Loading...