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

[amibroker] amibroker - Doji code



PureBytes Links

Trading Reference Links



Hi everyone,

 

I am absolutely new to Amibroker and to this forum and would like to know the basic code for identifying a “going-long” Doji (or almost a Doji) and then selling at 0.5% (parameterized and optimized later) profit

 

Assumes that the length of the Doji has to be atleast .25% of the close) and the body is very-very small. 0 body length is obviously preferential but then it occurs very rarely. Buy at the opening of the bar that comes just after the doji formation.

 

Can someone help me correct this code –

 

Thanks

 

***************************************************************************************************************************************************

Buy = Ref(H,-1)- Ref(L,-1)>(0.0025*Ref(C,-1)) AND abs (Ref(C,-1) - Ref(O,-1))<(0.0005* Ref(C,-1)) AND Ref(H,-1) - Ref(C,-1)<(0.0005*Ref(C,-1));

BuyPrice = O;

Sell = ???;

SellPrice = BuyPrice*1.005;

***************************************************************************************************************************************************

 

 



__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___