| 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 |
|
|||
|
Hello IN10TION,
Yes, after the formation of the doji or inside bar, i want to be able to go 1, 2 or 3 bars before such doji or inside bar and place a buy-stop or a sell-stop. In addidion, if i want to wait 1, 2 , or 3 bars after the formation...Let me explain that part further: Let's say we have an Inside bar at the close the 10 AM bar. Now i want to take the high or the low of the 12 PM (2 bars later) and place buy-stop or sell stop at 1:01 PM. Hope i was clear. Should you need me to explain it further, please do not hesitate to ask. Thanks for the help. Forexcel Quote:
|
|
||||
|
Do you already have some code for this, that you started?
in a mq4 file? the first thing you need is confirmation doji/inside = yes or no depending on your settings it will look before the doji/inside or wait when it waits 2 bars it has to decide the orders, depending on the previous bar high or low... well you can start programming ![]() you have some code to find the doji's or insiders? ... Quote:
|
|
||||
|
EA opening too many orders
What different methods can be used to stop an EA from opening so many multiple positions back to back. I am thinking of adding a sleep function but I wouldnt want to miss out on any trades that could have taken please during the EA was in sleep.
|
|
||||
|
if you see that all buys and sells are at the right place, and don't do anything drastically wrong, you then can find another filter, to have a more to the point buy or sell choice... let your EA test run on a visual chart and put also some different indicators on it, and see of those indicators can help you filter out those over orderings. Use a simple stochastic, or change the time period with it, adjust the stochastic values... try RSI, CCI. Stay with the same currency pair that you trust. Every pair has her setting and difficulty. Keep it simple.
|
|
||||
|
Quote:
Code:
int yy = TimeYear(Time[0]);
int mm = TimeMonth(Time[0]);
int dd = TimeDay(Time[0]);
datetime var1;
string yymmddms = yy+"."+mm+"."+dd+" 00:00" ;
var1 = StrToTime(yymmddms);
int shift =i BarShift(NULL,0,var1,false);
int hh = Highest(NULL,0,MODE_HIGH,shift,0);
int ll = Lowest(NULL,0,MODE_LOW,shift,0);
double xRES = iHigh(NULL,0,hh) ;
double xSUP = iLow(NULL,0,ll) ;
|
|
|||
|
Quote:
today_low_ = Low[0]; Find the bar number for today ??? The 0 mean today. On D1 of course. If you are on other TF: today_high = iHigh(Symbol(),PERIOD_D1,0); today_low = iLow(Symbol(),PERIOD_D1,0); FerruFx
__________________
THE HEART of FOREX & THE PROBABILITY METER - Trade with 100% confidence and ... Stress Less!!! Coding services: Experts Advisors, indicators, alerts, etc ... more info by PM NEW: video presentation of the Probability Meter ... 24hrs action on the website Last edited by FerruFx; 06-11-2008 at 03:57 AM. |
|
||||
|
Quote:
datetime some_time_end_day=D'0000.00.00 00:00'; int shiftStart=iBarShift(NULL,PERIOD_M1,some_time_star t_day); int shiftEnd=iBarShift(NULL,PERIOD_M1,some_time_end_da y); double valH=High[iHighest(NULL,0,MODE_HIGH,shiftStart-shiftEnd+1,shiftEnd)]; double valL=Low[iLowest(NULL,0,MODE_LOW,shiftStart-shiftEnd+1,shiftEnd)]; nothing simpler then this... ![]() ps. I thought the question was find the bars on a lower timeframe, otherwise just do what FerruFx explained take from D1 .
__________________
..4.Nov.08.. IN10TION newsReader v09.85 Lite - the best news reader on your chart
Last edited by IN10TION; 06-11-2008 at 04:53 AM. |
|
||||
|
Dear codersguru,
I need ea that should be piece of cake for you, it close all open positions (for certain pair) when 2 MA crossed. Off course, if faster MA crossed down slower MA it close long position, vice versa. Variabels : - Faster MA type - Faster MA value - Slower MA type - Slower MA value - TimeFrame (we can fixed the timeframe without being interferred when we switching between timeframe graph windows) I have tried to modified MA crossed EA, but always failed. ![]() Thank you for your kindness. |
|
||||
|
Quote:
I guess there isn't a simpler way. I thought there might be a keyword/reserved word for BarStartOfDay or something. |
![]() |
| 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 | |