| 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 |
|
||||
|
////////////////////INDICATOR VALUES/////////////////////////
HourChannel_v1.MQ4 Setup: Hours = 3; double Width=0; Width = price_p0-price_02; Comment("", "\n", "\n","Current High Channel = ",price_p0, "\n","Current Low Channel = ",price_02, "\n","Current Width = ",Width ); /////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////NEED HELP BELOW////////////////////////////// >>>How do I create a statement to transfer the "Width" variable value from the Hour Channel indicator into an EA???? double val= iCustom(NULL,0,"HoursChannel_v1", (NOW WHAT??) Please Lend Me Your Expertise - Important!! Last edited by iscuba11; 09-03-2006 at 08:20 PM. |
|
||||
|
How to Disable EA on the definite day
Dear colleagues!
Are there exist possibilities to create piece of code which can disable opreation of Expert Advisor on the definite week's day, for example: Monday, Tuesday...etc.? I'm not a programmer and that's why I ask for Your advice & help Best regards, Warren
__________________
Short Term Pain for Long Term Gain! |
|
||||
|
PHP Code:
Adapt this code using below: PHP Code:
extern bool Monday=true; extern bool Tuesday=true; extern bool Wednesday=true; extern bool Thursday=True; extern bool Friday=True; Good Luck! P.S. || is the same as (or). Try substituting Hour() with: if(!(DayOfWeek()=2 && Tuesday=true)) a=1; I am not an expert at coding, but this should get you in the ballpark! Last edited by iscuba11; 09-03-2006 at 07:32 PM. |
|
||||
|
Quote:
OrderSelect(HistoryTotal(),SELECT_BY_POS,MODE_HIST ORY); but i'm not sure for this one , i think it will pick up the last order in whole history cheers |
|
||||
|
Quote:
OrderSelect(HistoryTotal()-1,SELECT_BY_POS,MODE_HISTORY); |
![]() |
| 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 | |