| 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 |
|
|||
|
Quote:
{ do_something } |
|
|||
|
Quote:
This flipflop the sign; but if you need to have a positive number, use the MathAbs() function : A = MathAbs(A); Wathever is A , it will become positif. |
|
||||
|
Weekend test code
Hi guru,
Are there any server can feed price to give us chance test our code at Saturday and Sunday ? I mean if there possible to make simulator server to give chance to test at weekend ? This idea come because of : 1. While at workdays, we are seriously to watch our chart, at that time, can't seriously type code. 2. We have more time at weekend, then we can seriously test our code atm. Maybe some one can give me information about this idea ? Best regards, BornToWin |
|
||||
|
Quote:
Thank you Michel, you have been a great help to me. |
|
|||
|
Quote:
I try to go thorugh some MQL4 functions and bumped into this sample code as above. Could someone kindly explain: 1.)what's the reason of using "limit" variable there? 2.)I tried to run the sample code, which always returns value 2, what's the purpose of the "limit" value 2 in the for loop, 3.)which position bars does this for loop working on? Thank you. ![]() |
|
|||
|
icustom ! indicator -> ea
good morning, is a beginner of the language mq4, I would appreciate a help, I in advance thank!
the indicator has two variables: bool TurnedUp = false bool TurnedDown = false how to use the function icustom in the EA, to read the values of TurnedUp and TurnedDown? iCustom(Symbol(),"postfin",0,TurnedUp,0,0,0); ....iCustom(Symbol(),"postfin",0,TurnedDown,0,0,0); ![]() .....my probations, not working, possible because it deals with "bool" ?? part EA and error .. //+------------------------------------------------------------------+ //| EXPERT BASIC CALCULATION | //| START HERE | //+------------------------------------------------------------------+ iCustom(Symbol(),"postfin",0,TurnedUp,0,0,0); iCustom(Symbol(),"postfin",0,TurnedDown,0,0,0); //EnterLong = TurnedUp; // EnterShort = TurnedDown; // EnterLong = true; // if( TurnedUp == true ) EnterLong== true; // EnterShort = TurnedDown; //} //if(icustom(Symbol(), "postfin","TurnedUp",0,0) == True && EnterLong== 1 ) //{ //+------------------------------------------------------------------+ //| EXPERT BASIC CALCULATION | //| END HERE | //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| YOU SHOULD NOT HAVE TO MODIFY ANYTHING BELOW THIS BOX | //+------------------------------------------------------------------+ // ENTER LONG CONDITION if(EnterLong == true && CountLongs(MagicNumber)== 0) { |
![]() |
| 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 | |