Piazzare un ordine in base ai margini (position sizing)

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #150644 quote
    MauroR
    Participant
    Average

    Buongiorno.

    Premetto che sono un novizio ed è la prima volta che scrivo su questo forum, e sicuramente la cosa chi chiedo avrà una soluzione semplicissima, praticamente la porzione di codice sotto entra a mercato in una direzione e poi quando ordine si becca lo stop, allora parte l’ordine pendente. Quando faccio partire il programma non mi entra più a mercato e non mi inserisce il pendente, cortesemente mi potreste aiutare a risolvere il problema?

    Vi ringrazio tutti anticipatamente.

    StopEntrataShortSTD = (high + SpreadEntrata) - close
    SELLSHORT LotNumber CONTRACT AT MARKET
    SET STOP pLOSS max (StopMinimo,StopEntrataShortSTD)
    IF NOT SHORTONMARKET THEN
    EntrataPendenteLongSTD = close + max(StopMinimo, StopEntrataShortSTD) + 1
    StopPendenteLongSTD = EntrataPendenteLongSTD - (low - SpreadPendente - MarginePendente)
    BUY LotNumber CONTRACT AT EntrataPendenteLongSTD STOP
    SET STOP pLOSS StopPendenteLongSTD
    ENDIF
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Piazzare un ordine in base ai margini (position sizing)


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
MauroR @mauror Participant
Summary

This topic contains 0 voices and has 0 replies.

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