![]() |
if( TimeHour(bartime ) == MarketOpen ) above checks if "hour is 0" But if you are using lessor time frame than H1, there will be many bars meets this condition. Please check how you decide which bar is correct bar. if you are checking current bar as starting of new session, below should work also. double HighCandleOne=iHigh(NULL,PERIOD_M30,i); double LowCandleOne=iLow(NULL,PERIOD_M30,i); double Range= (HighCandleOne - LowCandleOne)*Point; double OpenCandleTwo=iOpen(NULL,PERIOD_M30,i+1); double breakbuy=OpenCandleTwo + (Range); double breaksell=OpenCandleTwo-(Range); |
1 Attachment(s)
BreakoutM30Daily_v1.00 (1).mq4 |
|
- what's the point of collecting the mtf price data into arrays? The info already exists and is easily accesible, you don't need to store them. It's the equivalent of you trying to store the current chart ohlc into arrays to use. |
6 Attachment(s)
Hi romeo It is not exact what you asked (multi pairs) but it will be work only on the instrument it applied on - there are many rest of options,possibly help to others Originally it is using SMMAs (Smoothed ma) with EMAs (Exponential MA) but particularly i changed all to SMA as you asked it displaying on chart lines with dash what to display,lines or dash or both 9 TFs capable previous history tracking 8 MAs up to users defined values (periods) including which one to true/false colors choice xy adjusting option and more Attachment 3779722Attachment 3779723Attachment 3779724Attachment 3779725Attachment 3779727 FanSimple8_4MEn sma Romeo.ex4 |
3 Attachment(s)
ahhh nevermind, finally.....enjoy Sandile...thanks BlueRain. I finally got it. double HighCandleOne=iHigh(NULL,PERIOD_M30,i);//--first candle open market double LowCandleOne=iLow(NULL,PERIOD_M30,i);//--first candle open market double HighCandleTwo=iHigh(NULL,PERIOD_M30,i-1);//--second candle starting line double LowCandleTwo=iLow(NULL,PERIOD_M30,i-1);//--second candle starting line double Range=HighCandleOne-LowCandleOne;//--based on first candle double breakbuy=HighCandleTwo+(Range);//--for offsett high line second candle double breaksell=LowCandleTwo-(Range);//--for offsett low line second candle ======================== now Sandile, you should teach us, how to trading use that indicator....hahahaha BreakoutM30Daily_v1.01.ex4 BreakoutM30Daily_v1.01.mq4 |
The highPrc in my code is just an example ... it is actually for other purpose ... ![]() but your idea is good for me to think again for my other project, and yes !t is indeed regarding ohlc price ... ![]() Oh no, i just realize/ see that BR actually has posted an example in mql4, it was my bad ... Nice, will try to learn from his code first. Thanks again great coders ... Edit : I see BR code: BR-Momentum-Dashboard , it is multi pair .... and for all time frames, we can choose just one tf from the drop down menu (using enum) : Inserted Code input ENUM_TIMEFRAMES timeframe = PERIOD_CURRENT; one question: if i want to make it for all of time frames from M1 to MN1 , it is better to put the tf in array like this : Inserted Code string allTimeFramesArr[] = {"M1","M5", .... , "MN1"}; or just define it one by one like this ? Inserted Code string allTimeFrames = "M1","M5", .... ,"MN1"; Edit again : Sorry ... i just found the Fractal example by BR, will look at it ![]() |
6 Attachment(s)
In this ver users can choose what to show/hide (DI Plus,DI Minus,DX,ADX,ADXR) or show all users defined levels possibility Attachment 3779772Attachment 3779773Attachment 3779774Attachment 3779775Attachment 3779777 DMI.ex4 |
Cheers Paul |
1 Attachment(s) |
Happy Pipping |
Could you please shed some light on how to make this EA work? It was loaded before one day and still, not even one trade opened. |
|
maybe your strategy not clearly enough, i read your post, and i'm confuse read it... if u look for supply demand/ S&R there is good indicator for it https://www.forexfactory.com/thread/...3#post13241083 |
|
Since most of Gabs are filled, I think this is looking for that strategy. if condition like below, you will get sell signal. current_openprice > previous_highprice + (min_gapsize + spread_gap)*point_gap && current_time != order_time) You will not get any trade signal on day to day - unless you reduce gapsize. if you are using smaller time frame, you may have to reduce gapsize.. Based on my Tester, it only opened 3-4 time a week trade ( about 3-4 trade per months ) on default settings, mostly on Weekly Opening day. However, it seems it is profitable on my tester run . ( EURUSD ) |
1 Attachment(s) Hi coders, Requesting: a) Add Stop Loss function, b) Add Trailing Stop / BE function, c) Double confirm or update the codes, if needed, since it an old codes. It running well on back-test and live chart. Just for confirmation since it create in 2011. Thanks in advance. Renko pure candle auto-trading EA by Steve Hopwood.mq4 |
1 Attachment(s) |
to add vma type into this and function weekly period vma crossing daily period i hope such request would make very nice dashboard with appropriate settings |
© Forex Factory