Skip to content

Instantly share code, notes, and snippets.

View marketcalls's full-sized avatar

Marketcalls marketcalls

View GitHub Profile
@marketcalls
marketcalls / Ichimoku Cloud TSL
Created June 6, 2016 12:24
Ichimoku Cloud TSL
_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();
_SECTION_BEGIN("Ichimoku TSL ");
GraphXSpace =1;
@marketcalls
marketcalls / Lin Supertrend - Amibroker AFL Code
Created June 4, 2016 10:33
Lin Supertrend - Amibroker AFL Code
/* Done by Rajandran R */
/* Author of www.marketcalls.in */
function GetSecondNum()
{
Time = Now( 4 );
Seconds = int( Time % 100 );
Minutes = int( Time / 100 % 100 );
Hours = int( Time / 10000 % 100 );
SecondNum = int( Hours * 60 * 60 + Minutes * 60 + Seconds );
@marketcalls
marketcalls / Prior Day OHLC
Last active August 9, 2016 07:03
Prior Day OHLC - Amibroker AFL Code
//Coded by Rajandran R
//Website www.marketcalls.in
_SECTION_BEGIN("Prior Day OHLC");
PDH_Color = ParamColor("PDH Color", colorgreen);
PDH_Style = ParamStyle("PDH Style", styleThick);
@marketcalls
marketcalls / VPOC
Created April 28, 2016 05:14
VPOC in Amibroker 6.13
// a demo showing
// re-implementation of VAP overlay using
// PriceVolDistribution and low-level graphics
bi = BarIndex();
fvb = FirstVisibleValue( bi );
lvb = LastVisibleValue( bi );
mx = PriceVolDistribution( H, L, V, 100, False, fvb, lvb );
GfxSetCoordsMode( 1 );
@marketcalls
marketcalls / Pop up Framework.afl
Created April 17, 2016 05:43
Pop up Framework
function PopupWindowEx( popupID, bodytext, captiontext, timeout, left, top )
{
displayText = bodytext + captiontext;
if ( ( StaticVarGetText( "prevPopup" + popupID ) != displayText) OR ( StaticVarGet( "prevPopupTime" + popupID ) < GetSecondNum() ) )
{
StaticVarSetText( "prevPopup" + popupID, displayText);
StaticVarSet( "prevPopupTime" + popupID, GetSecondNum() + timeout );
PopupWindow( bodytext, Captiontext + popupID, timeout, Left, top );
PlaySound("c:\\windows\\media\\ding.wav");
}
@marketcalls
marketcalls / Supertrend V5.0.afl
Last active July 2, 2022 00:50
Supertrend V5.0
/* Done by Rajandran R */
/* Author of www.marketcalls.in */
/* Date : 05th Apr 2016 */
function GetSecondNum()
{
Time = Now( 4 );
Seconds = int( Time % 100 );
Minutes = int( Time / 100 % 100 );
Hours = int( Time / 10000 % 100 );
@marketcalls
marketcalls / NR4 and NR7
Created April 5, 2016 11:02
NR4 and NR7
_SECTION_BEGIN("NR7");
/*********** NR7 System for Chart and Exploration ***********************/
R = H - L;
NR7 = False;
NR4 = False;
m7 = m4 = idm7 = idm4 = idm = 0;
for(i = 7; i < BarCount; i++)
@marketcalls
marketcalls / Stochastic Momentum Oscillator.afl
Last active September 19, 2021 10:20
Stochastic Momentum Oscillator
//Modified Stochastic Momentum Oscillator
//Coded by Rajandran R
//Author - www.marketcalls.in
_SECTION_BEGIN("Stochastic Momentum Oscillator");
LookBack1 = Param("Lookback1", 24, 2, 100 );
LookBack2 = Param("Lookback2", 100, 2, 100 );
Smooth1 = Param("Smooth 1", 3, 1, 100 );
Smooth2 = Param("Smooth 2", 10, 1, 100 );
@marketcalls
marketcalls / Inside Day Breakout.afl
Last active October 2, 2020 17:32
Inside Day Breakout - Trading Strategy - Amibroker AFL Code
//Inside Day breakout strtergy
//Inside Day :-It occurs when the price is trade between the range of yesterdays High Low .i.e todays High is less than yesterdays High AND todays Low is greter than yesterdays Low
//Inside Day breakout :when the Inside Day occurs (on the daily timeframe ) AND price corosses yesterdays High then Buy Signal is generated .Exactly opposite for Shorts .i.e price crosses yesterdays Low AND Inside Day on daily timeframe
//Exit :- at then end of the day or certain % stop loss and target . It can be set in % using backtesting setting
_SECTION_BEGIN("HI LO");
@marketcalls
marketcalls / Supertrend V4.0
Created February 24, 2016 10:38
Supertrend V4.0 - Amibroker AFL Code
/* Done by Rajandran R */
/* Author of www.marketcalls.in */
function GetSecondNum()
{
Time = Now( 4 );
Seconds = int( Time % 100 );
Minutes = int( Time / 100 % 100 );
Hours = int( Time / 10000 % 100 );
SecondNum = int( Hours * 60 * 60 + Minutes * 60 + Seconds );