Come faccio a codificare che voglio che il sistema orario entri alle 9 ed esca alle 10?
<hr />
Ho spostato l’argomento da ProBuilder, in quanto non è un indicatore.
Ecco il codice:
If time = 090000 and Not OnMarket then
Buy 1 contract at Market
Endif
If time = 100000 and OnMarket then
SELL 1 contract at Market
Endif
Prima cosa la ringrazio di tutto se mi posso sdebitare in qualsiasi maniera mi dia pure un suo contatto. Non sembra funzionare mi apre le posizioni in tutti gli orari.
non prendetemi in giro per sto squallore di codice . Lo so da solo che non so programmare
// prova sistema
if time=090000 and not onmarket then
buy 1 contract at market
endif
if time= 100000 and onmarket then
sell 1 contract at market
endif
Ntick =1
N2TICK =1
//Long entry
IF close < (OPEN) then
buy 1 shares at HIGH – Ntick stop
endif
//Short entry
if close >(OPEN) then
sellshort 1 shares at LOW + Ntick stop
endif
IF LONGONMARKET and (BarIndex – TradeIndex)=3then
endif
Set Stop Loss 30//as insurance
Set Target profit 150
Certo che entra sempre, solo nella prima parte hai usato le condizioni temporali, nel resto no.