Stop trading a guadagno giornaliero

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #163722 quote
    danistuta
    Participant
    Senior

    Salve vorrei che il sistema operasse solo se il guadagno giornaliero è inferiore a tot euro, chi mi da una mano con il codice? Grazie mille a tutti.

    #163726 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    Once Profitto = 0
    If IntraDayBarIndex = 0 then
       Profitto =  StrategyProfit
    Endif
    If MieCondizioniLong and Not OnMarket and (StrategyProfit - Profitto) < 500 Then
       Buy 1 contract at Market
    Endif

    questo esempio permette di aprire posizioni fino ad un massimo di 500 euro di guadagno giornaliero.

    #163729 quote
    danistuta
    Participant
    Senior

    Grazie! Il numero fa riferimento alla valuta del guadagno? Nel caso fosse in dollari sarebbero 500 dollari, giusto?

    #163734 quote
    robertogozzi
    Moderator
    Master

    Si, esatto.

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

Stop trading a guadagno giornaliero


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
danistuta @danistuta Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by robertogozzi
4 years, 11 months ago.

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