stop loss dinamico

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #172011 quote
    Wolf Trades
    Participant
    Average

    Buon pomeriggio, qualcuno più bravo di me potrebbe dirmi come scrivere il seguente stop loss dinamico?

    Se sono long, perchè il prezzo ha chiuso sopra le bande di bollinger, vorrei poter inserire uno stoploss in corrispondenza del valore minimo tra:

    -il minimo di due minimi fa, quindi credo si scriva Lowest[2](low)

    – EMA20

     

    grazie

    #172013 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    Ema20 = average[20,1](close)
    SL    = min(Ema20,Lowest[2](low))
    SET STOP LOSS abs(close - SL)

    Quando il prezzo d’entrata è conosciuto (alla candela successiva all’entrata), puoi rifare il calcolo in modo più preciso sostituendo CLOSE con TRADEPRICE.

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

stop loss dinamico


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Wolf Trades @lupo32 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
4 years, 7 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 06/18/2021
Status: Active
Attachments: No files
Logo Logo
Loading...