| 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 |
|
||||
|
Hi CodersGuru,
What kind of code would I need to make an EA Buy at exact cross on stochastic but make it wait at least new bar to apply the close position rules but still apply SL-TP-TS. And also to make the EA wait until next opposite cross to take another position. Thanks for your good work!
__________________
Common Sens Indicators Active! |
|
||||
|
iBarShift will find for you the bar that start on that day or also the end bar for that day.
int iBarShift( string symbol, int timeframe, datetime time, bool exact=false) next... use those bar positions to find the results of iHighest and iLowest int iHighest( string symbol, int timeframe, int type, int count=WHOLE_ARRAY, int start=0) int iLowest( string symbol, int timeframe, int type, int count=WHOLE_ARRAY, int start=0) results & done ![]() |
|
|||
|
Quote:
'start' - function already defined and has a body What could I be doing wrong? Thanks! Last edited by Yoda_Glenn; 06-06-2008 at 04:34 PM. |
|
||||
|
you are almost there
![]() yes you have a "init" part (initialization) and also a "start" part... put it in the start part as I did it in the example... why? 1. because init will run only ones, in the "start" part it will block continues. 2. your error message = you can't use a start() into a init() function Have a nice weekend Last edited by IN10TION; 06-06-2008 at 04:52 PM. |
![]() |
| 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 | |