Serving Traders Since 2005
|
|
|
|||||||
| MetaTrader Indicators Post and discuss the MetaTrader indicators here. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
I would like Insert inside of the indicator the value of CCI like the example.
I am interested above all the procedure for viewing... for the values we ca n't. Thanks for help. Example : http://clip2net.com/clip/m19204/1262...-clip-25kb.png |
|
||||
|
Quote:
|
|
||||
|
Quote:
ObjectCreate(0, "myobject_name", OBJ_LABEL, 1, 0, 0); This expression should create the object in the indicator window, but this feature is not working (yet). |
|
||||
|
Quote:
double a = Close[0]; to assign the close value of the latest candle (the first if it's not set as tiemseries) to variable "a". |
|
||||
|
Someone helps me with this simple indicator?
Arrow Green when MA1>MA2 Arrow Red when MA1<MA2 MQL5 Code:
thanks to all |
|
||||
|
1. With iMA() function you get only indicator handle, not the buffer. You should copy the buffer to get the actual vales:
MQL5 Code:
Do this inside your OnCalculate() handler. 2. Then you need compare the buffer values rather than handles when determining the arrow. You also need to give your arrow buffers the actual values rather than just stating them: MQL5 Code:
3. When you have this working you may want to modify this code to draw arrows only on MA cross, not on all bars, but I don't know if that's relevant for you.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account. |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Murrey Math Line X | Enivid | MetaTrader Indicators | 10 | 29th May 2011 10:34 |
| Automatic Trend Line Alerts for MetaTrader 4 | AutoTrader | MetaTrader Expert Advisors | 0 | 19th September 2009 15:34 |
| Trend Line Indicator for MetaTrader 4 | TrendLineTrader | MetaTrader Indicators | 0 | 11th September 2009 10:02 |
| Gold Double Top | SwingTrdr | Technical Analysis | 0 | 7th September 2009 06:21 |
| Weekly Unemployment Claims In Line | mercaforex | Fundamental Analysis | 0 | 23rd July 2009 11:00 |