Menu
  • Option Hydra
  • Training
  • Premium
  • Courses
  • Library

Marketcalls

Simply Intelligent Technical Analysis and Trading Strategies

  • Software
    • Amibroker
    • NinjaTrader 7
    • Ninjatrader 8
    • Option Action
    • Market Analyst
    • Metatrader
    • Python
    • Datafeed
  • Market Profile
    • Orderflow
  • Markets
  • Commodities
  • Forex
  • Economy
    • Banking
  • Webinars
  • Trading Lessons
    • Algo Trading
    • Infographic
    • Video
You are here: Home / Amibroker / Last Five Trades Result Dashboard – AFL code

Last Five Trades Result Dashboard – AFL code

October 24, 2014 by Rajandran 12 Comments

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.

Nifty Futures Daily Charts
Nifty Futures Dashboard

 
Here we are using equity function to generate realtime backtesting equity curve and from there we used BarIndex() feature to track back the Last Five trades Profit/Loss Results

To create your own Last Five Results Dashboard over your trading system you have to replace the sample MACD Buy/Sell/Cover/Short rules with your trading rules.

Download Last Five Trades Result Dashboard for Amibroker

Note :
1)PositonSize is set to 1 shares to get the exact profit/loss points
2)This AFL doesnt includes Slippages/Commissions and displays pure signal to signal profit/loss points
3)However you can include Slippages/Commissions in the Initial Values Section
4)Dont click on the chart this will create a vertical lines over the candlestick which will distort the values of dashboard
5)If you see such vertical lines or mistakenly clicked over the candlestick then double click over the vertical lines to remove it from the chart.

Related Readings and Observations

  • How to Plot Bid Vs Ask Dashboard in AmibrokerHow to Plot Bid Vs Ask Dashboard in Amibroker 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 […]
  • Code Snippet : ORB – Open Range Breakout Levels – Amibroker AFL Code (Better Version)Code Snippet : ORB – Open Range Breakout Levels – Amibroker AFL Code (Better Version) Open Range Breakout is a simple strategy which monitors first 5min / 15min / 15min / 30min / 60min range from the start of the market. From the opening high range and low range is […]
  • PercentRank Based Smooth ATR to Predict Change in Volatility – Amibroker AFL CodePercentRank Based Smooth ATR to Predict Change in Volatility – Amibroker AFL Code Is there a way where one can identify market regime shift from low volatility zone to high volatility zone and vice versa? How I can identify stocks with increasing volatility? Is there a […]
  • How to Get Moneycontrol News Snippets into Amiboker?How to Get Moneycontrol News Snippets into Amiboker? Getting the newsfeed directly into my favorite charting software is always been interesting to me. If you are a news-hungry trader/investor possibly you may be also thinking in the same […]
  • Code Snippet : Price with Last Trade Price Marker : AmibrokerCode Snippet : Price with Last Trade Price Marker : Amibroker Here is a simple Amibroker AFL code snippet which tracks the last trade price with a dashed horizontal line at LTP. It could be useful for the people who wants to know where the current […]
  • Trading the Previous Day High and Previous Day Low Breakout – Do Simple Strategies Really Work? [Part1]Trading the Previous Day High and Previous Day Low Breakout – Do Simple Strategies Really Work? [Part1] Do simple strategies really work in Indian Markets? This curiosity arises when one of our Amibroker Mumbai Participant comes up with a simple trading strategy. Hence the tutorial series, […]

Filed Under: Amibroker Tagged With: AFL Code, Amibroker, Dashboard, Last Five Trades

About Rajandran

Rajandran is a Full time trader and founder of Marketcalls & Co-Founder of Traderscafe, trades mostly using discretionary Trading Concepts like Market Profile, Trading sentimental analysis, building timing models, algorithmic trading models. Instructs professional traders, full time traders & aspiring full time traders. Rajandran attended college in the Chennai where he earned a BE in Electronics and Communications. Rajandran has a broad understanding of trading softwares like Amibroker, Ninjatrader, Esignal, Metastock, Motivewave, Market Analyst(Optuma),Metatrader,Tradingivew,Python and understands individual needs of traders and investors utilizing a wide range of methodologies.

Comments

  1. sayantan chakraborty says

    October 24, 2014 at 2:31 pm

    hi

    how about McGinnly MACD versions and with his same setup?
    orginal coder did not post the tested result.
    i watched alexender Elder vedio,he took force/effort index (cnt remember properly ) to filter macD with SMAs combo setup(might be). MACD itself wont work i guess.

    thx

    Reply
    • Rajandran R says

      October 24, 2014 at 9:39 pm

      HI,

      This is just a sample prototype to implement your own models to build your own trading system with last five trades dashboard. We are not talking about any sort of trading system here.

      Reply
  2. Harpinder singh says

    October 27, 2014 at 5:05 pm

    hi
    i hav jst read https://www.marketcalls.in/amibroker/last-five-trades-result-dashboard-afl-code.html
    its good but it can become superb if you code signal if consistent 3 Stoplosses occur and at that point system give buy or sell signal.
    every one have their own trading style and accordingly trading systems.
    if you can do this this will be great help.
    thanx

    Reply
  3. Veena says

    November 5, 2014 at 1:21 pm

    Hi,

    It will be of great help if you can please include the target value along with the target line on the Supertrend signals (eod and intraday). Also, please include the target values for the 15 and 60 timeframe in the multi timeframe dashboard.

    Thank you,

    Veena

    Reply
  4. VISH says

    November 6, 2014 at 8:15 am

    Thanks for the nice code!

    Reply
  5. Mudit Agarwal says

    November 19, 2014 at 11:45 pm

    Hello Rajandran,

    After checking this afl of yours, i have an idea, can you help me on this?

    Suppose if i have one minute data of two years of any one scrip in amibroker and i wish to see on my chart that what return MACD or any strategy gave in last one yr on five minute periodicity, so for that what needs to be done?

    Can it be possible?

    Put some light on this.

    Thank You,

    Mudit Agarwal

    Reply
    • Rajandran R says

      November 20, 2014 at 12:52 am

      Try this one out How to Plot the Equity Curve without Backtesting?

      Reply
  6. muruga says

    December 16, 2014 at 8:07 am

    sir
    last five signal how scan or expolaration

    Reply
  7. bharat somani says

    January 15, 2015 at 11:02 pm

    Sir i want to buy this software ambibroker ….wer to contact ..n cn u tell me price of that

    Reply
  8. uma says

    August 13, 2015 at 7:27 pm

    hi,

    i need afl for display one month or presetting date total profit\Loss on chart?

    will you help me

    thanks
    Uma,
    Coimbatore

    Reply
  9. Rahul says

    August 29, 2015 at 3:15 pm

    Hi,

    I was checking the code and found out that in last 5 trades it is only showing results for buy signals? How to fix it to also show results for short signals?

    Thanks

    Rahul

    Reply
  10. santosh padhy says

    March 9, 2017 at 1:11 am

    HI

    THIS IS WITH REGARDS TO THE LAST 5 TRADES CODES.

    I WANT THE TRADE RESULTS AND THE CORRESPONDING TIME WHEN IT HAPPENED.

    SO, COULD U PLZ ADVISE HOW AND WHAT TO ADD TO THE CODES?

    “\nTrade1= ” + PL1
    +”\n”+ “Trade2= ” + PL2
    +”\n”+ “Trade3= ” + PL3
    +”\n”+ “Trade4= ” + PL4
    +”\n”+ “Trade5= ” + PL5;

    ////////////////////////////////////////////////////////////////

    _SECTION_END();

    // Plot Candlesticks

    _SECTION_BEGIN(“Price”);
    SetChartOptions(0,chartShowArrows|chartShowDates);
    Plot( C, “Close”, ParamColor(“Color”, colorDefault ), styleNoTitle | ParamStyle(“Style”) | GetPriceStyle() );
    _SECTION_END();

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Email Newsletter

Sign up to receive email updates on latest trading strategies , analysis & financial market updates

We Respect Your Privacy

Premium Access

Username:
Password:
Remember Me
Lost your password?

Tools For Traders

  • Marketcalls Android App
  • MCX Signals
  • Intraday Signals
  • International Commodities
  • OI Tracker
  • Participation OI
  • Your Broker
  • Market Sentiment Analysis

Amibroker Updates

Code Snippet: ATM Call and ATM Put calculation from Spot Prices: Amibroker AFL

December 10, 2019 By Rajandran 2 Comments

Volatile Phases – Colorful ADX Amibroker AFL Code

November 16, 2019 By Rajandran 4 Comments

Amibroker Technical Analysis Workshop – Bangalore

November 1, 2019 By Rajandran 2 Comments

How to Send Alerts from Amibroker to Telegram Channel using Telgram API

June 12, 2019 By Rajandran 15 Comments

How to Estimate the VWAP based settlement Close like a Pro using Amibroker?

June 9, 2019 By Rajandran Leave a Comment

  • Facebook
  • Google+
  • LinkedIn
  • RSS
  • Twitter
  • YouTube

Metatrader Updates

MetaTrader 5 Demo Servers Now Available for BSE Currency Markets

March 20, 2018 By Rajandran 8 Comments

ChartIQ – WebTrader for MT4

December 4, 2017 By Rajandran 5 Comments

Metatrader 4 – Web Platform Overview

October 29, 2015 By Rajandran 9 Comments

William VIX FIX Indicator for Metatrader 4

May 16, 2015 By Rajandran 9 Comments

How to Install Custom MQL4 indicators in Metatrader

November 14, 2014 By Rajandran 7 Comments


About | Contact Us | Terms and Conditions | Privacy Policy | Support Policy | Privacy Policy | Refund Policy | Disclaimer


© Copyright 2018 Marketcalls Financial Services Pvt Ltd · All Rights Reserved · And Our Sitemap · All Logos & Trademark Belongs To Their Respective Owners·

Data and information is provided for informational purposes only, and is not intended for trading purposes. Neither marketcalls.in website nor any of its promoters shall be liable for any errors or delays in the content, or for any actions taken in reliance thereon.