Sanbach21 / Publications
Forum
Why doesn't work my EA ?
Hello , thanks in advance, i don't know how to ask in the mql5 area! ok this is a MQL5 code that i write with some example and copy from a similar code i tried to build a EA that Close Partial lot in determinate price , i use this for futures markets , specifically symbol, Micro Nasdaq, this should
Code EA to close half lot of position!
My intention is to make an EA Mql 4, which in my example at least closes half of the position at 4 pips and let the rest of the initial lot run, this is what I did, it works well but sometimes not... For example, sometimes the half of position is closed , a second after the position is opened! . I
Question about Copier EA Not Working
Hi for All , I have a problem with the copier , when i use the copier with two different account from the same Broker the copier it works very good , but when the Account are from Different Brokers both, the EA not working . Can Any ones please help me with this ? Thanks
File Write txt
Hi I have the following function in the Expert, which begins to write the values of some indicators, when I open an order, but the problem is that while the order is open write line by line until the order is closed, I am trying to use the OrderOpenTime () = Time Current, with the intention of Write
Function Store Parameters indicators when trade is open !
Hi I need help I want to know if is possible and how to do it , Thanks I want to build a function that store parameters from indicator when the trade is taken and if that trade is close on profit that parameter will be store on file win trade ,and if that trade is loser store that parameter in a
Close Order
double MA1= iMA ( NULL , 0 ,MA_Fast, 0 , MODE_EMA , PRICE_CLOSE , 0 ); //-------------------------// // if (Losses()<2) //if ( Winner()<2) if (OP_BUY== true ) { if (Open[ 1 ]>MA1 && Close[ 1 ]<MA1) { !OrderClose(OrderTicket(),LotSize,Bid, 3 ,White); } } if
Building A Function I need your help !!!
Hi everyone I want to build a Function that assign a letter or anything and after that calculate and get total = profit + or - target daily then stop the EA. Something like this , I don't have any idea how to do it ! void or bool Profit_Daily() { if ( OrderSelect ( 0
How I can use this Indicator on my EA
Hi , I want To use this indicator into my EA , or I want to build a custom indicator like this, but this indicator is not in the list from Platform What I have to do? thank you very much I going to leave the indicator
EA Stop Trade till Next Day, if Account Balance is UP 2% or Down 2%
Hi , I need help Stop EA till Next Day, if Account Balance is UP 2% or Down 2% i have this int Contador = 0 ; for ( int i=OrdersHistoryTotal()- 1 ; i>= 0 ; i--) { OrderSelect (i,SELECT_BY_POS,MODE_HISTORY); datetime T = OrderCloseTime(); if (TimeDayOfYear(T)!=DayOfYear())
Stop My EA untill next Day when i have reach two winner consecutive or losses Trade
Hi I have my two Count Function to Winner trade and to Losses Trade But I want to know if is possible modify the Count Function to do this if I have two Losses or Winner consecutive trade and if is DayOfTheWeek ()==1 , and Next Session trade is DayOfTheWeek ()==2 The Count, ComeBack to 0 and my