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
    LorpoLorpo
    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
    robertogozzirobertogozzi
    Moderator
    Legend

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

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 LorpoLorpo
1 year, 8 months ago.

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