massima perdita giornaliera in intraday

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #135335 quote
    roberto27
    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
    Francesco
    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
    robertogozzi
    Moderator
    Master

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

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 roberto27
5 years, 8 months ago.

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