Differenti Stop/Gain per posizioni Long e Short

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

    Ciao a tutti,
    In un algoritmo è possibile inserire differenti Stop e Gain a seconda che la posizione aperta sia Long o Short?
    Grazie

    #159096 quote
    robertogozzi
    Moderator
    Master

    Si, certo:

    IF CondizioniLong  THEN
       BUY 1 Contract at Market
       SET TARGET pPROFIT 100
       SET STOP   pLOSS   30
    ENDIF
    IF CondizioniShort THEN
       SELLSHORT 1 Contract at Market
       SET TARGET pPROFIT 130
       SET STOP   pLOSS   40
    ENDIF
    #159097 quote
    MICH
    Participant
    Junior

    Ok!
    Grazie.

    #159637 quote
    JC_Bywan
    Moderator
    Master

    Buongiorno, post trasferito dal forum francese al forum italiano, per favore pubblica solo nella lingua del forum in cui stai postando, grazie.

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

Differenti Stop/Gain per posizioni Long e Short


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
MICH @mich Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by JC_Bywan
5 years ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 01/23/2021
Status: Active
Attachments: No files
Logo Logo
Loading...