Insider 3000 - Forums
Insider 3000 - Forums
Home | Profile | Active Topics | Members | Search | FAQ
 All Forums
 Help
 Aiuti, consigli, dubbi ...
 Funziona solo con "Trova"...

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
jsamu Posted - 27 June 2003 : 23:47:32
Salve,
il quesito che vi propongo ? il seguente:

Sono partito dalla funzionalit? "Trova" per indiduare i seguenti pattern
low() < low( - 1) and low() < Low(1)
e
high() > high( - 1) and high() > High(1)
e fin qu? nessun problema.

Partendo da questa situazione avrei voluto sviluppare un TS (o meglio un allarme da gestire con gli esploratori - il problema non cambia) ma una volta individuata la prima entrata e uscita poi si susseguono una serie ininterrotta di entrate e uscite alternate di una barra.

Il codice usato ? il seguente (la posizione short ? semplicemente invertita) :

OPZIONI COMUNI
Dim entra as Numeric

ENTRA IN ACQUISTO
Function Main()

If low() < low( - 1) and low() < low(1) Then
entra = high(1) + 0.01
EndIf

Return entra
EndFunction


Visto il problema ho compilato anche la parte CHIUDI ACQUISTO (o esci per gli allarmi) ponendo come limite il raggiungimento di una certa percentuale ma "nisba"

Function Main()

dim ChiudiLong as Numeric

ChiudiLong = (entra * 103 / 100)
Price ChiudiLong
Return ChiudiLong

EndFunction

Confido in un vostro aiuto...



5   L A T E S T    R E P L I E S    (Newest First)
SupportoTecnico Posted - 02 July 2003 : 18:02:18
"Return" nel caso dei trading system deve sempre ritornare un'espressione Boolean (True o False).
"Chiudi posizioni in acquisto" invece ritorna un numero e non va bene.

Nella risposta poco pi? in su la funzione di "Chiudi posizioni in acquisto" non ? stata corretta, lasciando a JSAMU il compito di farlo


luca71-4 Posted - 02 July 2003 : 16:47:15
Ok sono propio l'ultimo degli arrivati e faccio sempre confusione
OPZIONI COMUNI
Dim entra as Numeric

ENTRA IN ACQUISTO

Function Main()
Dim bRes as Boolean

bRes = (low() < low( - 1) and low() < low(1))

If (bRes = True) Then
Entra = high(1) + 0.01
Price Entra
EndIf

Return bRes

EndFunction

chiudi long :

Function Main()

dim ChiudiLong as Numeric

ChiudiLong = (entra +50)
Price ChiudiLong
Return ChiudiLong
EndFunction


Ho modificato la % con un +50 punti e se testato sul fib da solo segnali positivi me lo spiegate?





SupportoTecnico Posted - 01 July 2003 : 22:26:51
Si ? vero sono invertite.
Quindi i parametri vanno inseriti nel seguente modo:
Media Mobile Periods, Period, Standard Deviation

Grazie per la segnalazione.

jsamu Posted - 01 July 2003 : 19:35:43
Grazie, per l'aiuto.

Non so se ? un errore, ma utilizzando la funzione volatilit? nell'editor l'help all'apertura segnala Period, Move average e DvStd.

Se per? utilizzo l'indicatore gi? disponibile nel vostro programma nel grafico Period e M.Average sembrano invertiti

In sintesi volat(250, 6, 2) non disegna lo stesso grafico se utilizzo l'indicatore volatilit? con periodo 250 e media mobile 6.

Saluti


SupportoTecnico Posted - 28 June 2003 : 13:07:30
Il problema ? semplice:

Stai facendo Ritornare alla funzione "Main" un numero qualsiasi e non un Boolean (True o False) come deve essere in caso di allarme o trading system. In pratica puoi scrivere cos?:


OPZIONI COMUNI
Dim entra as Numeric

ENTRA IN ACQUISTO

Function Main()
Dim bRes as Boolean

bRes = (low() < low( - 1) and low() < low(1))

If (bRes = True) Then
Entra = high(1) + 0.01
Price Entra
EndIf

Return bRes

EndFunction


E' stato aggiunta la riga "Price Entra" in caso tu intenda entrare al valore => high(1) + 0.01. Se non era questa la tua intenzione toglila pure



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