Stop che cambia in base a trading positivo

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

    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
    DanieleDaniele
    Participant
    Average

    grazie

Viewing 3 posts - 1 through 3 (of 3 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 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 DanieleDaniele
6 years ago.

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