Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

muthubai

I NEED THIS INDICATER MT4 T0 AFL COAD BASIS CONVERT

Recommended Posts

//+------------------------------------------------------------------+
//|                                         Chande_Kroll_Stop_v1.mq4 |
//|                                  Copyright © 2006, Forex-TSD.com |
//|                         Written by IgorAD,igorad2003@yahoo.co.uk |   
//|            http://finance.groups.yahoo.com/group/TrendLaboratory |                                      
//+------------------------------------------------------------------+
#property copyright "Copyright © 2006, Forex-TSD.com "
#property link      "http://www.forex-tsd.com/"
//----
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 Lime
//---- input parameters
extern int    Length    =80;
extern int    ATRPeriod =10;
extern double Kv        =3;
//---- indicator buffers
double UpTrend[];
double DnTrend[];
double smin[];
double smax[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
  int init()
  {
   string short_name;
//---- indicator line
   SetIndexStyle(0,DRAW_LINE);
   SetIndexStyle(1,DRAW_LINE);
   IndicatorBuffers(4);
   SetIndexBuffer(0,UpTrend);
   SetIndexBuffer(1,DnTrend);
   SetIndexBuffer(2,smin);
   SetIndexBuffer(3,smax);
//---- name for DataWindow and indicator subwindow label
   short_name="Chande Kroll Stop("+Length+","+ATRPeriod+","+Kv+")";
   IndicatorShortName(short_name);
   SetIndexLabel(0,"UpTrend");
   SetIndexLabel(1,"DnTrend");
//----
   SetIndexDrawBegin(0,Length);
   SetIndexDrawBegin(1,Length);
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Chande_Kroll_Stop_v1                                             |
//+------------------------------------------------------------------+
int start()
  {
   int shift,limit, counted_bars=IndicatorCounted();
//----
   if(counted_bars > 0) limit=Bars-counted_bars;
   if(counted_bars < 0) return(0);
   if(counted_bars ==0) limit=Bars-Length-1;
//----
   for(shift=limit;shift>=0;shift--)
     {
      smin[shift]=High[Highest(NULL,0,MODE_HIGH,ATRPeriod,shift)] - Kv*iATR(NULL,0,ATRPeriod,shift);
      smax[shift]=Low [Lowest (NULL,0,MODE_LOW ,ATRPeriod,shift)] + Kv*iATR(NULL,0,ATRPeriod,shift);
      //
      UpTrend[shift]=-10000000;
      DnTrend[shift]= 10000000;
//----
      for(int i=Length-1;i>=0;i--)
        {
         UpTrend[shift]=MathMax( UpTrend[shift], smin[shift+i]);
         DnTrend[shift]=MathMin( DnTrend[shift], smax[shift+i]);
        }
     }
   return(0);
  }
//+------------------------------------------------------------------+

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Topics

  • Posts

    • $SBUX (SBUX) Starbucks stock nice bounce off 69.71 support with a top of range breakout watch,analysis https://stockconsultant.com/?SBUX
    • Hello, I want to share my personal experience in trading since I started last year with a very little knowledge, I trade mainly on crypto trading platforms as I am very interested in the philosophy behind btc and open source blockchain. With time I got interested to try to trade and started to try to, I bought, waited a little bit sold for little gain, bought again BUT i didn't know about simple instruments and advanced order types. So basically my first trades were at a loss.  After I gained a little bit more knowledge I learned about leverage when I started trading on Bitmex and later on Primexbt, boy it was more exiting but this was the time when emotions during trading took over me and made a loss, got liquidated few times because I didn't know how to properly use my stop loss or completely forgot about it. Lately I am much better but this comes after making mistakes for almost one year. Have in mind that i didn't had much time to focus on this because I was working other job all day.  So in conclusion my first trades in the first few months were utterly failures. I can say that this happens because of lack of education or prior experience, but at the moment I am happy as thanks to this I learned about market cycles/trends, leverage trading, stop-loss, advance order types like OCO etc..., learned what correlates and what does not. Learned about rising and falling wedges etc... All comes down to one thing: education and experience. But yes first comes loses and knowledge, later some profits
    • $MRK (MRK) Merck stock narrow range breakout watch above 82.52,analysis https://stockconsultant.com/?MRK
    • Date : 20th March 2019. MACRO EVENTS & NEWS OF 20th March 2019.FX News Today Fed day today – will they be as dovish as the markets seem to think? No change on the rates is expected but their musings on the future path of monetary policy, both conventional as well as with regards to its balance sheet position will be key for the USD and bond yields. Ahead of today’s awaited Fed announcement the Asian session also experienced some profit taking as markets expected a dovish turn. In the Asian session stocks traded narrowly mixed, with Chinese markets underperforming amid reports that China is pushing back against some of the US demands in trade talks. Overall though traders see signs of eagerness to come to a deal among Chinese officials ahead of further trade talks as US Trade Representative Robert Lighthizer and Treasury Secretary Steven Mnuchin are set to travel to China next week. Topix and Nikkei managed to close with gains of 0.26% and 0.20% respectively. The ASX, however, was down -0.31% at the close and Hang Seng and mainland China bourses are also in the red. US futures are little changed and the front end WTI future is trading at USD 58.97 per barrel. Charts of the DayTechnician’s Corner EURUSD traded mostly above the 1.1345 Resistance level, even though very close to it, in anticipation of the Fed meeting. Indicators are showing signs of consolidation. GBPUSD is moving in a similar way as the EURUSD consolidating in the upper 1.32 area, for the 5th consecutive day, moving on a sideways channel, still below end-February highs. MACD and Stochastics support consolidation. USDJPY moved slightly up on the leading indicator announcement, which showed worse than expected performance compared to the previous month. After etching to 111.60, the pair declined slightly, a move supported by both MACD and Stochastics. XAUUSD is still above the $1300 mark, while some downwards momentum exists despite indicators pointing upwards. The Fed decision is expected to have a strong effect on Gold. Main Macro Events Today Retail, Producer, and Consumer Price Indices (GBP, GMT 09:30) – Both the CPI and the RPI are expected to have registered the same growth as January, showing 2.5% y/y and 1.9% y/y respectively. The PPI is expected to have grown by 4.3% y/y compared to 2.9% y/y last month. Fed Interest Rate Decision (USD, GMT 18:00) – The eagerly awaited Fed decision is expected to shed light as to whether the 2 rate hike policy is to be continued or whether one rate hike is to be expected. Furthermore, comments on its potential balance sheet actions could also affect the markets. Gross Domestic Product (NZD, GMT 21:45) – New Zealand GDP is expected to have grown by 2.5% y/y in 2018Q4, compared to 2.6% in 2018Q3. Support and Resistance Always trade with strict risk management. Your capital is the single most important aspect of your trading business.Please note that times displayed based on local time zone and are from time of writing this report.Click HERE to access the full HotForex Economic calendar.Want to learn to trade and analyse the markets? Join our webinars and get analysis and trading ideas combined with better understanding on how markets work. Click HERE to register for FREE!Click HERE to READ more Market news. Dr Nektarios Michail Market Analyst HotForex Disclaimer: This material is provided as a general marketing communication for information purposes only and does not constitute an independent investment research. Nothing in this communication contains, or should be considered as containing, an investment advice or an investment recommendation or a solicitation for the purpose of buying or selling of any financial instrument. All information provided is gathered from reputable sources and any information containing an indication of past performance is not a guarantee or reliable indicator of future performance. Users acknowledge that any investment in FX and CFDs products is characterized by a certain degree of uncertainty and that any investment of this nature involves a high level of risk for which the users are solely responsible and liable. We assume no liability for any loss arising from any investment made based on the information provided in this communication. This communication must not be reproduced or further distributed without our prior written permission.
    • Ethereum Price Prediction Today: Daily (ETH) Value Forecast – March 20 ETH/USD Medium-term Trend: Ranging ·         Resistance Levels: $240, $250, $260 ·         Support Levels: $140, $130, $120 Yesterday, March 19, the price of Ethereum was in a sideways trend. The crypto’s price was ranging above the $136 price level. Today, the bears broke the 12-day EMA and the 26-day EMA but the bulls’ pullback to continue the range bound movement. On the upside, if the bulls break above the EMAs and the price is sustained, the crypto’s price will face the $140 resistance level. On the downside, if the price continues its fall, the crypto’s price will find support at the $130 price level. Meanwhile, the MACD line and the signal line are above the zero line which indicates a buy signal. The ETH price is below the EMAs which indicate that price is in the bearish trend zone. ETH/USD Short-term Trend: Bearish On the 1-hour chart, the crypto's price is in a bearish trend zone. The price of Ethereum has been ranging above the $136 price level in the last 48 hours. Yesterday, the bears broke the EMAs to the low at $136.54 but the bulls made another attempt to break the EMAs. Meanwhile, the MACD line and the signal line are below the zero line which indicates a sell signal. Also, the crypto’s price is below the 12-day EMA and the 26-day EMA which indicates that price is in the bearish trend zone.   The views and opinions expressed here do not reflect that of BitcoinExchangeGuide.com and do not constitute financial advice. Always do your own research.                                                                            Top of Form                             Source: www.bitcoinexchangeguide.com
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.