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
  #411 (permalink)  
Old 10-19-2006, 03:18 PM
Banned
 
Join Date: Oct 2005
Posts: 387
Bongo is an unknown quantity at this point
Market Execution

Hi,
I need a help.
On market execution,
It is posible to put instant of Ask or Bid
Market Price.
res = OrderSend(Symbol(),OP_BUY,lots,Ask,Slippage,sl,tp, "D2",OrderID,0,Blue);

something as:
res = OrderSend(Symbol(),OP_BUY,lots,MarketPrice,Slippag e,sl,tp,"D2",OrderID,0,Blue);
Thanks
B.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #412 (permalink)  
Old 10-20-2006, 06:30 AM
Member
 
Join Date: Aug 2006
Location: singapore
Posts: 40
eooojj is on a distinguished road
Anywhere that i can find SIMPLE step-by-step instruction on how to operate and the EA

Dear Anyone,

Anywhere that i can find SIMPLE step-by-step instruction on how to operate and the EA?
Please please help. Many thanks.

ed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #413 (permalink)  
Old 10-20-2006, 08:22 AM
Administrator
 
Join Date: Sep 2005
Posts: 16,815
Blog Entries: 145
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Quote:
Originally Posted by eooojj
Dear Anyone,

Anywhere that i can find SIMPLE step-by-step instruction on how to operate and the EA?
Please please help. Many thanks.

ed
Try Codersguru lessons:
- http://www.metatrader.info/node/27
- http://www.metatrader.info/node/34
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #414 (permalink)  
Old 10-20-2006, 09:52 PM
fotovat's Avatar
Member
 
Join Date: May 2006
Posts: 74
fotovat is on a distinguished road
hello,

How I can use == with current price ?

I want code somting like this :

if(CurrentPrice==(dailylow+20*point) && OrdersTotal()<=0)

. . .

I have Dailylow value but if i use "ask" insted of price I can't use == . I can use only <=>


I think i should convert the currentprice to str , right?
pending order is not good becoz it modify alot!

any advice ?

Last edited by fotovat; 10-20-2006 at 10:26 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #415 (permalink)  
Old 10-21-2006, 05:30 AM
Eaglehawk's Avatar
Senior Member
 
Join Date: Jun 2006
Posts: 141
Eaglehawk is on a distinguished road
Quote:
Originally Posted by fotovat
hello,

How I can use == with current price ?

I want code somting like this :

if(CurrentPrice==(dailylow+20*point) && OrdersTotal()<=0)

. . .

I have Dailylow value but if i use "ask" insted of price I can't use == . I can use only <=>


I think i should convert the currentprice to str , right?
pending order is not good becoz it modify alot!

any advice ?
why "==" doesn't work is beyond me, but maybe a little grammatical advise in coding, what it looks like you're trying to say to the computer is put this way. who knows, maybe it'll fix ur problem.

if ((CurrentPrice==(dailylow+20*point)) && OrdersTotal()<=0)

one other possiblity is that, it does work, but the current price doesn't often equal exactly 20 pips above teh daily low, idk, you're the only one who has to whole code to tell.
__________________
"One's ability to accomplish his or her goals is limited only by the ingenuity of how one uses what he or she already knows."- Eaglehawk
REMEMBER,
"Genius is nothing but a greater aptitude for patience." –Benjamin Franklin

____________________________________

Have a simple ea you just can't figure out how to code??? Odds are you can make it here. Just remember to push complete when you're done, NOT SAVE!!!

http://sufx.core.t3-ism.net/ExpertAdvisorBuilder

Last edited by Eaglehawk; 10-21-2006 at 05:32 AM. Reason: one other possibility
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #416 (permalink)  
Old 10-21-2006, 07:46 AM
Junior Member
 
Join Date: Sep 2006
Posts: 13
forexx is on a distinguished road
help me plz

hi all i was wondering if some one could help me make any EA not open source i mean no one can see the code and make i trial version that work for a limited time only????????
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #417 (permalink)  
Old 10-24-2006, 07:20 PM
Nicholishen's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 531
Nicholishen is on a distinguished road
why are coders...

I am curious, why are coders using "MarketInfo(OrderSymbol(),MODE_BID)" instead of simply using the "Bid"?
__________________
"Anyone who has never made a mistake has never tried anything new." -Albert Einstein
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #418 (permalink)  
Old 10-24-2006, 07:21 PM
Kalenzo's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 696
Kalenzo is on a distinguished road
Quote:
Originally Posted by Nicholishen
I am curious, why are coders using "MarketInfo(OrderSymbol(),MODE_BID)" instead of simply using the "Bid"?
Well, with the market info function u are able to check eg Bid price from GBPUSD when UR on eurusd chart
__________________
You need proffesional mql coder? Contact me! I will help you!
........................................
http://www.fxservice.eu/
........................................
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #419 (permalink)  
Old 10-25-2006, 12:47 PM
Banned
 
Join Date: Oct 2005
Posts: 387
Bongo is an unknown quantity at this point
ECN feed

Quote:
Originally Posted by Nicholishen
I am curious, why are coders using "MarketInfo(OrderSymbol(),MODE_BID)" instead of simply using the "Bid"?
I'm using this:
OrderSend(Symbol(),OP_BUY,lotsi,(Ask-MarketInfo( Symbol(), MODE_STOPLEVEL )*Point),slippage,.......
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #420 (permalink)  
Old 10-27-2006, 05:51 PM
Senior Member
 
Join Date: Aug 2006
Posts: 422
RickW00716 is on a distinguished road
Elite indicators

I am not interested in EA's...I prefer to manually trade...however, I am interested in the indicators that are only available in the elite section...Is there any more information available on these? I would not mind subscribing to this section I just want to know how many indicators there are and maybe what type(purpose) they are.
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 04:20 AM.



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