Codice Posizioni Long/Short

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

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

    #18662 quote
    NicolasNicolas
    Keymaster
    Legend

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

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 NicolasNicolas
9 years, 9 months ago.

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