strategia bar up down

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

    Ciao a tutti, qualcuno riuscirebbe a codificare il codice di questa strategia molto semplice da tradingview a prorealtime?

    //@version=4
    strategy(“Strategia BarUpDn”, overlay=true, default_qty_type = strategy.percent_of_equity, default_qty_value = 10)
    maxIdLossPcnt = input(1, “Max Intraday Loss(%)”, type=input.float)
    . risk.max_intraday_loss(maxIdLossPcnt, strategy.percent_of_equity)
    if (close > open and open > close[1])
    strategy.entry(“BarUp”, strategy.long)
    if (close < open and open < close[1])
    strategia. entry(“BarDn”, strategy.short)
    //plot(strategy.equity, title=”equity”, color=color.red, linewidth=2, style=plot.style_areabr)

    Grazie a tutti

    #209833 quote
    robertogozzi
    Moderator
    Master

    Hai un link a quel codice originale?

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

strategia bar up down


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
manugugna @manugugna Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
3 years, 1 month ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 10/18/2022
Status: Active
Attachments: No files
Logo Logo
Loading...