Skip to content

Instantly share code, notes, and snippets.

View marketcalls's full-sized avatar

Marketcalls marketcalls

View GitHub Profile
@marketcalls
marketcalls / Plot Buy and Sell Signal Arrows
Created May 4, 2017 17:38
Plot Buy and Sell Signal Arrows
/* Plot Buy and Sell Signal Arrows */
PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorGreen, 0, L, Offset=-40);
PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorLime, 0,L, Offset=-50);
PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorWhite, 0,L, Offset=-45);
PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorRed, 0, H, Offset=40);
PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorOrange, 0,H, Offset=50);
PlotShapes(IIf(Sell, shapeDownArrow, shapeNone),colorWhite, 0,H, Offset=-45);
@marketcalls
marketcalls / Bubble Picker
Created April 4, 2017 12:56
Bubble Picker
//Simple Bubble Picker Amibroker Exploration Code
//Coded by Rajandran R - www.marketcalls.in
_SECTION_BEGIN();
r = ROC(C,1);
Filter = BarCount>4 AND RSI(2)>99;
AddColumn(C,"Close",1.2);
@marketcalls
marketcalls / Open == High AND Open == Low Exploration
Created February 24, 2017 13:03
Open == High AND Open == Low Exploration
//Coded by Rajandran R
//Author - www.marketcalls.in
//Date : 21st FEB 2017
_SECTION_BEGIN("Open == High AND Open == Low Exploration");
DOpen = TimeFrameGetPrice( "O", inDaily, 0 ); // gives you Todays Open price.
DHigh = TimeFrameGetPrice( "H", inDaily, 0 ); // gives you Todays High price.
DLow = TimeFrameGetPrice( "L", inDaily, 0 ); // gives you Todays High price.
@marketcalls
marketcalls / Range Identifier - Amibroker AFL
Created February 23, 2017 06:53
Range Identifier - Amibroker AFL
//Coded by Rajandran R
//Author - Marketcalls
//www.marketcalls.in
_SECTION_BEGIN("Range Identifier");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
@marketcalls
marketcalls / Simple Scanner.afl
Created January 7, 2017 07:17
Simple Scanner.afl
_SECTION_BEGIN("Simple Scanner");
//Logical Filtering of Stocks
Filter = ROC(C,12)>4 AND ROC(C,12)<7 AND C>100;
//Track Status and Text Interpretation
ratestatus = WriteIf(ROC(C,12)>4 AND ROC(C,12)<5,"Lower ROC",WriteIf(ROC(C,12)<7,"Higher ROC","Medium ROC"));
ratecolor = IIf(ROC(C,12)>4 AND ROC(C,12)<5,colorGreen,IIf(ROC(C,12)<7,colorBlue,colorYellow));
@marketcalls
marketcalls / Magnified Market Price
Created January 7, 2017 06:52
Magnified Market Price
_SECTION_BEGIN("Magnified Market Price");
//Magfied Market Price
FS=Param("Font Size",30,11,100,1);
GfxSelectFont("Times New Roman", FS, 700, True );
GfxSetBkMode( colorWhite );
@marketcalls
marketcalls / Dashboard.afl
Created January 7, 2017 06:42
Dashboard.afl
_SECTION_BEGIN("Dashboard");
X0 = 10;
Y0 = 20;
procedure DrawData (Text, x1, y1, x2, y2, colorFrom, colorTo)
{
GfxSetOverlayMode(0);
GfxSelectFont("Verdana", 8.5, 700);
@marketcalls
marketcalls / Hull ROAR - Amibroker AFL Code
Created January 3, 2017 02:15
Hull ROAR - Amibroker AFL Code
_SECTION_BEGIN("Hull Roar");
GraphXSpace=1;
SetPositionSize(1,spsShares);
SetTradeDelays(1,1,0,0);
Cutoff=Param("Cutoff",20,0,200,5);
hullroar = IIf((200*(LinearReg(C,52)-Ref(LinearReg(C,52),-26))/C)<Cutoff,0,200*(LinearReg(C,52)-Ref(LinearReg(C,52),-26))/C);
@marketcalls
marketcalls / JNSAR Dots - Amibroker AFL Code
Last active September 19, 2021 10:17
JNSAR Dots - Amibroker AFL Code
//JNSAR - Indicator ideated by Mr Illango (Just Nifty)
//Reference - http://tradeinniftyonly.blogspot.in/2010/09/jnsar-stop-and-reverse-trading-method.html
//Coded by Rajandran R - www.marketcalls.in
//Date - 10th Dec 2016
_SECTION_BEGIN("JNSAR");
@marketcalls
marketcalls / Rolling Returns Computation
Created December 16, 2016 03:03
Rolling Returns Computation
//AFL Code to Compute Rolling Returns
//Recommended to use it on Weekly/Monthly Charts with Historical Data more than 10 Years
//Minor Variations in the Rolling Returns might be there because of timeframe selection.
//Coded by Rajandran R - Author www.marketcalls.in
_SECTION_BEGIN("Rolling Returns");
SetChartOptions(0,chartShowArrows|chartShowDates);
Years = Param("Years", 10, 1, 50, 1 );