| New signals service! | |
|
|||||||
| 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 |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |