STOPPARE L’ATTIVITA OGNI GIORNO AL RAGGIUNGIMENTO DEL PROFITTO DI 500 DOLLARI

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #242471 quote
    Lorpo
    Participant
    New

    Cortesemente qualcuno puo aiutarmi ad aggiungere questa condizione: chiudere l’attività di compravendita, quindi stoppare il trading system quando ogni giorno il profitto raggiunge la somma di 500 dollari.  Grazie

    #242503 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    ONCE Profitto  = 0
    ONCE TradingON = 1
    IF IntraDayBarIndex = 0 THEN
       Profitto  = StrategyProfit
       TradingON = 1
    ENDIF
    IF (StrategyProfit - Profitto) > 500 THEN
       TradingON = 0
    ENDIF
    IF MieCondizioniLong AND TradingON THEN
       BUY 1 Contract at Market
    ELSIF MieCondizioniShort AND TradingON THEN
       SELLSHORT 1 Contract at Market
    ENDIF

    la variabile TradingON viene utilizzata per determinare se aprire, o meno, una posizione quando ci sono le altre condizioni.

    Iván González thanked this post
    #242516 quote
    Lorpo
    Participant
    New

    Roberto grazie mille. Gentilissimo.

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

STOPPARE L’ATTIVITA OGNI GIORNO AL RAGGIUNGIMENTO DEL PROFITTO DI 500 DOLLARI


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Lorpo @lorpo Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Lorpo
1 year ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 01/13/2025
Status: Active
Attachments: No files
Logo Logo
Loading...