-
15-10-13, 11:44 #11
Ciao caro,
effettivamente abbiamo riscontrato un bug che è già risolto e sarà ovviamente sistemato con la prossima release. Colgo l'occasione per suggerire una funzione molto utile in questi casi: Indicators -> Other -> Custom 1 Line.
Se crei un indicatore Custom 1 Line e vi inserisci
Verifichi al volo la condizione1TIME >
930
AND
TIME <
1700
Ciao Ciao
-
16-07-15, 13:21 #12
- Data Registrazione
- Jun 2008
- Messaggi
- 53
TimeGO TimeOUT in Intraday su TS
Ciao,
allego listato di un semplice trading system.
Vorrei però testare il sistema di trading tra le nove e le diciotto, nell'arco di una settimana borsistica.
Le funzioni temporali che ho inserito mi sembrano corrette....... ma il sistema non mi esce dal mercato.
Purtroppo non riesco ad individuare l'errore!!!
Grazie per l'aiuto.
Buy Script
#beeSwingTrail-in RT
INPUTS: @periods(10), @trailAmount(100), @trailPercent(10), @stopLoss(400), @timeGO(900), @timeOUT(1800)
SET TRAILING_STOP = @trailAmount
SET TRAILING_PERCENT = @trailPercent
SET STOP_LOSS = @stopLoss
SET timeTrading =(TIME > @timeGO AND TIME < @timeOUT)
OR TIME > @timeOUT
SET hh = HighestHighValue(@periods)
#SET ll = LowestLowValue(@periods)
#HIGH = hh
REF(HIGH, 1) = REF(hh, 1)
Sell Script
SET timeTrading =(TIME > @timeGO AND TIME < @timeOUT)
OR TIME > @timeOUT
#SET hh = HighestHighValue(@periods)
SET ll = LowestLowValue(@periods)
#LOW = ll
REF(LOW, 1) = REF(ll, 1)
-
16-07-15, 14:19 #13
- Data Registrazione
- May 2012
- Località
- Roma
- Messaggi
- 593
Non funziona perchè non l'hai messo nella condizione (con un AND):
condizione del buy script
REF(HIGH, 1) = REF(hh, 1) AND timeTrading
PS non ho capito perchè hai messo anche: OR TIME > @timeOUTUltima modifica di civvic; 16-07-15 alle 14:23
Io non vendo tasti ! - Tiziano Cagalli...quindi se c'è un tasto (su Fiuto) vuol dire che serve !!
-
16-07-15, 15:55 #14
- Data Registrazione
- Jun 2008
- Messaggi
- 53
Ciao,
la stringa "REF(HIGH, 1) = REF(hh, 1) AND timeTrading" l'avevo già provata sia nel buy prima, poi successivamente nel sell Script,
ma il risultato è sempre stato negativo.
Perciò ho inserito nell'ennesimo tentativo " OR TIME > @timeOUT" ma purtroppo in tutti questi casi il sistema
non esce dal mercato nelle ore impostate.
Rimango in attesa del soluzione!
Grazie civvic
-
16-07-15, 16:17 #15
- Data Registrazione
- May 2012
- Località
- Roma
- Messaggi
- 593
Per uscire dal mercato devi mettere la condizione sul tempo anche in exitlong e exitshort
mettendo not timeTradingUltima modifica di civvic; 16-07-15 alle 16:21
Io non vendo tasti ! - Tiziano Cagalli...quindi se c'è un tasto (su Fiuto) vuol dire che serve !!
-
16-07-15, 20:04 #16
- Data Registrazione
- Jun 2008
- Messaggi
- 53
Grazie civvic problema risolto.
Stringhe inserite in ExitLong ed ExitShort
SET timeTrading =(TIME > @timeGO AND TIME < @timeOUT)
AND (NOT timeTrading)
OR TIME > @timeOUT
L'unica accortezza è che se vuoi uscire dal mercato alle 17.30
su un grafico con time frame 5 minuti devi tarare il timeOUT sulle 17.25.
Grazie