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 |
|
||||
|
Hello
I am using iStochastic in a .mqh file in a class which is being used in a .mq5 file. MQL5 Code:
It appears to only work if the plot is present. thx |
|
||||
|
That's strange... All my MT5 EAs that use indicators never add them to the plot and they work perfectly. Is copied = 0 always?
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account. |
|
||||
|
Same version but WinXP.
Where do you call CopyBuffer()? Inside OnCalculate() or OnTick()? If so, then does it return -1 on every tick? CopyBuffer() may return -1 when the chart data isn't yet ready, e.g. on the first run after the indicator/EA is attached.
__________________
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 |