Codice Posizioni Long/Short

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18652 quote
    Mauro
    Participant
    New

    Buongiorno
    Vorrei sapere se é possibile avere Stop Loss e Target differenti tra posizioni Long E posizioni Short
    Grazie

    #18662 quote
    Nicolas
    Keymaster
    Master

    Si, è possibile, è sufficiente per definire variabili con valori diversi a seconda delle condizioni di voci che sono state testate. Ad esempio:

    //Posizioni Long
    if longcondition then 
     stoploss = 10
     takeprofit = 20
    elsif shortcondition then 
     stoploss = 15
     takeprofit = 22
    endif 
    
    set target pprofit takeprofit
    set stop ploss stoploss

    Diteci se voi e il lavoro si adatta nella vostra strategia di trading. Grazie.

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

Codice Posizioni Long/Short


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Mauro @1025mauro Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
9 years, 1 month ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 12/16/2016
Status: Active
Attachments: No files
Logo Logo
Loading...