come accorciare trailing stop long basato su ATR se sono in profit

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

    ciao a tutti,

    ho un trailing stop basato sull’ATR e vorrei accorciarlo (abbassando il moltiplicatore di ATR)

    per uscire prima se si gira quando sono in profit per evitare di andare in perdita.

    Mi sapete dire come fare per favore a capire se  sono in profit e di quanti euro?

    Questo e’ il codice del trailing stop:

    //Valori di default parametri:
    //ATRmoltiplicatore=1.9
    //ATRperiodo=5
    
    myhigh = highest[3](high) - ATRmoltiplicatore*(AverageTrueRange[ATRperiodo](close))
    IF (mytot > low) THEN
    myx = 0
    ELSE
    myx = myx + 0.03
    ENDIF
    myextra = (myx[1])*(AverageTrueRange[ATRperiodo](close))
    mytot = myhigh + myextra
    RETURN mytot

     

    grazie mille.

    #6134 quote
    Nicolas
    Keymaster
    Master
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

come accorciare trailing stop long basato su ATR se sono in profit


Supporto Piattaforma: Grafici, Dati e Broker

New Reply
Author
author-avatar
lenny66 @lenny66 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
9 years, 9 months ago.

Topic Details
Forum: Supporto Piattaforma: Grafici, Dati e Broker
Language: Italian
Started: 04/27/2016
Status: Active
Attachments: No files
Logo Logo
Loading...