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

Re: [amibroker] How do i insert a NewLine carachter into a txt file?



PureBytes Links

Trading Reference Links

To get actual uniquie signals for buy and selling you should use cross
instead of > for single conditions
Cond5 = Cross( ValueWhen(Buy, L, 1) , L );
Cond6 = Cross( H , 3 * ValueWhen(Buy, H, 1) );



Cheers,
Graham
http://e-wire.net.au/~eb_kavan/

-----Original Message-----
From: Collectable Images [mailto:telecard@xxxxxxxxxxxxxx] 
Sent: Monday, July 05, 2004 4:15 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Not selling at correct time?

Graham,

tried that but no joy. What I can not understand here is taht the buy
signals are generated ok but only the stop signal generates the sell. The
target code does not function. This should be simple. Trying to sell at
either the low of entry day or profit target equal to 300% of High price of
entry day.


Try adding
Buy = exrem(buy,sell);
to remove extraneous buy signals (or I believe Equity(1); does this as well)


Cond5 = L < ValueWhen(Buy, L, 1); //DOES THIS SAY cond5 is when Low of day
breaks Low of the BUY DAY?

Cond6 = H > 3 * ValueWhen(Buy, H, 1); // Does this say cond6 is when High of
day breaks the value 3 times Highprice of the Buy day??

Sell = Cond5 OR Cond6;
SellPrice = C;

buy = ExRem(Cond10, Sell);











Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links









Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links



 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/