Hi,

I've encountered a problem in quanstrat framework, in case I want to trade 
not just signalCrossovers (or better said, the modified version of a 
Crossover). 

Specifically i would like to e.g. go Long if Price>MovingAverage and Exit 
if Price<MovingAverage. 

This means, that if we have on a <b>starting </b>day Price>MovingAverage 
(not a crossover, just "above"), i want the system to buy immediately on a 
starting day. However, just once. 

If i tried sigComparison, this solved the problem with trading immediately 
on a starting day, but started trading <b>anytime</b> a 
Price>MovingAverage (every day in a row). 

To sum up, I need to know how to modify sigCrossover to trade also in case 
"ABOVE" (not just crossover, e.g. on a start day if condition is met) or 
how to modify sigComparison to make only 1 Long order (not every day the 
condition is met, only on 1st and then not until Exit is made).


Thanks, best regards,

Igor





____________________________________________________________________
Informacie obsiahnute v tomto  dokumente su urcene vylucne pre
potreby jeho adresata. Dokument moze obsahovat informacie chranene
ako bankove alebo obchodne tajomstvo, pripadne informacie
podliehajuce ochrane podla inych pravnych predpisov. Preto Vas v
pripade, ak Vam bol  mylne doruceny, vyzyvame, aby ste sa zdrzali
jeho odtajnenia ci jeho pouzitia pre vlastne potreby. Zaroven si Vas
dovolujeme poziadat, aby ste nas o takomto pripade bez zbytocneho
odkladu informovali a dokument nasledne zlikvidovali.

Information stated in this document is intended only for needs of proper
addressees of this document. This document can contain information
protected as a bank or business secret, or information protected by 
other legal regulations. Thus in case of receiving the document by error,  
we kindly ask you not to disclose, or use the document for your own 
needs. Likewise we kindly ask you to notify us immediately upon such 
a case by sending an email message to the sender's address, and 
subsequently delete the document.

Tatra banka, a.s.
http://www.tatrabanka.sk
Hodzovo namestie 3,  811 06 Bratislava 1 
ICO: 00 686 930
Zapisana v obchodnom registri Okresneho sudu Bratislava I
Oddiel: Sa, vlozka cislo: 71/B
	[[alternative HTML version deleted]]

