How to copy code to Tradingview

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #91794 quote
    Matthew Darling
    Participant
    New

    Anyway know if and how you can copy these to tradingview script?

    //PRC_Pivot Reversal Strategy | indicator
    //14.02.2019
    //Nicolas @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    
    // --- settings
    leftp = 4
    rightp = 2
    // --- end of settings
    
    period=max(leftp,rightp)
    hh = highest[period](high)
    ll = lowest[period](low)
    
    if hh<>hh[1] then
    hhbar=barindex
    hhprice=high
    endif
    if ll<>ll[1] then
    llbar=barindex
    llprice=low
    endif
    
    if barindex-hhbar=rightp then
    drawtext("•",hhbar,hhprice) coloured(168,168,168)
    top=hhprice
    endif
    if barindex-llbar=rightp then
    drawtext("•",llbar,llprice) coloured(168,168,168)
    bottom=llprice
    endif
    
    atr=averagetruerange[14]
    if high crosses over top and lastsig<=0 then
    drawarrowup(barindex,low-atr/2) coloured(30,144,255)
    lastsig=1
    endif
    if low crosses under bottom and lastsig>=0 then
    drawarrowdown(barindex,high+atr/2) coloured(255,48,48)
    lastsig=-1
    endif
    
    RETURN

     

    #91796 quote
    robertogozzi
    Moderator
    Master

    Please update your country flag in your profile. Thank you.

    This forum is dedicate to the ProRealTime platform,  so any free help is devoted to ProRealTime programming and suggestions and conversions FROM other platforms.

    Conversions TO other platforms are services that can provided upon request by clicking the “Programming services” item on the submenu that opens whenever you hover the HELP menu (blue horizontal menu bar on top).

    #91805 quote
    Vonasi
    Moderator
    Master

    Also please use the ‘Insert PRT Code’ button when posting code to make it more readable for others. I have tidied up your post for you. 🙂

    #101770 quote
    julienbat
    Participant
    Junior

    I’m also very curious about this topic!

    thanks for the help if it’s possible

    #101839 quote
    Vonasi
    Moderator
    Master

    julienbat – please read Robertgozzi’s previous reply.

    How to copy code to Tradingview

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

How to copy code to Tradingview


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 4 replies,
has 4 voices, and was last updated by Vonasi
6 years, 7 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 02/20/2019
Status: Active
Attachments: No files
Logo Logo
Loading...