Ordine non eseguito per effetto leva

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

    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

    IMG_7824.jpg IMG_7824.jpg
    #231726 quote
    GraHalGraHal
    Participant
    Master

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

    #231734 quote
    GraHalGraHal
    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álezIván González
    Moderator
    Legend

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

    GraHal thanked this post
    #231823 quote
    AragornaAragorna
    Participant
    Average

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

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 AragornaAragorna
2 years, 5 months ago.

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