Forex
Google

Go Back   Forex Trading > Programming > Metatrader Programming
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
  #121 (permalink)  
Old 07-24-2007, 06:20 AM
MQL4 MQL4 is offline
Member
 
Join Date: Jul 2007
Posts: 41
MQL4 is on a distinguished road
MQL4 Learning

if(bid == MarketInfo(Symbol(),MODE_BID)+10)

It is intended that in a certain time the market recognized the price which is for example, x. And will sell 10 pips above this x. I tried this code, and it doesn't work.

I need the syntax code to sell 10 pips above the level on a certain time.

Help, codersguru, ryanklefas, shinigami, anybody?

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #122 (permalink)  
Old 07-24-2007, 06:21 AM
MQL4 MQL4 is offline
Member
 
Join Date: Jul 2007
Posts: 41
MQL4 is on a distinguished road
MQL4 Learning

if(bid == MarketInfo(Symbol(),MODE_BID)+10)

It is intended that in a certain time the market recognized the price which is for example, x. And will sell 10 pips above this x. I tried this code, and it doesn't work.

I need the syntax code to sell 10 pips above the level on a certain time.

Help, newsdigital, codersguru, ryanklefas, shinigami, anybody?

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #123 (permalink)  
Old 07-24-2007, 06:26 AM
Shinigami Shinigami is offline
Senior Member
 
Join Date: Nov 2006
Location: Ukraine
Posts: 492
Shinigami is on a distinguished road
2 ways to sell above the price
if(Bid == bid+10)
OrderSend....

alternative
OrderSend(...,OP_SELLLIMIT...)
__________________
MQL4 programming is easy ^^
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #124 (permalink)  
Old 07-24-2007, 06:34 AM
jlpi's Avatar
jlpi jlpi is offline
Senior Member
 
Join Date: Oct 2006
Posts: 275
jlpi is an unknown quantity at this point
MQL4,

it is incorrect to write MarketInfo(Symbol(),MODE_BID)+10 or Bid+10,
you should write MarketInfo(Symbol(),MODE_BID)+10*Point or Bid+10*Point to take into account the value of the pip
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #125 (permalink)  
Old 07-24-2007, 04:21 PM
MQL4 MQL4 is offline
Member
 
Join Date: Jul 2007
Posts: 41
MQL4 is on a distinguished road
Quote:
Originally Posted by jlpi View Post
MQL4,

it is incorrect to write MarketInfo(Symbol(),MODE_BID)+10 or Bid+10,
you should write MarketInfo(Symbol(),MODE_BID)+10*Point or Bid+10*Point to take into account the value of the pip
Thank You JLPI, and everyone else!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #126 (permalink)  
Old 07-28-2007, 02:48 AM
MQL4 MQL4 is offline
Member
 
Join Date: Jul 2007
Posts: 41
MQL4 is on a distinguished road
Smile Easy, Simple, EA

Can someone please code this for me?

-At 22:59:59, I want the EA to set a straddle 10 pips above and below the current price.

-No Stop-Loss, No TakeProfit

-Exit at 6:30:05

That's it!

Thanks in Advance,
MQL4.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #127 (permalink)  
Old 07-28-2007, 06:20 AM
MQL4 MQL4 is offline
Member
 
Join Date: Jul 2007
Posts: 41
MQL4 is on a distinguished road
Is it too hard???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #128 (permalink)  
Old 07-28-2007, 07:09 AM
newdigital newdigital is online now
Administrator
 
Join Date: Sep 2005
Posts: 15,230
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
It was created already. It is ScheduleTrader EA here Indicators/EAs for news and trading signals
As to the orders (+10 pips or -10 pips) so I think it is pending orders. This ScheduleTrader EA may do it with any order, any time according to your schedule and so on. As I know many people requested this EA.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #129 (permalink)  
Old 07-28-2007, 03:12 PM
MQL4 MQL4 is offline
Member
 
Join Date: Jul 2007
Posts: 41
MQL4 is on a distinguished road
Quote:
Originally Posted by newdigital View Post
It was created already. It is ScheduleTrader EA here Indicators/EAs for news and trading signals
As to the orders (+10 pips or -10 pips) so I think it is pending orders. This ScheduleTrader EA may do it with any order, any time according to your schedule and so on. As I know many people requested this EA.
Thanks fo replying newsdigital,
I don't want tit with pending orders, I want it to be just trades.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #130 (permalink)  
Old 07-28-2007, 03:41 PM
ryanklefas's Avatar
ryanklefas ryanklefas is offline
Senior Member
 
Join Date: Apr 2006
Location: USA
Posts: 438
ryanklefas is on a distinguished road
Quote:
Originally Posted by MQL4 View Post
Thanks fo replying newsdigital,
I don't want tit with pending orders, I want it to be just trades.
What's the difference? You'll get the orders in either way. With the pendings, you won't have slippage. I also made an EA like that... with pending orders.
__________________
"Don't work harder, work smarter." -- my Java professor

Coder for Hire:
http://www.firecell-fx.com
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
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 02:49 PM.