Forex
Google
New signals service!

Go Back   Forex Trading > Programming > Metatrader Programming


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 Thread Tools Display Modes
  #201 (permalink)  
Old 08-06-2007, 07:36 AM
Iva Iva is offline
Junior Member
 
Join Date: Aug 2007
Posts: 6
Iva is on a distinguished road
Thank you very much for posting questions,Julia. I get to learn.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #202 (permalink)  
Old 08-06-2007, 08:34 AM
jlpi's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 289
jlpi is an unknown quantity at this point
In my opinion (difficult to say just like that) your problem may occur not because the program don't catch all ticks (by default all ticks are taken into account) but because the context is still busy when you want to execute some orders and then they are delayed to the next ticks.
If you run an EA on a live account the OrderSend or Modifiy should be programmed to take into account the context.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #203 (permalink)  
Old 08-06-2007, 04:56 PM
Iva Iva is offline
Junior Member
 
Join Date: Aug 2007
Posts: 6
Iva is on a distinguished road
Quote:
Originally Posted by jlpi View Post
In my opinion (difficult to say just like that) your problem may occur not because the program don't catch all ticks (by default all ticks are taken into account) but because the context is still busy when you want to execute some orders and then they are delayed to the next ticks.
If you run an EA on a live account the OrderSend or Modifiy should be programmed to take into account the context.
I tried on live account and the problem is not solved.
I need to hear what other experienced programmers say.
Thank you all.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #204 (permalink)  
Old 08-09-2007, 05:24 PM
1Dave7's Avatar
Member
 
Join Date: Aug 2007
Posts: 82
1Dave7 is on a distinguished road
Smile Values of the zig zag peaks and valley's

Is there anyway to get the values of the peaks and valley's of this zig zag indicator for the most recent High to the previous High and the most recent Low to the previous Low???

Dave
<><<<
Attached Files
File Type: mq4 ZigZagFirst.mq4 (4.2 KB, 22 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #205 (permalink)  
Old 08-12-2007, 01:39 PM
Junior Member
 
Join Date: Aug 2006
Posts: 1
zunk is on a distinguished road
Hi!

I'm doing an indicator which are wrinting arrows over bars according to my criteria. What I want is the indicator to draw arrows based on the 1 Hour timeframe no matter what timeframe is currently selected. Right now it just draws arrows. The strategy involves MA's and them you can program to just use H1 period (iMA(..H1_PERIOD..) or something) but how about price? Low[]? Close[]? Can you make it just calculate on 1 Hour no matter the choosen timefram but stull display the arrows on say the 5 minute chart?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #206 (permalink)  
Old 08-12-2007, 09:28 PM
1Dave7's Avatar
Member
 
Join Date: Aug 2007
Posts: 82
1Dave7 is on a distinguished road
Question Comments Input by User

Is there anyway to allow the user to input comments using an indicator input??

I then can use a ObjectCreate to place them on the graph and they will stay put when I max the graph and downsize the graph. Is this possible?? And how should I code the indicator input?? For use in my Manual Trade Log I am creating.

Dave
<><<<
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #207 (permalink)  
Old 08-13-2007, 02:49 AM
1Dave7's Avatar
Member
 
Join Date: Aug 2007
Posts: 82
1Dave7 is on a distinguished road
Question Got the info, now how do I use the info in a formula??

Forget it.

Last edited by 1Dave7; 08-13-2007 at 03:26 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #208 (permalink)  
Old 08-13-2007, 03:23 AM
Senior Member
 
Join Date: Feb 2006
Location: New Zealand
Posts: 249
Craig is on a distinguished road
Quote:
Originally Posted by 1Dave7 View Post
double b=MarketInfo("EURUSD",MODE_BID);

1) How do I get this into a numeric variable that I can add and subtract with???

2) What can I substitute "EURUSD" with that I can use it on any currency with hardcoding the currency pair in?? NULL does not seem to work.

If you got the answers, Please help!

Dave
<><<<
1. A double is a numeric value which you can add and subtract, so it's already done.
2. MarketInfo(Symbol(), MODE_BID); uses the current chart which the ea or indicator is attached to.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #209 (permalink)  
Old 08-13-2007, 05:22 AM
1Dave7's Avatar
Member
 
Join Date: Aug 2007
Posts: 82
1Dave7 is on a distinguished road
Smile

Great, Thanks - did the trick! I will document this for the future in my notes.

Have a great week!

Dave
<><<<
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #210 (permalink)  
Old 08-14-2007, 12:34 AM
Senior Member
 
Join Date: Jun 2006
Posts: 1,091
prasxz is on a distinguished road
how to draw little circle

Hi MQL master,

I need help , how to draw little circle on each end of hi low zigzag line .?

Thanks

==================
Forex Indicators Collection
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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 On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Learning Cycles For New Traders Dan7974 General Discussion 350 01-18-2008 06:04 PM
Learning to code for autotrading GoatT Metatrader Programming 8 01-10-2007 08:55 PM
Self learning expert mrtools Expert Advisors - Metatrader 4 32 10-22-2006 05:29 PM


All times are GMT. The time now is 10:22 AM.



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