Stop che cambia in base a trading positivo

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #144196 quote
    Daniele
    Participant
    Average

    Ciao a tutti

    ho difficoltà a programmare un codice con queste caratteristiche.

    In caso di trading positivo ad esempio nelle ultime tre barre, prevedere uno stop loss  ridotto ad esempio del 50 %. Diversamente lo stop rimane come è impostato originariamente.

    Grazie in anticipo

    #144198 quote
    robertogozzi
    Moderator
    Master

    Presupponendo che il tuo stop loss lo abbia messo in una variabile chiamata SL (o altro nome che sia):

    IF summation[3](PositionPerf > 0) = 3 THEN
       SL = SL / 2
       SET STOP .....
    ENDIF

    veifica che le ultime 3 barre siano tutte in profitto e dimezza lo stop.

    Alla terza riga basta che dai nuovamente il comando per settare lo stop (non so quale hai usato, se a percentuale, in denaro, in prezzo o pips).

    #144674 quote
    Daniele
    Participant
    Average

    grazie

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

Stop che cambia in base a trading positivo


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Daniele @daniele Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Daniele
5 years, 6 months ago.

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