Stop loss su apertura barra corrente

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

    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.
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

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 robertogozzirobertogozzi
6 years, 3 months ago.

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