Traderji.com


Help Required - Gann Hi Low Indicator

Discuss Help Required - Gann Hi Low Indicator at the MetaTrader within the Traderji.com; Hi, Please can you help me add buy sell signal to the Gann Hi Low ...


Go Back   Traderji.com > TOOLS & RESOURCES > Software > MetaTrader



Reply
 
Thread Tools
  #1  
Old 12th February 2016, 10:47 AM
Member
 
Join Date: Feb 2009
Posts: 22
Thanks: 14
Thanked 2 Times in 2 Posts
pnaphade is on a distinguished road
Default Help Required - Gann Hi Low Indicator

Hi,

Please can you help me add buy sell signal to the Gann Hi Low Indicatore. the only condition is the signal should come once the candle is closed.

Thanks in advance.

Warm Regards,
Pankaj

Formula -

//+------------------------------------------------------------------+
//| SSL.mq4 |
//| Kalenzo |
//| bartlomiej.gorski@gmail.com |
//+------------------------------------------------------------------+
#property copyright "Kalenzo"
#property link "bartlomiej.gorski@gmail.com"
//----
#property indicator_buffers 1
#property indicator_color1 Blue
extern int Lb=10;
double ssl[],Hld,Hlv;
#property indicator_chart_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexBuffer(0,ssl);
SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,2);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
//----
for(int i=Bars-Lb;i>=0;i--)
{
if(Close[i]>iMA(Symbol(),0,Lb,0,MODE_SMA,PRICE_HIGH,i+1))
Hld=1;
else
{
if(Close[i]<iMA(Symbol(),0,Lb,0,MODE_SMA,PRICE_LOW,i+1))
Hld=-1;
else
Hld=0;
}
if(Hld!=0)
Hlv=Hld;
if(Hlv==-1)
ssl[i]=iMA(Symbol(),0,Lb,0,MODE_SMA,PRICE_HIGH,i+1);
else
ssl[i]=iMA(Symbol(),0,Lb,0,MODE_SMA,PRICE_LOW,i+1);
}
//----
return(0);
}
//+------------------------------------------------------------------+
Reply With Quote

Looking for a share broker?

Name:Phone:
Email:City:
State:
Are you a day trader?
Reply

Bookmarks


Advertise Here

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads for: Help Required - Gann Hi Low Indicator
Thread Thread Starter Forum Replies Last Post
Change of direction indicator in Gann Tech rbaiga2020 Equities 8 25th August 2013 09:51 AM
required afl for this mt4 indicator Shailu AmiBroker 2 22nd August 2013 11:11 PM
can any body help for gann sq9 mt4 indicator plssssssssss ss16021981 Derivatives 2 28th October 2012 12:21 PM
Gann Swing indicator Mandar Datye Technical Analysis 1 20th September 2010 06:57 PM
AFL required for an indicator in BSE charting. mohan.sic AmiBroker 0 25th June 2010 10:54 PM


All times are GMT +5.5. The time now is 05:49 AM.

Indemnity, Disclaimer & Disclosure Notice:
* By visiting Traderji.com you automatically indicate that you agree to our Forum Rules, Indemnity, Disclaimer & Disclosure Notice and General Content Disclaimer Notice and indemnify Traderji.com, its associates and related parties of all claims howsoever resulting from the usage of the forum/site.
* Disclaimer: Trading or investing in stocks & commodities is a high risk activity. Any action you choose to take in the markets is totally your own responsibility. You are recommended to make appropriate enquiries and seek appropriate advise before sending money, incurring any expenses, acting on recommendations or entering into any commitment in relation to any advertisement published here. Traderji.com does not vouch for any claims made by the advertisers of products and services. Traderji.com will not be held liable for any consequences in the event such claims are not honoured by the advertisers. Traderji.com will not be liable for any, direct or indirect, consequential or incidental damages or loss arising out of the use of any information by anybody mentioned anywhere on this site.
* Disclosure: The information in this forum is neither an offer to sell nor solicitation to buy any of the securities mentioned herein. The writers may or may not be trading in the securities mentioned.
* All names or products mentioned are trademarks or registered trademarks of their respective owners.
General Content Disclaimer Notice:
In light of our policy of encouraging candid, open exchanges of views and the rapid distribution of information originating from many sources, Traderji.com cannot determine the accuracy or legality of any information that may be uploaded to the forum. Opinions, advice and all other information expressed by participants in discussions are those of the author. You rely on such information at your own risk. You are urged to seek professional advice for specific, individual situations and not rely solely on advice or opinions given in the discussions. Since Traderji.com is an open and free discussion forum, any comments made by members of this forum in their posts reflect their own views and not of the owner or administrator of Traderji.com. Thus the owner/administrator indemnify themselves of all claims whatsoever and will not be liable or responsible for any members comments/views in this forum Traderji.com. Although we constantly delete all irrelevant content and/or SPAM, if you should find any objectionable or offensive posts made by members of this forum which you would like to bring to our notice for removal then please Contact Us.
 


Our Partner Websites: www.chittorgarh.com, IPO Investment Portal | www.topsharebrokers.com, Broker Comparision
Copyright © www.Traderji.com 2001 - , All rights reserved.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70