Serving Traders Since 2005
|
|
|
|||||||
| MetaTrader 5 MT5 is already out of its beta stage, but the development is ongoing. Some brokers already offer real accounts and the interest of traders is growing. You can discuss anything related to MetaTrader 5 in this forum. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Hi
I am not sure why my indicator is not changing color. please help thx. MQL5 Code:
|
|
||||
|
It'd better if you could also show your #property declarations for this indicator.
I don't know why do you use PlotIndexSetInteger for color setting. I do it with #property: MQL5 Code:
Then, you color values are incorrect. MQL5 now uses 'clr' prefix for all colors.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account. |
|
||||
|
did you mean this way?
it is still not plotting the indicator in 2 colors. MQL5 Code:
|
|
||||
|
MQL5 Code:
Should be: MQL5 Code:
This line isn't needed: MQL5 Code:
OnCalculate() should return rates_total, not '1'.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account. |
|
||||
|
when I use the following line, it plots the indicator in Red only.
MQL5 Code:
When I use the following line, it does not plot it at all. MQL5 Code:
here are the relevant sections of the code: MQL5 Code:
Last edited by samjesse; 25th September 2011 at 17:55. |
|
||||
|
You set iBuf as timeseries, so that [0] is the latest bar, but you don't set iBuf_colour as timeseries, so its [0] is oldest bar on the chart. That's probably the reason.
__________________
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 |
| QQE Indicator | Enivid | MetaTrader Indicators | 0 | 20th August 2010 09:10 |
| SAR Spy [MT4 Indicator] | x1nx0nx | MetaTrader Indicators | 0 | 28th December 2009 18:10 |
| RSI Signal (Buy\Sell Indicator) - GREAT signal indicator | MechXTrader | MetaTrader Indicators | 0 | 25th September 2009 08:34 |
| MTF CCI Indicator | MechXTrader | MetaTrader Indicators | 0 | 3rd July 2009 04:35 |
| MTF RSI Indicator | MechXTrader | MetaTrader Indicators | 1 | 2nd July 2009 21:47 |