antony23
antony23
Friends 1
antony23
Added topic Same Indicator Handle value for different indicators on same chart. Bug?
Hi, should not an indicator handle value be unique for each Indicator on the same chart ? I have this scenario: - EA create indi A using iCustom in onInit, and add A to chart using  ChartIndicatorAdd (0,0,A) - indi A, in its onInit, create indi
antony23
Added topic ArrayCopy on same array: data corruption?
 Hi, I read that using ArrayCopy on the same array could cause data corruption when the initial source index is lower than the target index, due to the left-to-right copy. I tried, but no data corruption was detected. Can I be sure this won't
antony23
Added topic OnCalculate code not working in Strategy Tester
Hi, this is an example code that is working correctly in terminal, but it is not working in stratey tester. It give me error 4004 on CopyTicks call, but if i code it whitout "while" it is working correctly. Can someone explain me the reason, please
antony23
Added topic OrderSend and Trade Server return Code
Hi, i readed  this  book's reference page, and now i'm really confused. It's clear that OrderSendAsync doesn't get any in the result but "request id", but it seems that with OrderSend we cannot have guarantee on what we can get on result
antony23
Added topic Slippage in Market Execution Mode
In market execution mode, we can't specify an opening price and a maximum deviation, but the broker sets the openprice for the trade. This raises two questions for me: 1. Cannot we set a limit to slippage? Could the broker set an open price
antony23
Added topic Margin check: OrderCalcMargin vs OrderCheck
Hi,  reading documentation it seems (maybe i'm wrong) there is no EXACT way to know, before a trade is open, how much margin the trade will take.  Reading OrderCalcMargin , doc specify: The function calculates the margin required for the
antony23
Added topic Synch CopyBuffer in EA using iCustom
Hi, i have a doubt about reliability of data obtained via CopyBuffer in EA.  Considering this example. Let's assume we have a custom indicator where each tick in onCalculate sets 3 buffer: double A[]; double B[]; double C[]; ..... //set buffers
antony23
Added topic IVolume vs iTickVolume ve iRealVolume
Hi, I'm a little confused about what exactly these functions return. If I understand correctly: - iTickVolume returns the count of ticks used to build a bar. It is also passed by onCalculate with the "tick_volume" array. It's also shown in the data
antony23
Added topic Tester: modelling and TF
Hi, i would know if there is any correlation in Tester about "modelling" option and timeframe option. That is, can I be sure that if I choose the " real tick based on real ticks " modelling, I will get the same ticks regardless of the timeframe
antony23
Added topic BUG using minichart
Hi, i found a bug using minichart objects.  If we create a minichart object in a chart with NO focus, ChartSymbol() and ChartPeriod() of minichart return wrong values. I need to focus the chart to get right values . Due to this bug, using
antony23
Added topic Why charts get closed/removed at shutdoown/restart?
Hi, sometimes it happens that some charts get automatically closed/removed at shutdoown/restart? Is there any reason for this? Also, these closed charts are not available in "Open deleted" list... This is log of what happened in journal: 2020.10.09
antony23
Added topic OnDeinit Asynchronous ?
Hi, using indicators i noted a weird stuff: when i switch period, the OnInit of new period is called before OnDeinit of prev period...  How it is possible? Is OnDeinit call asynchronous
antony23
Added topic Chart close event?
Hi, I need to execute some stuff only just before a chart is manually closed.  What is the right approach to code this?  Thanks 
antony23
Added topic Changing order in "Charts Bar" via mql5: is it possible?
Hi, i would change order ( sequence ) of the chart labels in Charts Bar via code, would it be possible in some way? I don't find anything in the docs for such thing. Thanks
antony23
Added topic Timeframes toolbar on undocked charts
Hi, do you know if it possible add the timeframes quick buttons toolbar on undocked charts? Thanks
antony23
Added topic MT5 Bug in ChartIndicatorGet()
Hi,  i have an indicator where i try to get the handle of an other indicator (inside the same chart) using ChartIndicatorGet(), but moving trough TF, indicator init and deinit stop working! And all became a lot slowly! Shoudn't simply give
antony23
Added topic MT5 BUG with iBarShift?
Hi, i really cannot understand why iBarShift is not working good in my code, it really seems an MT5 bug. Here the code, very simple:  Print ("Symbols "+ _Symbol +" - period: "+ EnumToString ( _Period )+" - Bars : "+ iBars ( _Symbol , _Period ));
antony23
Added topic CList instance and "delete"
Hi, i would just question if in these code: CList *list= new CList();   list.Add( new MyClass()); list.Add( new MyClass()); list.Add( new MyClass()); delete list; the last command "delete" will also free memory pointed by MyClass instances
antony23
Added topic Executing code when chart is closed
Hi, is there an event handler or a something other to allow me exceuding some code when a chart is closed? Thanks
antony23
Added topic Save current profile's charts to DISK via MQL
Hi,  i know MT5 save current profile 's charts to disk when it is closed, or we can do it manually File->Profiles->Save. Is there a way to do it via MQL? I would write a code to save the charts each XX seconds to prevent losing its data if
12