rera7:
now i need to add two more different arrows
if High[i+5]>High[i] it should show red square at High[i]+.0002
:-
Play videoPlease edit your post.
For large amounts of code, attach it.
if(High[i+1]>High[i] ) ExtMapBuffer1[i]=High[i]; else ExtMapBuffer1[i]=EMPTY_VALUE;
Where is your code that does that? learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
i got this simple arrow indicator from this same forum
if High[i+1]>High[i] it shows red arrow at High[i]
if(Low[i+1]>Low[i]) it shows green arrow at Low[i]
now i need to add two more different arrows
if High[i+5]>High[i] it should show red square at High[i]+.0002
if(Low[i+5]>Low[i]) it should show green square at Low[i]+.0002
i am new to MQL. by guessing ...i tried adding two more indicators in code but it is not working
i know it simple but i am clueless since two weeks.anybody please include above two arrow symbols ...
so that i can learn and add as many as arrows if i need..please help me ! thanks.
//+------------------------------------------------------------------+ //| Indicator.mq4 | //| GGekko | //| | //+------------------------------------------------------------------+ #property copyright "GGekko" #property link "" #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Red #property indicator_color2 Lime #property indicator_width1 1 #property indicator_width2 1 //---- buffers double ExtMapBuffer1[]; double ExtMapBuffer2[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators SetIndexStyle(0,DRAW_ARROW); SetIndexArrow(0,217); SetIndexBuffer(0,ExtMapBuffer1); SetIndexEmptyValue(0,EMPTY_VALUE); SetIndexStyle(1,DRAW_ARROW); SetIndexArrow(1,218); SetIndexBuffer(1,ExtMapBuffer2); SetIndexEmptyValue(1,EMPTY_VALUE); //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int limit; int counted_bars=IndicatorCounted(); //---- last counted bar will be recounted if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(int i=0; i<limit; i++) { if(High[i+1]>High[i] ) ExtMapBuffer1[i]=High[i]; else ExtMapBuffer1[i]=EMPTY_VALUE; } for(i=0; i<limit; i++) { if(Low[i+1]>Low[i]) ExtMapBuffer2[i]=Low[i]; else ExtMapBuffer2[i]=EMPTY_VALUE; } //---- done return(0); } //+------------------------------------------------------------------+