Doppio minimo e doppio massimo

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #215731 quote
    Mut1974
    Participant
    New

    Buongiorno, nel creare un’entrata long dal doppio minimo, o short dal doppio massimo, come posso far capire al programma (ProRealBuilder) che accetto una tolleranza di 2 punti (8 pips)? Grazie

    #215740 quote
    robertogozzi
    Moderator
    Master

    Per favore fai attenzione quando crei un argomento, scegli la lingua ed il forum corretto.

    L’ho spostato io dal forum ProBuilder (per gli indicatori, non strategie) in lingua Francese.

    Grazie 🙂

    #215741 quote
    robertogozzi
    Moderator
    Master

    Dato un certo prezzo d’entrata, per entrare LONG, o SHORT:

    Tolleranza         = 2 * PipSize //2 punti di tolleranza (se ne vuoi mettere 8, scrivi 8, o qualunque altro)
    Entrata            = ....        //prezzo a cui vuoi entrare
    MieCondizioniLong  = ....        //condizioni per entrare LONG
    MieCondizioniShort = ....        //condizioni per entrare SHORT
    // entrata LONG
    IF MieCondizioniLong AND (((close < Entrata) AND (close >= (Entrata - Tolleranza))) OR ((close > Entrata) AND (close <= (Entrata + Tolleranza)))) AND Not OnNarket THEN
       BUY 1 Contract at Market
    ENDIF
    //entrata SHORT
    IF MieCondizioniShort AND (((close < Entrata) AND (close >= (Entrata - Tolleranza))) OR ((close > Entrata) AND (close <= (Entrata + Tolleranza)))) AND Not OnNarket THEN
       SELLSHORT 1 Contract at Market
    ENDIF
    Mut1974 thanked this post
    #215743 quote
    Mut1974
    Participant
    New

    Grazie!!!

    #215744 quote
    Mut1974
    Participant
    New

    Per cortesia cosa serve il comando OnNarket ?
    Grazie

    #215747 quote
    Mut1974
    Participant
    New

    Scusi ho capito: OnMarket

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

Doppio minimo e doppio massimo


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Mut1974 @mut1974 Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by Mut1974
2 years, 8 months ago.

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