problema con un codice ordine non si cancella a fine giornata

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #215497 quote
    Mauro M
    Participant
    New

    Ho questo problema con questo codice. Una volta che inserisce l ordine  a fine giornata non lo cancella e me lo ritrovo attivo nella lista degli ordini. Grazie.

     

    DEFPARAM CumulateOrders=true
    K=(HIGH-LOW)*1

    X1 =23
    X2 =5

    c4=barindex-tradeindex=1
    //Long entry
    if (High-Low) <= X1 and (High-Low) >= X2 then
    buy 3shares at close + K stop
    endif

    //stop loss massimo in punti dal prezzo ingresso
    if LongOnMarket and c4 then
    SELL AT MARKET

    endif
    //Short entry
    if (High-Low) <= X1 and (High-Low) >= X2 then
    sellshort 3 shares at close- K stop
    endif

    //stop loss massimo in punti dal prezzo ingresso
    If ShortOnMarket AND c4 THEN
    EXITSHORT AT MARKEt
    endif
    set stop ploss 30
    set target pprofit 70

    #215498 quote
    Mauro M
    Participant
    New

    dimenticavo lavora sul daily

    #215511 quote
    robertogozzi
    Moderator
    Master

    Non saprei, sul conto REALE non dovrebbe succedere, sul DEMO a volte possono capitare cose bizzarre.

    Ad ogni modo devi sentire cosa dice il broker, non ci sono modi di sapere perché succede.

    #215518 quote
    Mauro M
    Participant
    New

    Conto reale…..quindi non essendo un problema di codice dovrò sentire IG giusto?

    #215521 quote
    robertogozzi
    Moderator
    Master

    Si, solo loro possono dirti la causa.

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

problema con un codice ordine non si cancella a fine giornata


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Mauro M @mauro-m Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by robertogozzi
2 years, 8 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 05/31/2023
Status: Active
Attachments: No files
Logo Logo
Loading...