Insider 3000 - Forums
Insider 3000 - Forums
Home | Profile | Active Topics | Members | Search | FAQ
 All Forums
 Problemi con "Insider 3000 versione 3"
 Problemi col linguaggio di programmazione
 Minimo di Periodo

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert Email Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   
   

T O P I C    R E V I E W
alberto.tortella Posted - 25 March 2005 : 13:47:32
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

1   L A T E S T    R E P L I E S    (Newest First)
SupportoTecnico Posted - 25 March 2005 : 16:56:19

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



Insider 3000 - Forums © Copyright 2003-2016 Tradersoft s.r.l. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07