Forum

Indicators' PLOT_EMPTY_VALUE not working properly

I have encountered some strange behavior with initiating an indicator. Setting the PLOT_EMPTY_VALUE to 0 does not seem to work properly, with values other than 0 appearing in the data window. I have made the following indicator to test different empty value setting ways: #property description "not

Highly inconsistent results in backtesting

We run backtests with "Slow complete algorithm" for a range of inputs in " Every tick based on real ticks". In the optimization results we click a single test to run and we get totally different results. Moreover when we use other local network agents the "Slow complete algorithm" results are

Detecting if an indicator is drawing on chart

Hello, I'm trying to automatically take screenshots of charts that have Indicators on them but sometimes the indicator windows are empty. I'm guessing it is because the Expert Advisor tries to capture the image the same moment the Indicator is redrawn. For example the two screenshots below were

Issue with failed orders (Invalid price, 10015 error code)

Hello, I stumbled upon an issue during the development of an Expert Advisor and I was wondering if anyone had any idea that might help. I get an "Invalid Price" error in backtest when the Expert Advisor tries to close a position on XAUUSD on a specific broker. The error messages my Expert Advisor

Metatester 5 Agents not starting

Hello , I have problem with metatester agents. I cannot start them. The problem appeared after updating to Windows 10 Pro Insider Preview. Evaluation copy. Build 15007.rs_prelelease.170107-1846 I followed the above steps in order to solve the issue but the did not work. 1) I have reinstalled

How to set Order Filling Type?

I'm working on an Expert Advisor which sets the filling type on orders according to broker's available types. I'm using CTrade class for opening positions. CTrade myTrade; bool IsFillingTypeAllowed( string symbol, int fill_type) { int filling=( int ) SymbolInfoInteger (symbol, SYMBOL_FILLING_MODE

How to edit product info

Hello, we want to upload a new version of our published products . How could we rewrite again the description, update the logo image and upload new screenshots? Kind regards, COSMOS4U

Metatrader 5 Timeframe Change BUG??

According to the video there is a BUG on Metatrader 5 . Usually the BUG occurs on higher than H1 timeframes. After switching between them sometimes the bug is being fixed

BUG? ObjectsDeleteAll - wrong parameters count

Hello MQL5 community, According to the ObjectsDeleteAll int ObjectsDeleteAll ( long chart_id, // chart ID const string prefix, // prefix in object name int sub_window=- 1 , // window index int object_type=- 1 // object type ); when I can give a command