Stop Loss non attivo

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #90372 quote
    lollo71
    Participant
    New

    Buongiorno a tutti, scusate la banalità della questione, ma purtroppo non riesco a far scattare lo stop loss in questo TS con TF giornaliero:

    IF not onmarket AND Average[20](close) > Average[200](close) AND Stochastic[14,3](close) CROSSES OVER 20 THEN
    BUY 1 SHARES AT MARKET
    stoploss = lowest[10](low)
    targetprofit = close + (close - stoploss)*1.5
    ENDIF
    
    // Condizioni per uscire da posizioni long
    
    if onmarket AND close > targetprofit then
    SELL AT market
    
    endif
    
    SET STOP $LOSS stoploss

    Lo scopo è comprare quando la MM a 20 è maggiore della MM a 200 e lo stocastico incrocia al rialzo il valore 20.

    A questo punto vengono fissati i livelli di “target profit” e “stop loss”, ma mentre il sistema esce correttamente in caso di target profit raggiunto, lo stop loss monetario (impostato come il minimo raggiunto dalle 10 candele precedenti) viene del tutto ignorato.

    Mi potete dare un suggerimento per favore?

    Grazie, buona giornata

    #90393 quote
    Nicolas
    Keymaster
    Master

    Ho spostato il tuo argomento nella sezione corretta del forum. Il supporto per il trading automatico va al forum ProOrder.
    L’istruzione $ LOSS è usata per mettere stoploss in denaro ma tu usi un prezzo! Ecco perché non funziona come previsto.
    Se si desidera utilizzare un stoploss di 200 $: SET STOP $LOSS 200

    #90434 quote
    lollo71
    Participant
    New

    Tutto chiaro, grazie!

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

Stop Loss non attivo


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
lollo71 @lollo71 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by lollo71
7 years ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 02/04/2019
Status: Active
Attachments: No files
Logo Logo
Loading...