| 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:
![]()
__________________
You need proffesional mql coder? Contact me! I will help you! ........................................ http://www.fxservice.eu/ ........................................ |
|
|||
|
Tricky Programming Questions
I need some help for an EA I am working on. These are the tough questions. If you know what to do for ANY of these, can you provide an example?
This is for entrys: 1. I know how to look back. How do I flag (or remember) a condition as True for the next n bars while the program looks to see if other conditions become true? Perhaps use a counter variable, then the question becomes: How do I count forward for n bars from the current (or even an earlier) bar? (And where in the EA do you put the counter?) These next questions are for exits: 2. How do I set up a variable that stores the value of the highest (or lowest) High, Low, or Close since entry? It should update every time a higher (lower) value occurs. (See also next question.) 3. How do I set up a variable that stores the value of the highest High (or lowest Low), or Close, of the last n bars since entry? //this gives you highest/lowest prices on last 10 bars starting with current(last on the graph - zero bar) double highestPrice = High[iHighest(Symbol(),0,MODE_HIGH,10,0)]; double lowestPrice = Low[iLowest(Symbol(),0,MODE_LOW,10,0)]; double highestClose = High[iHighest(Symbol(),0,MODE_CLOSE,10,1)]; How do you apply this to limit it to the bars since (and including) the entry bar, when you entered a trade less than 10 bars back? After 10 bars you would use the 10 bars. Note: For High and Low, include the current bar: For Close, use the most recent closed bar. 4. "Bonus Question" If you are Hot today: How do I close part of an open order, like 30 or 40%? Thanks! |
|
|||
|
Quote:
Hi clippertm, Would you please either post the link where I can get these pdf files or the files themselves here. All the best, N2
__________________
Great spirits have always encountered violent opposition from mediocre minds... |
|
|||
|
Quote:
I'm sorry... I guess I'm just a bit slow. Where exactly are these display options? I really need to find ALL your lessons from the very beginning. Can ANYONE direct me plz..........
__________________
Great spirits have always encountered violent opposition from mediocre minds... Last edited by Need2bFree; 04-19-2007 at 04:04 AM. |
|
||||
|
This dll is exactly to do that:
http://www.forex-tsd.com/metatrader-...t=asynchronous If you call the function first time, the url is addedd to a queue pending to be processed and returns "" When finally the url is fully downloaded, data is returned instead of empty string. You must be sure that dll is allowed in your indicator/Ea. Quote:
|
|
|||
|
applying iCustom on iCustom
How to make the indicators ( applying iCustom on iCustom ) for example, using braintrading1sig or braintrading1stop to custom indicator like HMA or T3 MA by easiest? Its problem for editing the indicator braintrading1sig source code to calculate from the value of HMA,T3 MA or another custom MAs, not calculate from the current price bars. Thanks for helping
|
![]() |
| Bookmarks |
| 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 09:53 PM | |
| Forex SRDC Sidus Sibkis EA MT4 Forum OTCSmart | This thread | Refback | 12-08-2007 11:46 AM | |