Is it possible to do a 10 min chart?
Indicators and Rules for Simple Method of Scalping GBP/Jpy on 5 min chart 18 replies
Scalping techniques on 1 Min chart 26 replies
15 min indicator on 5 min chart 3 replies
View 15 min indicators on 1hr chart? 17 replies
BAT system for 15 min chart 28 replies
DislikedHanover:
Great info., but do you know of a way to get the converted time frame to work with strategy tester? For example, I want to test an EA with an 8 hr. time frame in strategy tester, but 8 hr. doesn't appear in the dropdown box - how can I get 8 hr. to appear? Will the periodcon work with EA's?
Thanks,Ignored
Disliked....If you open a 2nd - Nth chart of the same period (e.g. M20), then those charts don't get live tick updates!.....Ignored
void updateofflinewindows(int per) { int hwnd,len; string name; string gwstr = " "; hwnd = WindowHandle(Symbol(),per); if (hwnd != 0) { len = GetWindowTextA(hwnd,gwstr,80); name = StringSubstr(gwstr,0,len-1); hwnd = GetWindow(hwnd,GW_HWNDFIRST); while (hwnd !=0) { len = GetWindowTextA(hwnd,gwstr,80); if ((len >0) && (StringSubstr(gwstr,0,len-1) == name)) PostMessageA(hwnd,WM_COMMAND,CHART_CMD_UPDATE_DATA,0); hwnd = GetWindow(hwnd,GW_HWNDNEXT); } } }
DislikedMultiple (same period offline) chart windows wont update because Mt4s function : WindowHandle() will only return the handle of the first window it finds. you'll have to use windows api calls.
The following should work but hasnt been tested, and you'll have to fit it into the script / indicator you're using yourself.
...Ignored
//... just after the PostMessageA(hwnd, ...) command worked. SetActiveWindow(hwnd); // Unfortunately this line doesn't work if ( ObjectFind("Period") < 0) { ObjectCreate("Period",OBJ_TEXT,0,TimeCurrent(),0.001); ObjectSetText("Period",DoubleToStr(NewPeriod,0),12,"Ariel",Red); }
void updateofflinewindows(int per) { int hwnd,len; string name; string gwstr = " "; hwnd = GetParent(WindowHandle(Symbol(),per)); if (hwnd != 0) { len = GetWindowTextA(hwnd,gwstr,80); name = StringSubstr(gwstr,0,len); hwnd = GetWindow(hwnd,GW_HWNDFIRST); while (hwnd !=0) { len = GetWindowTextA(hwnd,gwstr,80); if ((len >0) && (StringSubstr(gwstr,0,len) == name)) PostMessageA(hwnd,WM_COMMAND,CHART_CMD_UPDATE_DATA,0); hwnd = GetWindow(hwnd,GW_HWNDNEXT); } } }
Disliked
There were some problems using the code you suggested but with some changes I'm getting much closer.
Ignored
Disliked
(Question) Is there a way to create a Text object in the other (offline) window(s) as well?Ignored
DislikedHi hanover,
I was reading your post on how to multiply the timeframe using your indicator called periodcon.mq4
http://www.forexfactory.com/showthre...55#post1528155
I'm looking for a 30-min chart that starts at 00:15 and closes at 00:45. I've tried to do it with your indicator but it only shifts the clock reading at the bottom of the chart, and not the actual data. the chart would look different if I get what I'm looking for.
Thanks in advance for your help. I truly appreciate it. This information will help me to...Ignored
What is so special about a M30 chart whose candles open at 00:15? How does this make a trader profitable? Just curious.