Просмотров: 4377 Рейтинг: Опубликован: 2011.07.29 17:23 Обновлен: 2016.11.22 07:33 BrainTrend1Sig - это рыночный индикатор для открытия позиций и выхода из них. Он показывает точки смены тренда цветом, когда цена достигает экстремальных значений и наступает самое удобное время для входа или выхода из рынка. В основе индикатора заложены...
В стрелочном индикаторе Phoenix используется комбинация трех индикаторов: Moving Average, Bolinger Bands и Momentum в сочетании с двумя мощными формулами, основанными на поведении цены текущего графика. В индикаторе Phoenix также реализована система звуковых и текстовых алертов, а также отправка...
//+------------------------------------------------------------------+//| SIGNAL_PROFIT.mq5 |//| Copyright 2020, MetaQuotes Software Corp. |//| https://www.mql5.com |//+------------------------------------------------------------------+#property copyright"Copyright 2020, MetaQuotes Software Corp."#property link"https://www.mql5.com"#property version"1.00"//---#include <Trade\PositionInfo.mqh>
#include <Trade\Trade.mqh>
#include <Trade\SymbolInfo.mqh>
CPositionInfo m_position; // trade position object
CTrade m_trade; // trading object
CSymbolInfo m_symbol; // symbol info object//---inputdouble TargetTakeProfit = 10000; // Прибыльinputdouble TargetStopLoss = 10000; // Убыток//+------------------------------------------------------------------+//| Expert initialization function |//+------------------------------------------------------------------+intOnInit()
{
//---//---return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+//| Expert deinitialization function |//+------------------------------------------------------------------+voidOnDeinit(constint reason)
{
//---
}
//+------------------------------------------------------------------+//| Expert tick function |//+------------------------------------------------------------------+voidOnTick()
{
//---if(AccountInfoDouble(ACCOUNT_PROFIT)<-TargetStopLoss ||
AccountInfoDouble(ACCOUNT_PROFIT)>=TargetTakeProfit)
{
CloseAll();
PlaySound("ok.wav");
}
}
//+------------------------------------------------------------------+//| start function |//+------------------------------------------------------------------+void CloseAll(void)
{
for(int i=PositionsTotal()-1; i>=0; i--) // returns the number of current positionsif(m_position.SelectByIndex(i)) // selects the position by index for further access to its properties
{
ClosePosition(m_position.Symbol()); // close a position by the specified symbo
}
}
//+------------------------------------------------------------------+//| Close selected position |//+------------------------------------------------------------------+void ClosePosition(conststring symbol)
{
if(InitTrade(symbol))
m_trade.PositionClose(m_position.Ticket()); // close a position by the specified symboPlaySound("ok.wav");
}
//+------------------------------------------------------------------+//| Init trade object |//+------------------------------------------------------------------+bool InitTrade(conststring symbol)
{
if(!m_symbol.Name(symbol)) // sets symbol namereturn(false);
if(IsFillingTypeAllowed(symbol,SYMBOL_FILLING_FOK))
m_trade.SetTypeFilling(ORDER_FILLING_FOK);
elseif(IsFillingTypeAllowed(symbol,SYMBOL_FILLING_IOC))
m_trade.SetTypeFilling(ORDER_FILLING_IOC);
else
m_trade.SetTypeFilling(ORDER_FILLING_RETURN);
return(true);
//---
}
//+------------------------------------------------------------------+//| Checks if the specified filling mode is allowed |//+------------------------------------------------------------------+bool IsFillingTypeAllowed(string symbol,int fill_type)
{
//--- Obtain the value of the property that describes allowed filling modesint filling=(int)SymbolInfoInteger(symbol,SYMBOL_FILLING_MODE);
//--- Return true, if mode fill_type is allowedreturn((filling & fill_type)==fill_type);
}
//+------------------------------------------------------------------+
都是为了寻找点--在这其中加入了Rsi和Macd(指标https://www.mql5.com/ru/code/392)。
我在MT4上做了一个专家顾问,无事可做。
对于这种类型的指标,https://www.mql5.com/ru/code/8772
有一种通常的模式--开放关闭
我在MT4上做了一个专家顾问,无事可做。
对于这种类型的指标,https://www.mql5.com/ru/code/8772
这是其中一种模式
有一种通常的模式--开放关闭
这个小毛病,指标为测试者https://www.mql5.com/ru/code/8772。
最后的结果是
在MT4测试器中很难,测试从指标https://www.mql5.com/ru/code/28364,这很可怕。
也许有人有兴趣在测试器中玩这个功能--我粘贴的是实用程序,它纯粹是为了测试器,你还需要这个Low_Macd_Line.mq5 指标
的函数本身。
当从指标 Low_Macd_Line.mq5,你需要给这些水平线,一个名称"LOW"
可能很有趣
你不再显示它了吗?
可能会很有趣。
你还不能给我看看这个国家吗?
该版本纯粹是在测试器中,看看功能如何工作。没有结果,即使有结果也是不正确的。
这里https://www.mql5.com/ru/signals/741568,我正在检查实用程序。我还没有激活这个功能,我正在检查其他功能。
都是为了寻找点--在这其中加入了Rsi和Macd(指标https://www.mql5.com/ru/code/392)。
大错特错--没改名字
已纠正的
可能很有趣
你不是已经显示出你的地位了吗?
这个功能可以作为SL或拖网使用(你设定距离,它就在蓝线后面拖网)。
从黄线上使用会更清楚。
这里 https://www.mql5.com/ru/forum/135593/page4#comment_3441020
文件:但那里有一个DLL - 我把它删除了。但指标(MT4)在工作,我仍然需要弄清楚它能做什么。
在这之前,发布了一个函数,货币的利润损失--平仓。而且有点错误,原来只是一个平等的应该被添加的