stoploss su percentuale candela

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #199126 quote
    MirkoBMMirkoBM
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    Quale percentuale, di cosa?

    #199137 quote
    MirkoBMMirkoBM
    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
    MirkoBMMirkoBM
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    MirkoBMMirkoBM
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    Ottimo 🙂

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

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 robertogozzirobertogozzi
4 years, 1 month ago.

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