antony23
antony23
Friends 1
antony23
Added topic CopyTicks in indicator
According to docs, "when called from an indicator, CopyTick() immediately returns all available ticks of a symbol, and will launch synchronization of the tick database, if available data is not enough."  My question is, how can i check data is
antony23
Added topic Is "while(!IsStopped())" expected to work on Indicators?
Hi, the code "while(!IsStopped())" is not working on my Indicator.  I have a code like this:        while (! IsStopped ()){          copied = CopyTicks ( _Symbol , ticks
antony23
Added topic Tester ticks question
Hi, i would know if in Tester, when using " Every ticks based on real ticks" mode, the EA and its indicators (called using iCustom) are processed for each tick without escaping some ticks as happen in live charts. Maybe i need to add property
antony23
Added topic Randomically prev_calculated set to 0 by terminal
Hi,  i know that terminal could set prev_caclulated=0 when " If the price data have been changed since the last call of the OnCalculate() function (a deeper history has been loaded or gaps in the history have been filled), the value of the 
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
12