| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack (2) | Thread Tools | Display Modes |
|
|||
|
Thanks Linuxser!
I have never used this statement before and now I shall add this to my collection for future reference. You made my day, and now I can proceed with my logic for my EA. May God Bless You and give you a Long and Healthy Life! Dave |
|
|||
|
Quote:
There is a statement: PHP Code:
Dave |
|
||||
|
Quote:
![]()
__________________
You need proffesional mql coder? Contact me! I will help you! ........................................ http://www.fxservice.eu/ ........................................ |
|
||||
|
Quote:
add your rsi values to an array, and then use ArrayMaximum and ArrayMinimum functions. They return index of array instead of value, so you will know which i is it. ![]()
__________________
You need proffesional mql coder? Contact me! I will help you! ........................................ http://www.fxservice.eu/ ........................................ |
|
||||
|
Deleted
Solution found! Hi Coders I try to insert a function in my EA to choose the trading days. The function for trading hours works well. For trading hours i use following: extern string TradingHours = "TRADING HOURS"; extern bool UseHourTrade = True; extern int FromHourTrade = 8; extern int ToHourTrade = 18; and later after int start: if (UseHourTrade){ if (!(Hour()>=FromHourTrade && Hour()<=ToHourTrade)) { Comment("Time for trade has not come else!"); return(0); But what is needed for select the trading days? When I define the extern as follow: extern string TradingDays = "TRADING Days"; extern bool UseDayTrade = True; extern int FromDayTrade = DayOfWeek; extern int ToDayTrade = DayOfWeek; then I have follow two messages: 'DayOfWeek'-variable expected what's to do? Somebody can help me? Thanks for any help Last edited by Badguy; 04-06-2008 at 04:54 PM. Reason: Solution found |
|
|||
|
Please Help everyone
i had a problem , how to make only 1 position open and 2 pending.
let just say Buy and Buystop , Sellstop. i had an info before from someone in mql4, he use : if(buystoporder>0 && sellstoporder>0)return(0); and before that , he use switch(OrderType()). I am confuse , where do i have to change the code? i am ended in the buystop and sellstop open several times when i change the code, while if not, it wait until one is trigerred , reach their SL or TP and then make a new 2 pending. My goal is 1 open and 2 pending, so when the open reach the SL or TP, one of the pending is trigerred, one isnot trigerred will be deleted. and make another 2 pending. and Is it possible to put magic number in switch() option? Greatly thanks for your help. Last edited by Kieruwin; 04-07-2008 at 06:59 AM. Reason: no response |
![]() |
| Bookmarks |
| Tags |
| histogram, forex, ZUP_v1.mq4 |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/questions/270-ask.html
|
||||
| Posted By | For | Type | Date | |
| OzFx System:) - Page 639 | This thread | Refback | 06-21-2008 10:53 PM | |
| Forex SRDC Sidus Sibkis EA MT4 Forum OTCSmart | This thread | Refback | 12-08-2007 12:46 PM | |