Forex
Google
New signals service!

Go Back   Forex Trading > Metatrader Training > Metatrader 4 mql 4 - Development course > Questions


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

Reply
 
LinkBack (2) Thread Tools Display Modes
  #51 (permalink)  
Old 12-25-2005, 10:49 PM
kamyar's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Iran
Posts: 635
kamyar is on a distinguished road
hi coder

i have a question :consider i want to draw an arrow on my chart as a result of a special condition.what should i do?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #52 (permalink)  
Old 12-25-2005, 11:30 PM
jerrymar's Avatar
Member
 
Join Date: Dec 2005
Posts: 29
jerrymar is on a distinguished road
Quote:
Originally Posted by keris2112
I think this will work:

Code:
smin = SsMin+(SsMax-SsMin)*K/100; 
smax = SsMax-(SsMax-SsMin)*K/100; 
	val1[shift]=0;
	val2[shift]=0;
	if (Close[shift]<smin)
		{
		uptrend = false;
		Alert("Silvertrend DOWN signal!!!");		}
	if (Close[shift]>smax)
		{
		uptrend = true;
		Alert("Silvertrend UP signal!!!");
		}
THANKS KERIS2112!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #53 (permalink)  
Old 12-26-2005, 04:55 AM
Member
 
Join Date: Dec 2005
Posts: 68
asmdev is on a distinguished road
Draw trendline?

I am wondering how to draw a trend/horizontal/vertical lines.
Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #54 (permalink)  
Old 12-31-2005, 11:33 AM
Member
 
Join Date: Dec 2005
Posts: 32
zuhainis is on a distinguished road
EA only open sell

Maybe Codersguru or Keris can help me with this.
I'm testing the attached EA but only sell trade are open. Why?

Thank you.

Btw Keris2112 thanks for you explanation regarding JMA Slope.
Attached Files
File Type: mq4 MA2CCI.mq4 (7.3 KB, 77 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #55 (permalink)  
Old 12-31-2005, 12:39 PM
Kalenzo's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 696
Kalenzo is on a distinguished road
Another Question

Mabye someone can tell me why i have to refresh that indicator to see it on the window chart and else indicators show immediately after load.
Attached Files
File Type: mq4 SAR_COLOR.mq4 (2.3 KB, 70 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #56 (permalink)  
Old 01-01-2006, 09:49 PM
Junior Member
 
Join Date: Dec 2005
Posts: 5
FX4EVER is on a distinguished road
Quote:
Originally Posted by codersguru
Hi folks,

I've got a lot of private messages asking me for helping with some pieces of code.

Here you can post your questions related to MQL4, and I'll do my best to answer them.
Hi codersguru,

It is quite nice of you to put an effort and write all the lessons for all those who need extra the push to move forward. Here is my feedback on the subject of bars.

Following your explanation about the bars in ‘Bars.pdf’, I have checked time of many consecutive bars on M1 USDCAD chart. So far I was under the impression, that no matter what market is doing, I am going to see a bar every minute interval. I was expecting to see few consecutive bars with Open=High=Low=Close (taken from previous minute Close) and Vol=0 during slow (no ticks) market.

I was surprised that, bars are not evenly spaced in one minute intervals. It looks like the time difference between two consecutive bars is random and always longer than one minute.

I went through all the buttons in the application (MetaTrader) looking for some settings relevant to this phenomenon. I did not find anything that can influence time between the bars other than ‘Periodicity’ settings. Given the above, I wonder how one can evaluate charts where time scale in randomized.

Can you, please, comment on this phenomenon?

FX4EVER
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #57 (permalink)  
Old 01-01-2006, 11:14 PM
fxid10t's Avatar
Member
 
Join Date: Sep 2005
Location: MidAtlantic USA
Posts: 71
fxid10t is on a distinguished road
Quote:
Originally Posted by FX4EVER
I was expecting to see few consecutive bars with Open=High=Low=Close (taken from previous minute Close) and Vol=0 during slow (no ticks) market.

I was surprised that, bars are not evenly spaced in one minute intervals. It looks like the time difference between two consecutive bars is random and always longer than one minute.
FX4EVER
On my IBFX bid based charts, if there is no trading on the broker's server, then there are no ticks sent to the client terminal, and 1 min & some 5 min bars may start "non-sequentially." This helps maintain the integrity and continuity of indicators. check out a demo account with Oanda to see what happens to indicators such as MACD, Stochastics or RSI when Open=High=Low=Close for a number of bars...continuity is lost.
__________________
"You should not have a favourite weapon. To become over-familiar with one weapon is as much a fault as not knowing it sufficiently well. You should not copy others, but use weapons which you can handle properly. It is bad for commanders and troopers to have likes and dislikes. These are things you must learn thoroughly." Miyamoto Musashi
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #58 (permalink)  
Old 01-04-2006, 12:53 AM
Junior Member
 
Join Date: Dec 2005
Posts: 5
FX4EVER is on a distinguished road
Bars Quoted Time.

Thanks for your replay.
It looks like I have been misunderstood.
Let me try differently, I expect that all bars on M1 chart will be spaced evenly. That is, if quoted time on one of the bars equals X, than the next bar time (going to the left side of the screen) should be X+60sec. Next... X+120sec.
What I found was that time difference between quoted times on two consecutive time was not frequently longer than 1 minute. Some time it was more than two minutes.
Do you suggest that if two consecutive bars are spaced 70sec, I have missed one bar 10sec ago? I am not sure what to think of it.
Is there something wrong with my: internet connection, software installation, broker, software bug or perhaps bars generation follows some conventions I am unaware of.

It is hard for me to accept the fact that the time scale shrinks and stretches. It would make difficult to make slope assessment on the screen in terms of pips per minute.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #59 (permalink)  
Old 01-05-2006, 01:57 AM
Audio's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 139
Audio is an unknown quantity at this point
Smile

Quote:
Originally Posted by codersguru
Hi folks,

I've got a lot of private messages asking me for helping with some pieces of code.

Here you can post your questions related to MQL4, and I'll do my best to answer them.
Hi guru ,can bt be and ea base on the dot or the arrow?Like when the arrow appear pointing up it go buy at that instant,and reverse when it point down? cheers audio
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #60 (permalink)  
Old 01-05-2006, 02:34 AM
mookfx's Avatar
Member
 
Join Date: Dec 2005
Location: Los Angeles, CA, USA
Posts: 37
mookfx is on a distinguished road
Info about an email alert?????

Hey Coders,

Keep up the good work on the lessons. I'm just about to start 17 and can't wait for the rest. I've got one question. I can identify the alert and get audio and arrow on screen. Is there a line of code that I could email the alert to an email account? As in email a small text message to your cell phone notifying you of an open/close of a position or a key cross or something. Any help is appreciated.

Thanks,

Mookfx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
histogram, forex, ZUP_v1.mq4

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

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


All times are GMT. The time now is 03:35 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.