Forums › ProRealTime forum Italiano › Supporto ProOrder › ottimizzazione only long giorni settimana › Reply To: ottimizzazione only long giorni settimana
11/13/2025 at 11:45 AM
#253586
Eccolo (per l’ottimizzazione usata, vcedi foto allegata):
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
DEFPARAM CumulateOrders=False //OTTIMIZZAZIONE: //DOE da 1 a 5 //Step 1 //ONCE DOE = 5 // Si compra il giorno // 1=lunedì 2=martedì 3=mercoledì 4=giovedì IF NOT ONMARKET and DayOfWeek=DOE then BUY 1 CONTRACT AT MARKET ENDIF // Si vende il gg successivo IF LONGONMARKET and (DayOfWeek >=DOE+1) and (Day>Day[1]) then SELL 1 CONTRACT AT MARKET ENDIF |
l’ottimizzatore a me da 3 come valore migliore per DOE.