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

FW: Active Trader KISS Article



PureBytes Links

Trading Reference Links

It's fairly simple, James. 
There's a typing error. 
If you look at the code, you'll spot a lack of simmetry: 
- on the long side, the code is telling you to buy 0.5% OVER the previous
high 
- on the short side, the code is telling you to sell 0.5% - again - OVER the
previous low. 
No, no, no ... the *logical* way to go is: 
- on the short side, sell 0.5% UNDER the previous low. 
This is logical, since we are talking about a BREAKOUT system, after all. 
So the code has to be something like this: 
{************************************************************************} 
Inputs: Param(0.5); 
Vars: MP(0); 
MP = MarketPosition; 
if MP <> +1 and Close > (1 + Param/100)*High[1] then Buy;
if MP <> -1 and Close < (1 - Param/100)*Low[1] then Sell; 
{************************************************************************} 
I have changed the code slightly to allow more flexibily: now you can test
with different % over/above the previous high/low. 
Hope this help, 
Cristian Stremiz 

---------
"Those who cannot remember the past are condemned to repeat it."
George Santayana



"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."