Stop loss su apertura barra corrente

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #136561 quote
    Daniele
    Participant
    Average

    Buongiorno a tutti, è possibile fissare uno stop loss che funzioni sull’apertura della barra in corso ?

    cioè se il prezzo scende sotto il valore di apertura della barra in corso meno un x  allora scatta la vendita

    A me funziona solo con l’apertura della barra precedente

    #136562 quote
    robertogozzi
    Moderator
    Master

    Ecco un esempio (Long):

    IF MieCondizioni AND Not OnmMrket THEN
       BUY 1 CONTRACT AT MARKET
       SET STOP LOSS abs(close - low) + 5 * pipsize
    ENDIF
    

    dove ho aggiunto 5 pips, tu potrai variarlo a piacere.

    La barra in corso, nelle strategie, è quella appena chiusa, quindi ci si riferisce con CLOSE, OPEN, LOW e HIGH.

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

Stop loss su apertura barra corrente


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Daniele @daniele Participant
Summary

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

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