Stop trading a guadagno giornaliero

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

    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
    danistutadanistuta
    Participant
    Senior

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

    #163734 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Si, esatto.

Viewing 4 posts - 1 through 4 (of 4 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 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 robertogozzirobertogozzi
5 years, 6 months ago.

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