I am currently coding up in indicator which uses the MathCos function in MQL.
The problem is that it seems to be returning an incorrect value.
For example, [php]MathCos(10);
returns a value of -0.8391, while the TradeStation COSINE function, and the web-based cosine calculator at Basic Maths Functions both return a value of 0.9848.
Is this a known bug? My indicator can't be written unless this function works correctly so I hope there is a solution!
请为我编码EA
嗨,朋友们。
我有一些请求,希望那些能够编写这个EA的人。
这个系统是这样的...
假设货币对GJ在格林威治时间8点左右显示当前价格为200.00
因此,我需要一个突破性的即时显示为
买入止损200.50
卖出止损 199.50
SL为30点,TP为50点
然后EA在它微笑之后自动工作...嘿嘿
只有GMT 8.....
3_level_zz_semafor
嗨,亲爱的朋友们
你能不能在第3级的时候增加一个弹出的音频提示?
最好的问候。
nirvana
大家好...
谁能帮助我如何将几个指标合并成一个EA?
事实上,我有一些指标是...
1.外汇狙击手的MA
2.外汇狙击手的LSMA
3.斜率方向线
4.超趋势声音警报
5.超级信号_v3
对不起,我不擅长编程。![](https://c.mql5.com/forextsd/smiles/frown.png)
这里我附上买入条件的图片
这个是卖出条件
打开 "买 "的帖子
当FX Sniper MA & & FX Sniper LSMA & & Supertrend Audible Alert = Green & & Slope Direction Line = Blue.
打开卖出帖子
当FX Sniper MA & & FX Sniper LSMA & & Supertrend Audible Alert & & Slope Direction Line = Red.
退出买入/卖出帖子
当超级信号V3出现时。
希望有人能帮助我。
谢谢
这些是指标
1.FX Sniper的MA
FX Sniper MA.mq4
2.外汇狙击手的LSMA
FX狙击手LSMA.mq4
3.坡度方向线
斜率方向线.mq4
4.超级趋势有声警报
超级趋势声音警报.mq4
5.超级信号_v3
Super_signals_v3.mq4
刚把你的帖子移到这个主题。
大家好...
谢谢newdigital的建议...
需要一个EA
海,需要你的帮助,请
任何一个人都可以根据下面的特征创建一个简单的EA。
- 允许剥头皮
- 缩放值
- 设置TP
- 设置SL
- 可以禁用卖出和买入的入口(我更喜欢手动进入)。
- 可以在推荐的tf30和tf H1上使用
基本上,我想用它来做剥头皮,但更喜欢手动输入,我想要的是,一旦达到我在输入中设置的金额,它就会关闭头寸。
我曾尝试使用米萨卡,但它一直开着我不打算进入的头寸,因为这太冒险了。(对我来说)
如果有人能帮我解决这个问题,你可以给我发邮件,如果你想。谢谢你的帮助。
帮助:扫描器
大家好。
谁能帮助我?
我有个问题。我创建了这个扫描器,在形成十字星的末端播放,但它也在接下来的蜡烛中播放相同的警报。
谁能告诉我哪里错了?
我希望它只在十字星结束时播放一次,而且足够了,不要重复。
我感谢帮助我的人。
安东尼奥 (意大利)
#属性 indicator_separate_window
string ver="SCANNER DOJI"。
//---- 输入参数
extern bool UseAlert = 1;//*****
// -----------dichiarazione variabili generiche--------------------------
double alertBar;//*****
bool alerttdoji=False。
bool flgrs;
string nome_fin; //nome finestra
//+------------------------------------------------------------------+
//|自定义指标 初始化函数|
//+------------------------------------------------------------------+
int init()
{
//----
nome_fin=StringConcatenate(" (",ver,")")。
IndicatorShortName(nome_fin);//nome独立窗口
//----
return(0);
}
//+------------------------------------------------------------------+
//|自定义指标去初始化函数|
//+------------------------------------------------------------------+
int deinit()
{
return(0);
}
//+------------------------------------------------------------------+
//|自定义指标迭代函数|
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted()。
//###################################
// ----------------------------
如果(
Close[1] == Open[1]&& //DOJI
flgrs==0)
{
alerttdoji = 1;
flgrs=1;
}
否则
{
flgrs=0;
}
//*****************ALERT****************
如果(UseAlert==1 && Bars>alertBar && alertdoji==1)
{
Alert(Symbol(), " DOJI " )。
alertBar=Bars;
alerttdoji=0。
}
return(0);
}
//+------------------------------------------------------------------+
数理化
你好。
我目前正在编写一个指标,该指标在MQL中使用MathCos函数。
问题是,它似乎会返回一个不正确的值。
比如说。
返回值为-0.8391,而TradeStation COSINE函数和Basic Maths Functions 的网络余弦计算器都返回值为0.9848。
这是一个已知的错误吗?除非这个函数正常工作,否则我的指标就无法编写,所以我希望有一个解决方案
谢谢
...
Metatrader接受以弧度为单位的三角函数的参数
你应该像这样做。
MathCos(10.00*Pi/180.00);
[/php]
Hi,
I am currently coding up in indicator which uses the MathCos function in MQL.
The problem is that it seems to be returning an incorrect value.
For example, [php]MathCos(10);returns a value of -0.8391, while the TradeStation COSINE function, and the web-based cosine calculator at Basic Maths Functions both return a value of 0.9848.
Is this a known bug? My indicator can't be written unless this function works correctly so I hope there is a solution!
Thanks定义一个全局变量pBars
int pBars = -1 ;
if(pBars != Bars) { // only once per bar
if (
Close[1] == Open[1]&& //DOJI
flgrs==0)
{
alertdoji = 1;
flgrs=1;
}
else
{
flgrs=0;
}
pBars = Bars ; // assign pBars
}// end if pBars
看看这是否有帮助。