“conversione” buy sell da tradingview

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #146703 quote
    lowbat
    Participant
    Senior

    Buonasera a tutti,

    sarebbe possibile convertire questo codice tratto dalla piattaforma Tradingview in PRT??

    study(“Top Bottom Indicator”,overlay=false)

    per = input(14, title=”Bottom Period”)
    loc = low < lowest(low[1], per) and low <= lowest(low[per], per)
    bottom = barssince(loc)
    plot(bottom,color=color.blue)

    per2 = input(14, title=”Top Period”)
    loc2 = high > highest(high[1], per2) and high >= highest(high[per2], per2)
    top = barssince(loc2)
    plot(top,color=color.red)

    Buy = crossover(bottom,top)
    Sell = crossunder(bottom,top)

    plotshape(Buy,title=”Buy”, location=location.bottom, color=#008000, style=shape.arrowup, text=”Buy”)
    plotshape(Sell,title=”Sell”,location=location.top, color=#FF0000, style=shape.arrowdown, text=”Sell”)

    background = top < bottom ? #0000FF : top > bottom ? #FF0000 : na
    bgcolor(color=background, transp=85)

    alertcondition(Buy, title=”Buy Signal”, message=”Buy”)
    alertcondition(Sell, title=”Sell Signal”, message=”Sell”)

     

    Grazie

    1.png 1.png
    #146715 quote
    Nicolas
    Keymaster
    Legend

    Ciao, ho tradotto il codice e ora puoi scaricare questo "indicatore superiore e inferiore" direttamente dalla libreria dei codici prorealtime qui: Indicatore in alto e in basso

    top-bottom-breakout-indicator.png top-bottom-breakout-indicator.png
    #146736 quote
    luxrun
    Participant
    Master

    Grazie, velocissimo!

Viewing 3 posts - 1 through 3 (of 3 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

“conversione” buy sell da tradingview


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
lowbat @lowbat Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by luxrun
5 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 10/07/2020
Status: Active
Attachments: 2 files
Logo Logo
Loading...