Forum

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 data. Reading these two statements: "It's important to note

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 significantly different from the one I got before opening

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 specified order type, on the current account, in the current

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 in OnInit ..... int onCalculate(....){ //initialize

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 window as " Tick volume ". Right? - IRealVolume

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 chosen? I ask because I tried running a test on M1 and

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 ChartIndicatorAdd() for minicharts return false! In attachment

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 21:55:58.467 Experts expert Expert_1 (EUR,M15)

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

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