//--- main cyclefor(i=pos; i<rates_total && !IsStopped(); i++)
{
//--- middle line
ExtMovingBuffer[i]=SimpleMA(i,InpBandsPeriod,close);
//--- calculate and write down StdDev
ExtStdDevBuffer[i]=StdDev_Func(i,close,ExtMovingBuffer,InpBandsPeriod);
//--- upper line
ExtUpperBuffer[i]=ExtMovingBuffer[i]+InpBandsDeviations*ExtStdDevBuffer[i];
//--- lower line
ExtLowerBuffer[i]=ExtMovingBuffer[i]-InpBandsDeviations*ExtStdDevBuffer[i];
//---
}
图书馆。
测试脚本中的例子。
谢谢你,瓦迪姆 :)我明白这个方向,我想在MQL4中实现它,不需要dll。
谢谢你,瓦迪姆 :)我明白这个方向,我想在MQL4中实现它,不需要dll。
double bb_up0=iBands(NULL,0,bb_p,bb_dev,0, bb_ap,MODE_UPPER,0)。
double bb_lo0=iBands(NULL,0,bb_p,bb_dev,0, bb_ap,MODE_LOWER,0)。
//--- 先生们,布林线 中线,下面,这些都是正确的选择,还是有错误的选择?在MT5中,中间线的问题已经解决了,在MT4中我还没有看到。
如果你用Alert脚本检查,结果是一样的,但还是?
double bb_bs0= (bb_up0+ bb_lo0)/2。
double bb_bs0= iMA(NULL,0,bb_p, 0,0,bb_ap, 0)。
double bb_bs0= iBands(NULL,0,bb_p,bb_dev,0, bb_ap,MODE_MAIN, 0);
double bb_bs0= iBands(NULL,0,bb_p,bb_dev,0, bb_ap,0, 0);
不会的。
是的,我已经意识到,如果没有dll,它就无法工作。
double bb_up0=iBands(NULL,0,bb_p,bb_dev,0, bb_ap,MODE_UPPER,0)。
double bb_lo0=iBands(NULL,0,bb_p,bb_dev,0, bb_ap,MODE_LOWER,0)。
//------ 先生们,布林线均线,下面,这些都是正确的选择,还是有错误的选择?MT5已经解决了中间线的问题,我在MT4中还没有看到。
如果你用Alert脚本检查,结果是一样的,但还是?
double bb_bs0= (bb_up0+ bb_lo0)/2。
double bb_bs0= iMA(NULL,0,bb_p, 0,0,bb_ap, 0)。
double bb_bs0= iBands(NULL,0,bb_p,bb_dev,0, bb_ap,MODE_MAIN, 0);
double bb_bs0= iBands(NULL,0,bb_p,bb_dev,0, bb_ap,0, 0);
这里是BB建设的主要周期。
下面是一个简单的MA的计算。
正如你所看到的,中心线是一个简单的收盘价MA。其余的都是以它为基础。因此,请得出你自己的结论。
SZZ.作为你进一步工作的小册子。
你设置的平均值如下:double bb_bs0 = (bb_up0+ bb_lo0)/2;
但最好这样计算: 双bb_bs0= (bb_up0+ bb_lo0)*0.5。
毕竟,乘法要比除法快。
这里是建造BB的主要周期。
下面是一个简单的MA的计算。
正如你所看到的,中心线是Close上一个简单的MA。其余的都是以它为基础。你可以得出你自己的结论。
SZZ.作为你进一步工作的小册子。
你设置的平均值如下:double bb_bs0 = (bb_up0+ bb_lo0)/2;
但最好这样计算: 双bb_bs0= (bb_up0+ bb_lo0)*0.5。
毕竟,乘法要比除法快。
1.以布林带 的价格IMHO...
是的,我已经意识到,如果没有dll,它将无法工作。
说明理由。
我现在注意到一件奇怪的事情。有一个基础库可以导入 其他库。这里有一个片段。
当我启动owl时,我正在用这些库编写,我在日志中看到。
也就是说,根据日志,有2个库被加载:hoz_ReturningSomeInfo@library和 hoz_Base@Library。
但这些图书馆缺少: hoz_LoggingToAnyWere@library.ex4, hoz_HandlingWithErrorS@library.ex4 ,在杂志上。它应该是这样的吗?还是说所有上传的图书馆都应该在期刊中列出?
说明理由。
至少从winapi的dll中可以看到,向窗口发送字符的情况。