Skip to content

Instantly share code, notes, and snippets.

View marketcalls's full-sized avatar

Marketcalls marketcalls

View GitHub Profile
@marketcalls
marketcalls / Laugerre PPO
Created January 18, 2016 05:40
Laugerre PPO
// Coded by Rajandran R
// Date : 17th Jan 2016
// Reference Url : https://www.tradingview.com/script/uKEixWLn-TheLark-Laguerre-PPO/
_SECTION_BEGIN("PPO Lagurre");
@marketcalls
marketcalls / One Timeframing
Created January 13, 2016 02:32
One Timeframing
//Coded By Rajandran R
//Date : 12 Jan 2016
_SECTION_BEGIN("One Timeframing Exploration");
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 ) ) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
OTsell = Ref(H,-4)< Ref(H,-3) AND Ref(H,-3)< Ref(H,-2) AND Ref(H,-2)< Ref(H,-1)
AND Ref(L,-4)< Ref(L,-3) AND Ref(L,-3)< Ref(L,-2) AND Ref(L,-2)< Ref(L,-1);
@marketcalls
marketcalls / AMA RSX
Last active September 19, 2021 10:24
AMA RSX
_SECTION_BEGIN("AMARSX");
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 ) ) ));
//Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
SetPositionSize(1,spsShares);
//rs = 25 for hourly
@marketcalls
marketcalls / Price Time Contours
Created January 3, 2016 11:19
Price Time Contours
_SECTION_BEGIN("Time & Price Contour");
// Milind and KAKA created the core of this code in 2009-10
// Tweaks, Additonal Functions & Visual Design by Twitter.com/Uptickr in June 2015
// Visit Uptickr's blog on Options Investing at http://www.uptickr.in
// For Nifty Futures DONT adjust Vertical Density above 2. For smaller stocks,
// Vertical Density will have to be adjusted lower. Eg. For Rs. 300 stock. set vertical desnity to 0.25.
// ADJUST SCALE FOR PROPER APPEARANCE BY SHIFT-CLICKING Y-AXIS
//**********************
//WORKS ONLY in 30 MINUTE TIMEFRAME
@marketcalls
marketcalls / Hull of RSX
Created January 3, 2016 10:22
Hull of RSX
_SECTION_BEGIN("HRSX");
Plot(HMA(RSI(7),7),"HRSX",colorRed);
_SECTION_END();
@marketcalls
marketcalls / Camarilla Pivot as Trailing Stop
Created December 25, 2015 12:01
Camarilla Pivot as Trailing Stop - Amibroker AFL Code
//Coded by Rajandran R
//Website - www.marketcalls.in
//Date - 15-Nov-2015
_SECTION_BEGIN("Price");
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 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
@marketcalls
marketcalls / Coral Trend Indicator
Created December 20, 2015 14:06
Coral Trend Indicator
// Coral Trend Indicator - PineScript
study(title="Coral Trend Indicator", shorttitle="CoralTrend", overlay=true)
src=close
sm =input(21, title="Smoothing Period")
cd = input(0.4, title="Constant D")
ebc=input(false, title="Color Bars")
ribm=input(false, title="Ribbon Mode")
di = (sm - 1.0) / 2.0 + 1.0
c1 = 2 / (di + 1.0)
c2 = 1 - c1
@marketcalls
marketcalls / Coral Trend Indicator
Last active March 4, 2024 19:50
Coral Trend Indicator
// Coded by Rajandran R
// Transcoded from PineScript Indicator (Coral Trend)
// Date : 20th Dec 2015
_SECTION_BEGIN("Coral Trend Indicator");
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 ) ) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
C:\> pip install plotly
C:\> python -c "import plotly; plotly.tools.set_credentials_file(username='DemoAccount', api_key='lr1c37zw81')"
@marketcalls
marketcalls / Sentimental Dashboard
Created November 7, 2015 15:39
Sentimental Dashboard
_SECTION_BEGIN("Sentimental Dashboard");
function jmatrix(timeframe)
{
TimeFrameSet( timeframe ); // switch to 5 minute frame
rmat = HMA(RSIa((H+L+C+O)/4,5),5);