sqx136.dev2.mt5 indictors error:avgVolume

please see img



It should be volume,but not tick_volume


the files from sqx 136.1197

Attachments
avg1.png
(51.08 KiB)
avg2.png
(45.47 KiB)
  • Votes +2
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

h
#1

hruyak41287

12.07.2022 16:11

Task created

E
#2

Emmanuel

13.07.2022 14:11
Voted for this task.
h
#3

hruyak41287

29.07.2022 13:46
Voted for this task.
g
#4

Lee Guan Chuan

25.08.2022 09:35

Status changed from New to Fixed

g
#5

Lee Guan Chuan

25.08.2022 09:40
I have compared the MT4 and MT5. 


In MT4, it uses Volume[i]. In MT5, it doesn't have the Volume variable anymore.


I compared the iVolume in MT4 and MT5, the iVolume in MT4 is similar to Volume[i]. However, iVolume in MT5 gives very different results.

The tick_volume gives the same result (chart pattern) compared to MT4. However, the volume in MT5 is empty. I couldn't say that volume is always empty. Therefore I updated the code to 

volume[i] ? volume[i] : tick_volume[i]

If there is volume, we will use volume else we will use tick_volume. I cannot change to just volume because brokers I tested have empty values for volume.


Votes: +2

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please