Buongiorno, sono nuovo sia nel forum che nel mondo del trading sistematico (sempre fatto solo discrezionale) quindi chiedo scusa in anticipo se sbaglio qualcosa. Delle tante strategie che sto provando vorrei chiedere se sia possibile fare un sistema su un timeframe a 5 minuti che entri short dopo un tick del minimo dell ultima candela ( devono essere minimo 3 verdi) TP 2 tick SL 6 tick. Il contrario per l ingresso long e se è possibile aggiungere come orario di trading dalle 9 alle 13 e dalle 17 alle 20. Grazie
Hola Aquí ha una proposta. Ha creato sulla prima linea una variabile (X) per poter regolare la distanza tra stop loss (3X) e take profit (X).
x=10
last3green = summation[3](open < close)=3
last3red = summation[3](open > close)=3
if not onmarket and last3green then
sellshort 1 contract at low-pointsize stop
set stop ploss 3*x
set target pprofit x
endif
if not onmarket and last3red then
buy 1 contract at high+pointsize stop
set stop ploss 3*x
set target pprofit x
endif
Grazie. è possibile aggiungere il timeframe a 5 minuti e lorario di trading? Inoltre la posizione dovrebbe essere annullata entro i 5 minuti della candela in corso se non entra a mercato. Grazie ancora
x=10
timeframe(5mn)
last3green = summation[3](open < close)=3
last3red = summation[3](open > close)=3
time1=time>=090000 and time<=130000
time2=time>=170000 and time<=200000
if not onmarket and last3green and (time1 or time2) then
sellshort 1 contract at low-pointsize stop
set stop ploss 3*x
set target pprofit x
endif
if not onmarket and last3red and (time1 or time2) then
buy 1 contract at high+pointsize stop
set stop ploss 3*x
set target pprofit x
endif