Ordine non eseguito per effetto leva

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #231695 quote
    Aragorna
    Participant
    Junior

    Buongiorno a tutti,

    sto eseguendo in paper trading un sistema sul NQ con Broker IB. E’ da poco che mi approccio a metterli in demo. Nel mio sistema in fondo ho inserito il trailing stop creato a suo tempo da Nicolas, solo sulla parte LONG (inserito sotto)

    ieri per l’ennesima volta il trailing stop è stato annullato con la motivazione: “quest’ ordine non può essere autorizzato perchè l’effetto leva richiesto supera il massimo autorizza”. Ed è andato in Stop loss. non capisco quale sia il motivo, in Demo ho 34K, non dovrebbe essere un problema di soldi. grazie chi mi può aiutare.

    //trailing stop function
    trailingstart = 30// RR 20trailing will start @trailinstart points profit-50
    trailingstep = 10// 5trailing step to move the “stoploss”

    //reset the stoploss value
    IF NOT LONGONMARKET THEN
    newSL=0
    ENDIF

    //manage long positions
    IF LONGONMARKET THEN
    //first move (breakeven)
    IF newSL=0 AND close-tradeprice(1)>=trailingstart*pipsize THEN
    newSL = tradeprice(1)+trailingstep*pipsize
    ENDIF
    //next moves
    IF newSL>0 AND close-newSL>=trailingstep*pipsize THEN
    newSL = newSL+trailingstep*pipsize
    ENDIF
    ENDIF

    //stop order to exit the positions
    IF newSL>0 THEN
    SELL AT newSL STOP

    ENDIF

    #231726 quote
    GraHal
    Participant
    Master

    Prova ad aumentare i fondi nel tuo Conto Demo a 1.000.000 per vedere cosa succede?

    #231734 quote
    GraHal
    Participant
    Master

    Scusa, intendevo aumentare il capitale del sistema con cui hai problemi fino a, ad esempio, 100.000… solo per vedere cosa succede. 

    #231791 quote
    Iván González
    Moderator
    Master

    Ciao Nell'autotrading con IB non è possibile inserire trailing stop.

    GraHal thanked this post
    #231823 quote
    Aragorna
    Participant
    Junior

    Ciao Ivan, ma non è la funzione trailing stop normale ma è un trailing stop come quello codificato in alto, sapevo funzionasse per IB.

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

Ordine non eseguito per effetto leva


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Aragorna @aragorna Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by Aragorna
1 year, 9 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 04/19/2024
Status: Active
Attachments: 1 files
Logo Logo
Loading...