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
 Sto iniziando...

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 - 06 January 2004 : 17:38:04
Buongiorno, sto cercando di imparare a costruire un semplice trading system.

Ho inserito nella formula ?entra in acquisto? la seguente formula.
Function main()
Return Moveav(close, 9) > Moveav(close, 18)
Endfunction

Vorrei per? inserire anche una specie di filtro che faccia scattare l?acquisto solamente se l?ADX a 18 giorni ? inclinato positivamente (una sorta di derivata prima positiva dell?ADX) che non so scrivere nell?editor.

Nella formula ?chiudi posizioni in acquisto? ho inserito questa formula.
Function main()
Return Sar(10) < Close()
Endfunction

E? corretto scrivere Sar(10)? Vorrei fare in modo che per il calcolo del Sar il sistema usi gli ultimi 10 massimi e minimi.

Grazie
Alberto.


1   L A T E S T    R E P L I E S    (Newest First)
SupportoTecnico Posted - 06 January 2004 : 18:02:16
Prova a sostituire in "Entra in Acquisto" il tuo codice con questo:

function main()
Dim AdxT As Numeric
Dim AdxY As Numeric

'valore ADX di questa barra
AdxT = DirMov(18, "ADX")
'valore ADX della barra precedente
AdxY = Value(DirMov(18, "ADX"), - 1)

if (AdxT > AdxY) Then
Return (Moveav(close, 9) > Moveav(close, 18))
else
Return False
endif

endfunction



In "chiudi posizioni in aquisto" invece:

Function main()
Return (Sar(0.02, 0.2) < Close)
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