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 / AFL Code / Modified 5 EMA High-Low AFL code

Modified 5 EMA High-Low AFL code

July 22, 2011 by Rajandran 12 Comments

I had recieved many complaints from few of the Amibroker users that the 5 EMA High-Low AFL code is not working. So had done some correction and few modifications in the code.

 
Nothing much modification but the old code contains continuous & Excessive Buy or Sell signal on the charts that has been removed in the newer version just buy adding the EXREM funtion and the buy are sell condition remains the same i.e buy above on close above 5 EMA high and sell below 5 EMA low. And an Interactive Dashboard which tracks the 5EMA High-Low values in the dashboard.

Preferred timeframe
Mostly suitable to work at higher timeframes like Daily, Monthly, Weekly

Buy = Cross(C,EMA( High , 5 ));
Sell = Cross(EMA( Low , 5 ),Close);

Buy = ExRem( Buy, Sell );
Sell = ExRem( Sell, Buy );

Nifty 5 EMA High-Low Weekly Charts
Modified 5EMA High - Low Dashbord

Nifty Weekly charts are shown with 5EMA High-Low buy or sell signals. Currently Nifty is in buy mode on long term(Weekly time frame) with 5 EMA low supports near 5495 zone. Any close below that could warn a downtrend on longterm.

5EMA High-Low AFL with Dashboard Style

5EMA High Low AFL

Powergrid and IDEA – Two stocks to watch for Very Long Term

Powergrid and IDEA monthly 5EMA high-low charts has been shown. Both the charts produces a buy signal last month. Powergrid longterm trend had changed to buy mode almost 12 months later and 5 months for IDEA. Currently both IDEA and Powergrid are trading above 5EMA high zone and 5EMA montly low zone could be the trailing long term supports Rs 67 and Rs 100 respectively. Long term investors can concentrate on these stocks for better investment.

Powergrid Monthly chart

IDEA Monthly chart

Related Readings and Observations

  • Nifty Nakshatra Trading System AFL code for Shorter timeframe TradersNifty Nakshatra Trading System AFL code for Shorter timeframe Traders Nakshatra Trading system is for shorter timeframe traders especially for those who loves nifty. The AFL code gives Buy or Sell signal for lower timeframes with stop loss and target. Chart […]
  • The Foundation by Southwind v-13.00 Int AFL CodeThe Foundation by Southwind v-13.00 Int AFL Code Here is an interesting and colourful AFL code. When i explored the AFL code it contains the Heiken Ashi candle and as usual ATR trailing stop loss line along with the Heiken Ashi candle. […]
  • 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 […]

Filed Under: AFL Code, Amibroker Tagged With: 5 EMA, 5 EMA High-Low, AFL Code, Amibroker, Nifty

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. kalyan says

    July 25, 2011 at 7:55 pm

    glad to see u back in action in afl coding

    Reply
  2. BestTrader says

    July 26, 2011 at 1:02 pm

    good one regarding afl code

    Reply
  3. manan jhaveri says

    November 1, 2011 at 2:21 pm

    do you provide us candle graph chart with different EMA (3,13,34) for intraday tradeing.if is it possible then send detail site address, so we can study in detail. We are searching for same to evaluate the trend of further movement of a market of a particular of a company. Waiting your reply, till time thanking you.

    your’s

    MANAN JHAVERI -- MUMBAI -- INDIA

    Reply
    • Rajandran R says

      November 2, 2011 at 6:27 pm

      @Manan Jhaveri

      You can check out NSETracker for intraday realtime charts for nifty with parameters 13,34,55 EMA we had stopped using
      3min EMA as 3min EMA can be roughly taken as the candle itself

      Reply
  4. gopiraj says

    November 3, 2011 at 10:23 am

    sir ur broco live update which site sir pay chart i want sir. then sir indicator i see zigzag indicator so i want buy sell indicator u creat and give me sir when ever zigzag come next candle buy sell indicator creat me sir how much cost u tell sir . sir see 30minites 60 minites timeframe see sir

    Reply
  5. gopiraj says

    November 3, 2011 at 10:29 am

    thank and see mail give me mail sir what i telling u no sir 30 minites 60 minities u see zigzag come then buy sell signal u creat sir u r thise filed u r graet sir see then u give my mail sir.

    Reply
  6. Anirudh says

    January 11, 2012 at 7:16 pm

    Do you have Backtest Report for the System?
    Whats is the Success Rate and Max Drwadown?

    Reply
  7. ShriGanesh says

    March 2, 2012 at 6:42 pm

    Hi,
    I am trying to plot 2 EMAs using AFL, one is from 5 min and other is from 60 min.
    I don’t think Amibroker is plotting MA from 60 Timeframe properly, it shows up as a step where as I was expecting it to be a smoothish one, Here is the code and the result is shown in the image.
    Am I missing something here? Can you please help?
    Look forward to your response and help.
    thanks a ton in advance.

    CODE
    TimeFrameSet( in5Minute ); // switch to 5 minute frame

    /* MA now operates on 5 minute data, ma5_13 holds time-compressed 13 bar MA of 5min bars */

    ma5_13 = MA( C, 13 );

    TimeFrameRestore(); // restore time frame to original

    TimeFrameSet( inHourly ); // switch now to hourly

    mah_9 = EMA( C, 9 ); // 9 bar moving average from hourly data

    TimeFrameRestore(); // restore time frame to original

    // plot expanded average

    Plot( TimeFrameExpand( ma5_13, in5Minute), “13 bar moving average from 5 min bars”, colorRed );

    Plot( TimeFrameExpand( mah_9, inHourly), “9 bar moving average from hourly bars”, colorBlue );

    Reply
  8. ShriGajanan says

    March 2, 2012 at 6:52 pm

    Please see the AFL code below and attached image, i was expecting the MA from 60 min TF to be smoothened just like other EMA is there anything wrong in the code? Please help.

    TimeFrameSet( in5Minute ); // switch to 5 minute frame

    /* MA now operates on 5 minute data, ma5_13 holds time-compressed 13 bar MA of 5min bars */

    ma5_13 = MA( C, 13 );

    TimeFrameRestore(); // restore time frame to original

    TimeFrameSet( inHourly ); // switch now to hourly

    mah_9 = EMA( C, 9 ); // 9 bar moving average from hourly data

    TimeFrameRestore(); // restore time frame to original

    // plot expanded average

    Plot( TimeFrameExpand( ma5_13, in5Minute), “13 bar moving average from 5 min bars”, colorRed );

    Plot( TimeFrameExpand( mah_9, inHourly), “9 bar moving average from hourly bars”, colorBlue );

    Reply
  9. simi says

    August 27, 2014 at 12:52 pm

    Sir, thanks for ur 5ema high alert afl. please help me to get pop up window . so that we will get pop up alert with stock name in different time frame

    Reply
  10. john says

    September 6, 2014 at 8:23 pm

    Is it possible to draw horizontal lines on the high and low values of of previous days 30 ema.

    Reply
    • Rajandran R says

      September 7, 2014 at 10:15 pm

      Yes it is possible. Let me know in little details how you would like to plot those lines automatically or manually?

      Reply

Leave a Reply to ShriGajanan 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

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

Practical Approach to Amibroker AFL Coding

May 23, 2019 By Rajandran 37 Comments

  • 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.