Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Indicators - Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-09-2007, 06:40 PM
Junior Member
 
Join Date: Oct 2005
Posts: 22
Pervaz is on a distinguished road
Stop Repeating Arrows

Hi

I have this indicator that I am building:

int start()
{

int limit;
int counted_bars=IndicatorCounted();
if(counted_bars<0) counted_bars=0;
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;


for(int i = 0 ;i < limit ;i++)
{
arwUp[i] = 0; arwDown[i] = 0;
double MA_HIGH = iMA(Symbol(),0,20,0,MODE_WMA,PRICE_MEDIAN,i);
double MA_LOW = iMA(Symbol(),0,23,0,MODE_WMA,PRICE_MEDIAN,i);

if(Close[i] > MA_HIGH && Open[i+1]> MA_HIGH)
arwUp[i] = iLow(NULL, 0, i+1);
if( Close[i] < MA_LOW && Open[i+1]< MA_LOW)
arwDown[i] = iHigh(NULL, 0, i+1);

}
return(0);
}

The question is how do I stop the arrows from repeating on the next bar ?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-11-2007, 01:18 PM
Junior Member
 
Join Date: Oct 2005
Posts: 22
Pervaz is on a distinguished road
Anyone ?

Anyone have an idea ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change arrows fxbs Indicators - Metatrader 4 1 03-23-2007 04:12 AM
Indicator DMI - Arrows profeta Suggestions for Trading Systems 7 03-02-2007 06:10 AM
Arrows in EA? arashas Metatrader 4 4 02-04-2007 07:47 AM
How do you show buy and sell arrows on an EA rbowles Metatrader 4 1 07-31-2006 12:04 AM
Deleting arrows on chart BluePearl Questions 19 06-07-2006 05:18 PM


All times are GMT. The time now is 01:32 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.