I think you looked at the code from kodobase, where the orders are opened by time.)
bool ModifyTral() // Спец. функция start
{
//------------------------------------------------------ 3 --while(true) // Цикл модификации
{
double TS=Tral_Stop; // Исходное значениеdouble Min_Dist=MarketInfo(Symb,MODE_STOPLEVEL);//Миним. дистif(TS<Min_Dist) // Если меньше допуст.
TS=Min_Dist; // Новое значение TS//--------------------------------------------------- 4 --
Modify=false; // Не назначен к модифиswitch(Tip) // По типу ордера
{
case0 : // Ордер Buyif(NormalizeDouble(SL,Digits)< // Если ниже желаем.NormalizeDouble(Bid-TS*Point,Digits))
{
SL=Bid-TS*Point; // то модифицируем его
Text="Buy "; // Текст для Buy
Modify=true; // Назначен к модифи.
}
break; // Выход из switchcase1 : // Ордер Sellif(NormalizeDouble(SL,Digits)> // Если выше желаем.NormalizeDouble(Ask+TS*Point,Digits)
|| NormalizeDouble(SL,Digits)==0)//или равно нулю
{
SL=Ask+TS*Point; // то модифицируем его
Text="Sell "; // Текст для Sell
Modify=true; // Назначен к модифи.
}
} // Конец switchif(Modify==false) // Если его не модифиbreak; // Выход из while//--------------------------------------------------- 5 --
TP =OrderTakeProfit(); // TP выбранного орд.
Price =OrderOpenPrice(); // Цена выбранн. орд.
Ticket=OrderTicket(); // Номер выбранн. орд.Alert("Модификация ", Text,Ticket,". Ждём ответ..");
Ans=OrderModify(Ticket,Price,SL,TP,0);//Модифи его!//--------------------------------------------------- 6 --if(Ans==true) // Получилось :)
{
Alert("Ордер ",Text,Ticket," модифицирован:)");
break; // Из цикла модифи.
}
//--------------------------------------------------- 7 --if(Fun_Error(GetLastError())==1) // Обработка ошибокcontinue; // Повторная попыткаbreak; // Из цикла модифи.
} // Конец цикла модифи.//------------------------------------------------------ 8 --//--------------------------------------------------------------- 9 --return(Modify); // Выход из ModifyTral()
}
Programmers handy, please add the Breakeven function to the board, I'm itching to get it right now. I myself have tried it and did not get anywhere. I am asking for help from someone knowledgeable.
Сергей Баженов: Programmers handy, please add the Breakeven function to the board, I'm itching to get it right now. I myself have tried it and did not get anywhere. Here, I ask for help from the knowledgeable.
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.
In EA, only a modification to Staploss makes the trawl. There is no other way.
how is this done? can i have a sample line?
how? can i have a sample line?
I think you looked at the code from kodobase, where the orders are opened by time.)
I think you looked at the code from kodobase, where the orders are opened by time. there it was)
THANK YOU!!!!!!!!!!!!!!!
manually set when the order is clicked, programmed by modifying the stop loss. There is no separate command/function.
Is there a floating trailing stop rather than a fixed one in the EA?
Guys Please !!! Screw "REVERSE OF WORK" to this robot
That's about it, if you're quick
Programmers handy, please add the Breakeven function to the board, I'm itching to get it right now. I myself have tried it and did not get anywhere. Here, I ask for help from the knowledgeable.
Screwed it on. Author Kimiv. Fixed it a bit.
Alexander thank you so much ! Thank you so much!