PureBytes Links
Trading Reference Links
|
_SECTION_BEGIN("Entropy Bot");
SetChartOptions( 0, chartShowDates|chartWrapTitle );
GraphXSpace=10;
_N(Title = "{{NAME}} - {{INTERVAL}} {{DATE}} "+_DEFAULT_NAME()+" :
{{OHLCX}} {{VALUES}}" );
Filter = 1;
PositionSize = MarginDeposit = 1;
LogReturn = LN(Close / Ref(C, -1));
AvgLogReturn = MA(LogReturn, 4 );
SquaredLogReturn = LogReturn ^ 2;
//Root mean squares
RMS = (Sum (SquaredLogReturn, 4 )/ 4 ) ^ 0.5;
//Shannon's probability, i.e. the probability that next day's close will
increase
p = ((AvgLogReturn / RMS) + 1)/ 2;
FirstSmoothing = MA(P,5);
SSFast= MA(FirstSmoothing,7);
SSSlow = MA(FirstSmoothing,9);
Buy = Cross (SSSlow, SSFast);
Sell = Cross (SSFast, SSSlow);
Cover = Cross (SSSlow, SSFast);
Short = Cross (SSFast, SSSlow);
AddColumn (Close, "Close", 1.4);
AddColumn (FirstSmoothing , "FirstSmoothing ", 1.4);
AddColumn (SSFast, "SSFast", 1.6);
AddColumn (SSSlow, "SSSlow", 1.6);
AddColumn (Buy, "Buy", 1.0);
AddColumn (Sell, "Sell", 1.0);
AddColumn (Short, "Short", 1.0);
AddColumn (Cover, "Cover", 1.0);
AddColumn (RMS , "RMS", 1.6);
AddColumn (P, "P", 1.6);
Plot (SSFast, "SSFast", colorBlue,StyleLine|StyleOwnScale);
Plot (SSSlow , "SSSlow ", colorBrightGreen,StyleLine|StyleOwnScale);
Plot (c , "Close ", colorViolet,StyleLine|StyleOwnScale);
PlotForeign ("DSE One BotEquity" , "DSE One BotEquity", colorRed,
StyleLine|StyleOwnScale);
_SECTION_END();
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|