stoploss su percentuale candela

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #199126 quote
    MirkoBM
    Participant
    New

    Ciao a tutti eccomi a cercare aiuto..

    vorrei creare un indicatore che prenda la percentuale della candela del giorno prima (max e min) e usi quella percentuale per tracciare una linea come stoploss.

    Spero di essermi spiegato bene.

    Grazie.

    stoploss.jpg stoploss.jpg
    #199135 quote
    robertogozzi
    Moderator
    Master

    Quale percentuale, di cosa?

    #199137 quote
    MirkoBM
    Participant
    New

    la percentuale data dalla differenza tra il max e il min della candela precedente.

    Se non mi sono spiegato bene domani posto un esempio.

    Grazie

    #199157 quote
    MirkoBM
    Participant
    New

    ecco forse con l’esempio si capisce un pò di più…

    Schermata-2022-08-17-alle-12.12.26.png Schermata-2022-08-17-alle-12.12.26.png
    #199199 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    DEFPARAM DrawOnLastBarOnly = True
    RangePerCent = (((high / low) - 1) * 100) * -1
    DrawSegment(BarIndex,low,BarIndex + 5,low)
    DrawText("RangePerCent% #RangePerCent#",BarIndex+13,low)
    RETURN
    #199214 quote
    MirkoBM
    Participant
    New

    Grazie Roberto.

    Sono riuscito ad aggiungere anche il prezzo.

     

    DEFPARAM DrawOnLastBarOnly = True
    RangePerCent = (((high / low) - 1) * 100) * -1
    Prezzo = (close) + RangePerCent
    DrawSegment(BarIndex,low,BarIndex + 5,low)
    DrawText("RangePerCent% #RangePerCent#",BarIndex+13,low)
    DrawText("Stop #Prezzo#",BarIndex+30,low)
    RETURN
    
    #199216 quote
    robertogozzi
    Moderator
    Master

    Ottimo 🙂

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

stoploss su percentuale candela


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
MirkoBM @michko Participant
Summary

This topic contains 6 replies,
has 2 voices, and was last updated by robertogozzi
3 years, 7 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 08/16/2022
Status: Active
Attachments: 2 files
Logo Logo
Loading...