How to Post/Share your Code in Marketcalls Community?

Github Gist

When you are participating in Marketcalls Community if you concerns in building your trading system codes sometimes you have to post lengthier codes (AFL, mql4, easylanguage codes). While posting in our community it looses its readability so to sort out the issue introduced github gist integration with marketcalls. Just by following few steps now you will be able to share code with other community members without loosing readability.

How to Convert your Repainting Code to Non-Repainting?

Basic-Code-icon

The problem in automating your strategies or while watching your trading system most of the time you find buy or sell signal occurs in the current bar and before the candle completes the signal get erased. This happens when the signal oscillates back and forth the threshold levels which decides the occurence of buy or sell signal. we can name it as current bar repainting.

Last Five Trades Result Dashboard – AFL code

Nifty Futures Dashboard

Here is simple visualization to look into the past five trades result and plot the values over the chart which gives a quick view on how the strategy performed in the last five trades. In this AFL example we had created the dashboard for simple MACD crossover. And the dashboard doesnt include current open positions and only include last five closed positions.

How to Plot Bid Vs Ask Dashboard in Amibroker

Crude Oil Bid Ask Dashboard

Here is a little Bid Vs Ask Dashboard for Amibroker users which helps to monitor the Bid-Ask Spread during live trading. In a highly liquid market the Bid Ask spread difference will be very thin whereas in a illiquid script the Bid-Ask spread get wider due to less number of buyers and sellers.

Simple Smoothed RSI Crossover Strategy

Backtested Results

Here is the simple smoothed RSI crossover strategy can be practiced on higher timeframes especially with daily timeframes with controlled risk. It catches the big trends and gets little losses during sideways movement with a desecent amount of winning ratio. Strategy suits for Nifty and Bank Nifty future traders willing to take positional trades based on EOD chart.

Intraday Gap Up and Gap Down – Amibroker Strategy

stoploss setting

Strategy is very simple. when the market open with gap up and at the same time ,it crossed the previous day high then it should be considered as strong buy. When the market open with gap down and while opening if it crosses yesterday low then it should be considered as strong short.

ATR Volatility Long Only Trading System

ATR Volatility  Underwater Equity

Yet another ATR Volatility based Long only Trading System. ATR Volatility system a mechanical strategy for higher time-frames Written by Tudor Marcelin – Art Invest. Just modified the actual trading system to support trailing stoploss based rather than channel based trading system and added back testing functionality.

ZLEMA ATR Long Only Trading System – AFL code

Backtest Results

ZLEMA ATR Long only Trailing stop loss trading is a mechanical strategy for higher timeframes. The trailing stop loss is quite adaptive and adjustible in the down trends to revise it stoploss downwards on its own and the buy or sell decision is taken only at the end of the candle.

Bollinger Band Based Trailing Stop Loss – Amibroker

DLF Futures

BBand TSL or or Bollinger Band based Trailing stop loss trading is once again a mechnaical trend trading system for lower timeframes inspired from mql4 (metatrader). The trailing stoploss method is completly built using bollinger bands and completely fits for stop and reverse strategy.

How to Plot the Equity Curve without Backtesting?

Nifty Futures Equity Curve

In Amibroker the general way of computing the Equity curve is to backtest the given trading system and the report computes the equity curve, drawdown…etc results for you. And to compute the equity curve you have to push the backtest button every time which makes you little uncomfortable if you want to measure the Equity curve in realtime.

Double Donchian Trading System – Amibroker AFL code

Double Donchain Trading System

Double Donchian Trading system is a Breakout trading system inspired from Richard J.Dennis. Donchian channels were developed by Richard Donchian, a pioneer of mechanical trend following systems. Double Donchian trading system a turtle trading strategy.Curtis Faith in his book Way Of The Turtle describes a variation of the Donchian system used by the legendary Turtle Traders.