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
 Oscillatore

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 - 20 March 2005 : 14:58:51
Sto cercando di costruire un oscillatore II% (intraday intensity) che viene calcolato con questa formula:


Function Main()
Dim II% As Numeric
Dim i As Numeric

II% = ((2 * Close - High - Low) / (High - Low) * Volume) - (Volume * 100)

for (i = 0;-1; -21) (vorrei impostare un ciclo ?for? per ?i? che va da ?1 a ?21 con passo ?1 ma non riesco a trovare la sintassi corretta).

II% = II% + ((2 * Close(i) - High(i) - Low(i)) / (High(i) - Low(i)) * Volume(i)) - (Volume(i) * 100)

Return II%
Endfunction


Potete aiutarmi?
Grazie

1   L A T E S T    R E P L I E S    (Newest First)
SupportoTecnico Posted - 20 March 2005 : 21:07:04
Ecco la sintassi giusta. E' necessario togliere anche il "%" da II% perch? ? un carattere non accettato. Inoltre la prima riga la puoi includere nel ciclo facendolo andare da -21 a 0.


Function Main()
Dim II As Numeric
Dim i As Numeric

for i = - 21 to 0
II = II + ((2 * Close(i) - High(i) - Low(i)) / (High(i) - Low(i)) * Volume(i)) - (Volume(i) * 100)
next i

Return II
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