[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Coding problem



PureBytes Links

Trading Reference Links

Hello,
I'm using 60 minutes chart  and I'm trying to make a system where there is a
Limit order to Sell (Buy) on a prefixed level above (below) the high(low) of
yesterday.

The order should take place starting from the second bar.

The problem is that if the position is exited using trailing stop ot money
management stop and the condition is still active the system generate a new
order.

My target is to have only one signal for each order (If I'm long I only want
to have a sell order or the opposite).

Any suggestion to manage this trouble.

I'm thinking about some variable to use.

I appreciate any help.

Tvm

Max 

(Italy)




"Nota di riservatezza: Il presente messaggio, corredato dei relativi
allegati contiene informazioni da considerarsi strettamente riservate, ed è
destinato esclusivamente al destinatario sopra indicato, il quale è l'unico
autorizzato ad usarlo, copiarlo e, sotto la propria responsabilità,
diffonderlo. Chiunque ricevesse questo messaggio per errore o comunque lo
leggesse senza esserne legittimato è avvertito che trattenerlo, copiarlo,
divulgarlo, distribuirlo a persone diverse dal destinatario è severamente
proibito, ed è pregato di rinviarlo immediatamente al mittente distruggendo
l'originale"

"Confidentiality Notice: This message, together with its annexes, contains
information to be deemed strictly confidential and is destined only to the
addressee (s) identified above who only may use, copy and, under his/their
responsibility , further disseminate it. If anyone received this message by
mistake or reads it without entitlement is forewarned that keeping, copying,
disseminating or distributing this message to persons other than the
addressee (s) is strictly forbidden and is asked to transmit it immediately
to the sender and to erase the original message received."