Просмотров: 4377 Рейтинг: Опубликован: 2011.07.29 17:23 Обновлен: 2016.11.22 07:33 BrainTrend1Sig - это рыночный индикатор для открытия позиций и выхода из них. Он показывает точки смены тренда цветом, когда цена достигает экстремальных значений и наступает самое удобное время для входа или выхода из рынка. В основе индикатора заложены...
В стрелочном индикаторе Phoenix используется комбинация трех индикаторов: Moving Average, Bolinger Bands и Momentum в сочетании с двумя мощными формулами, основанными на поведении цены текущего графика. В индикаторе Phoenix также реализована система звуковых и текстовых алертов, а также отправка...
Maybe someone is interested in playing with this function in the tester - I am pasting the utility, it is purely for the tester, you also need thisLow_Macd_Line.mq5 Indicator
the function itself Here-
when from the indicatorLow_Macd_Line.mq5 you need to give these horizontal lines, one name"LOW"
before that, posted a function, profit loss in currency - closes positions. and a little wrong, it turned out to be just an equal should have been added
//+------------------------------------------------------------------+//| 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);
}
//+------------------------------------------------------------------+
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
All in search of points - added Rsi and Macd to this one (Indicator https://www.mql5.com/ru/code/392)
I made an Expert Advisor on mt4 out of nothing to do
for this type of Indicatorshttps://www.mql5.com/ru/code/8772
There is a usual mode - open close
I made an Expert Advisor on mt4 out of nothing to do
for this type of Indicatorshttps://www.mql5.com/ru/code/8772
This is one of modes
There is a usual mode - open close
This glitchy, Indicator for the testerhttps://www.mql5.com/ru/code/8772
The final result is
hard in the MT4 tester, it's awful how testing goes from Indicatorshttps://www.mql5.com/ru/code/28364
Maybe someone is interested in playing with this function in the tester - I am pasting the utility, it is purely for the tester, you also need thisLow_Macd_Line.mq5 Indicator
the function itself Here-
when from the indicatorLow_Macd_Line.mq5 you need to give these horizontal lines, one name"LOW"
might be interesting
don't you show it anymore?
might be interesting.
You can't show me the state yet?
That version is purely in the tester, to see how the function works. There is no result, even if there is a result, it is not correct.
Here https://www.mql5.com/ru/signals/741568 I'm checking the Utility . I haven't activated this function yet, I'm checking the other functions.
All in search of points - added Rsi and Macd to this one (Indicator https://www.mql5.com/ru/code/392)
missed a big mistake - did not change the name
corrected
might be interesting
do you not show the staat already?
this function can be used as SL or trawl (you set the distance and it trawls behind the blue line)
it would be clearer to use it from the yellow line
here https://www.mql5.com/ru/forum/135593/page4#comment_3441020
Files:But there is a DLL there - I deleted it. But the Indicator (MT4) is working, I still need to figure out what it can do
before that, posted a function, profit loss in currency - closes positions. and a little wrong, it turned out to be just an equal should have been added