massima perdita giornaliera in intraday

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #135335 quote
    roberto27roberto27
    Participant
    Junior

    ciao,

    posso limitare ,in un tf a 2 minuti , la massima perdita gornaliera ad una cifra prestabilita?

    esempio a 100 euro

    grazie

    #135336 quote
    FrancescoFrancesco
    Participant
    Veteran
    once maxloss= 100 // Quantità perdita massima
    once trading= 1
    if strategyprofit<=maxloss then
       trading= 0
    endif

    Aggiungi queste stringhe al tuo codice e la condizione “trading” tra le tue condizioni di entrata

    robertogozzi thanked this post
    #135337 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Va messa giornaliera, non complessiva, altrimenti dopo poco non trada più:

    once maxloss   = -100            // Quantità perdita massima GIORNALIERA
    once trading   = 1
    once Strategia = StrategyProfit
    IF IntraDayBarIndex = 0 THEN
       Strategia = StrategyProfit
       trading   = 1
    ENDIF
    if (strategyprofit - Strategia) <= maxloss then
       trading = 0
    endif
    IF MieCondizioni AND Not OnMarket AND Trading THEN
       BUY 1 Contract at Market
    ENDIF
    Francesco thanked this post
    #135358 quote
    roberto27roberto27
    Participant
    Junior

    perchè funzioni devo togliere lo stop fisso che ho messo ad ogni trade (es 30 euro).

    Poi fa    delle serie di stop giornaliere strane; es 10 stop da 330, 15 da 49, 20 da 90 ecc.

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

massima perdita giornaliera in intraday


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
roberto27 @roberto27 Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by roberto27roberto27
6 years, 3 months ago.

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