Forex
Google

Go Back   Forex Trading > Metatrader Training > Metatrader 4 mql 4 - Development course > Questions
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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
  #1 (permalink)  
Old 04-03-2006, 08:37 AM
mkowal mkowal is offline
Junior Member
 
Join Date: Oct 2005
Posts: 1
mkowal is on a distinguished road
access to EA functions from custom indicator

hi,

it is my first post / question on the forum.
so far I have used only VT platform for programming auto-trading systems, but it has too many limitations.

now I have been trying to create some EAs and custom indicators under MQL4. it looks simmilar to old good C, so I really like it.

As I learnt from the mql web page, the EAs are for trading but I can't make any visualisation on the chart from it,
while CIs are for visualization of indicators without possibilities to initiate any trading action.

Please, correct me if the above statement is not correct.

Now the problem:

I am trying to create a custom indicator on the basis of MA, which has a various period. The period is changing at the moment of closing of an open position.

Can I check from the custom indicator if there is an open position, or such functions are dedicated only for EA ?

Another question:

As I understand the way EA works, the whole start() section is run with each tick.
What happens if not all instruction are done and new tick comes ?
i.e. if I write a loop with very extensive calculations in it, and it take much longer than 1 tick period:
- the present calculation are going to be breaken and with new tick new calculation starts ?
- everything waits for end of the present calculations ?
- there is another process run simultaneously for the next tick ?


I would appreciate if someone could answer my questions despite the fact that they may sound strange.

Thank you in advance,

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


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

vB 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
Using Custom Indicator in EA (MT4) jimven Setup Questions 5 05-28-2007 11:35 AM
Custom Indicator vs EA tim_talmadge Expert Advisors - Metatrader 4 12 05-04-2007 04:36 PM
MT4 gurus: How do I access an indicator of a different time frame? ycomp Metatrader 4 5 02-17-2006 02:49 PM
using a custom indicator forextrend Metatrader 4 2 12-02-2005 01:36 AM


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