QT
Stroot_Zhang
这个作者很懒,什么都没留下…
展开
-
[MQL5] Modules of Trade Signals
在有多个信号的情况下,最终的信号值SfinalS_{final}使用如下公式计算:Sfinal=∑Ni=1Si∗WiN S_{final}=\frac{\sum_{i=1}^N S_i*W_i}{N} SiS_i:第ii个信号输出的信号值。对于多头信号(Long Position),SiS_i为正值;对于空头信号(Short Position),SiS_i为负值。 WiW_i:第ii个信号的权重。原创 2015-11-06 20:04:13 · 607 阅读 · 0 评论 -
Mingw GCC pack Struct.
U need wrap the code with #pragma pack(push,x) ... #pragma pack(pop)Such as:#pragma pack(push,1) struct S { ... }; #pragma pack(pop)ref: 1. https://forum.qt.io/topic/34592/cannot-run-app-in-windows-bu原创 2016-01-06 01:10:56 · 561 阅读 · 0 评论 -
Convert int/long to hex string.
We can do this by the setNum function of QString.int decimal = 10000; QString hexadecimal; hexadecimal.setNum(decimal,16);ref: 1. https://forum.qt.io/topic/28890/convert-from-int-to-hex/4原创 2016-01-06 01:13:19 · 801 阅读 · 0 评论