Skip to content

Instantly share code, notes, and snippets.

View marketcalls's full-sized avatar

Marketcalls marketcalls

View GitHub Profile
@marketcalls
marketcalls / gist:f2cdac12804e5ee9099e6994b5160c6a
Created April 22, 2021 17:07
Simple Stochastic Crossover System
//Coded for Amibroker AFL Collection
//Coder : Rajandran R
//Website : www.marketcalls.in and www.algomojo.com
_SECTION_BEGIN("Stochastic Crossover System");
range = Param("Range",14,1,50,1);
ksmooth = Param("KSmooth",3,1,50,1);
dsmooth = Param("DSmooth",3,1,50,1);
@marketcalls
marketcalls / Cointegration.py
Created August 26, 2020 21:38
Cointegration Python to Amibroker
#Python Code for cointegration, adftest, critical values - Values will be returned to Amibroker
import numpy as np
import pandas as pd
import statsmodels
from statsmodels.tsa.stattools import coint
import statsmodels.api as stat
import statsmodels.tsa.stattools as ts
from datetime import date
@marketcalls
marketcalls / cointegration.afl
Last active April 11, 2022 11:38
Cointegration AFL
//Coded by Rajandran R
//Date : 27th Aug 2020
//Requirements
//Used Amipy v0.2.0 (64-bit) - Download from https://forum.amibroker.com/t/amipy-plug-in-python-integration/20337/32
//Amibroker (64 Bit) v6.3 or higher
//Python 3.8 or higher
//ADF Test Return Values
//adffloat - The test statistic.
@marketcalls
marketcalls / Simple EMA Crossover High-Low Breakout Trading System.afl
Last active September 19, 2021 10:10
Simple EMA Crossover High-Low Breakout Trading System - Amibroker AFL code
//Coded by Rajandran R
//Founder of Marketcalls - www.marketcalls.in
//Co-Founder of Febinars - www.febinars.com
//For Premium Trading Strategies visit - www.traderskart.in
_SECTION_BEGIN("EMA Crossover High-Low Breakout Strategy");
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
SetChartOptions(0,chartShowArrows|chartShowDates); //Enable X-Axis (Date/Time Axis)
Plot(Close,"Candles",colorDefault,styleCandle); //Plot Candles
@marketcalls
marketcalls / Simple Volatility Exploration.afl
Created April 24, 2020 11:28
Simple Volatility Exploration - Amibroker AFL Code
//Simple Volatility Exploration
//Coded by Rajandran R ( www.marketcalls.in )
_SECTION_BEGIN("Simple Volatility Exploration");
Filter = 1;
PDC = TimeFrameGetPrice("C",inDaily,-1);
TC = TimeFrameGetPrice("C",inDaily,0);
@marketcalls
marketcalls / ATM CE and ATM PE Caclulation
Last active September 19, 2021 10:10
ATM CE and ATM PE Caclulation - Amibroker AFL
//Coded by Paris Kamal - Python Data Analyst
//website - www.marketcals.in
//Version 1.0.0.0
//Coded Date : 9-Dec-2019
_SECTION_BEGIN("ATM CE and ATM PE Caclulation");
iInterval= Param("Strike Interval",50,1,5000,1);
@marketcalls
marketcalls / Colored ADX histogram Bars
Created November 16, 2019 07:01
Colored ADX histogram Bars
//Coded by Rajandran R - Founder Marketcalls
//www.marketcalls.in - July 2019
//Email ID : rajandran@marketcalls.in
_SECTION_BEGIN("Colored ADX histogram Bars");
Plot(20,"",colorBlue, styleDashed | styleThick | styleNoLabel);
range = Param("Periods", 10, 2, 200, 1 );
iadx = HMA(ADX(range),10);
inc = iadx > Ref(iadx,-1);
@marketcalls
marketcalls / Colored ADX Candles
Last active September 19, 2021 10:10
Colored ADX Candles
//Coded by Rajandran R - Founder Marketcalls
//www.marketcalls.in - July 2019
//Email ID : rajandran@marketcalls.in
_SECTION_BEGIN("Colored ADX Candles");
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 ) ) ));
range = Param("Periods", 10, 2, 200, 1 );
@marketcalls
marketcalls / Telegram Alerts - Modern Method.afl
Created June 11, 2019 19:51
Telegram Alerts - Modern Method
//Coded by Rajandran R
//Founder - Marketcalls - https://www.marketcalls.in
//CoFounder - Traderscafe - http://traderscafe.in
//Coded on 12th June 2019
/*
Note : Before Using this Code make sure you had followed the below mentioned steps
1)Create a Telegram public channel
2)Create a Telegram BOT via BotFather
@marketcalls
marketcalls / Telegram Alerts - Legacy Method.afl
Last active September 19, 2021 10:09
Telegram Alerts - Legacy Method
//Coded by Rajandran R
//Founder - Marketcalls - https://www.marketcalls.in
//CoFounder - Traderscafe - http://traderscafe.in
//Coded on 12th Jun 2019
/*
Note : Before Using this Code make sure you had followed the below mentioned steps
1)Create a Telegram public channel
2)Create a Telegram BOT via BotFather