Insider 3000 - Forums
Insider 3000 - Forums
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Problemi con "Insider 3000 versione 3"
 Problemi col linguaggio di programmazione
 Minimo di Periodo
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

alberto.tortella
Nuovo Utente

23 Posts

Posted - 25 March 2005 :  13:47:32  Show Profile  Reply with Quote
Sto cercando di costruire un allarme che si attivi quando un certo indicatore raggiunge il minimo degli ultimi 6 mesi, per? non funziona.

Come posso migliorarlo? Grazie.

function main()

Return Min(Bandwith(), - 125)
endfunction

SupportoTecnico
Forum Admin

1261 Posts

Posted - 25 March 2005 :  16:56:19  Show Profile  Reply with Quote

Ci sono 2 errori:

1) Non ci va il "-" davanti a 125.
2) la funzione Min ritorna un numero mentre Return in questo caso deve ritornare un valore booleano (True o False)

Inoltre devi avere almeno 125 periodi nella serie storica, altrimenti la funzione non restituir? nulla

Quindi:

function main()
Return (Round(Min(Bandwith, 125), 4) = Round(Bandwith, 4))
endfunction


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Insider 3000 - Forums © Copyright 2003-2016 Tradersoft s.r.l. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07