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
  #271 (permalink)  
Old 01-07-2008, 08:33 AM
Maury74's Avatar
Maury74 Maury74 is offline
Member
 
Join Date: Dec 2005
Posts: 46
Maury74 is on a distinguished road
So the only solution is to set a function that close all the orders when time is > than x??



if(orderExists())

OrderSelect(getOrderTicket(),SELECT_BY_TICKET,MODE _TRADES);

if(OrderType() == OP_BUYSTOP && Bars>=openbar )
{
if(Hour() > 21)
{
closeOrder(getOrderTicket());
}

Is it right???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #272 (permalink)  
Old 01-20-2008, 11:47 PM
powerstonemagatama powerstonemagatama is offline
Junior Member
 
Join Date: Oct 2007
Posts: 4
powerstonemagatama is on a distinguished road
Question Is there indicator that displays delimitation of time?

Nice to meet you.
I am Japanese.
The translation function is used.

The scale that displays time under the chart is displayed in MT4.

Is there "Indicator that displays the delimitation of a day, one week, and one month"
in this scale?

Last edited by powerstonemagatama : 01-20-2008 at 11:52 PM. Reason: The spelling was different.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #273 (permalink)  
Old 01-20-2008, 11:59 PM
Dave137 Dave137 is offline
Senior Member
 
Join Date: Oct 2007
Posts: 162
Dave137 is on a distinguished road
Smile

Hi from U.S. (Houston, Texas)!

If you go to the MT4 platform toolbar>Charts>Properties check 'show period separators' check box and it will divide up the graph in days. How is Godzilla these days?

Dave
<><<<
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #274 (permalink)  
Old 01-21-2008, 12:13 AM
fxbs fxbs is offline
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 1,630
fxbs is on a distinguished road
Godzilla (N.Kositsin) - actually from Russia
if he in a bad mood this days - you don't wanna mess with him
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #275 (permalink)  
Old 01-21-2008, 12:28 AM
powerstonemagatama powerstonemagatama is offline
Junior Member
 
Join Date: Oct 2007
Posts: 4
powerstonemagatama is on a distinguished road
Talking Thank you for the answer.

It is possible to have done.



Is there a method of displaying the delimitation only in "Begin about a day" and "Begin
about one week" according to Japan standard time, too?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #276 (permalink)  
Old 01-21-2008, 12:38 AM
Linuxser's Avatar
Linuxser Linuxser is offline
Moderator
 
Join Date: May 2006
Location: Helliconia (Autumn)
Posts: 2,182
Linuxser has disabled reputation
Quote:
Originally Posted by powerstonemagatama View Post
Nice to meet you.
I am Japanese.
The translation function is used.

The scale that displays time under the chart is displayed in MT4.

Is there "Indicator that displays the delimitation of a day, one week, and one month"
in this scale?
Follow the lines that MT4 have by default.

12.gif

123.gif

1234.gif

12345.gif
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #277 (permalink)  
Old 01-21-2008, 01:13 AM
powerstonemagatama powerstonemagatama is offline
Junior Member
 
Join Date: Oct 2007
Posts: 4
powerstonemagatama is on a distinguished road
Talking Thank you for Mr. Linuxser.

It questions again when there is a thing that doesn't understand.
My best regards at that time.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #278 (permalink)  
Old 01-21-2008, 02:09 AM
MANSTIR's Avatar
MANSTIR MANSTIR is offline
Member
 
Join Date: Nov 2007
Posts: 79
MANSTIR is on a distinguished road
Talking How can i hide my input parameter on ea?

how can i hide my input parameter on my ea and only appear lot size in expert advisors (input)--> properties?

can u tell me the source code, thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #279 (permalink)  
Old 01-21-2008, 03:40 AM
Dave137 Dave137 is offline
Senior Member
 
Join Date: Oct 2007
Posts: 162
Dave137 is on a distinguished road
Smile

In the code, you have extern int or extern double then a variable name and amount, such as extern double period=5;

Delete the 'extern' from the statement(s) and they will not show in the setup box - double period=5; or int period=5;

Dave
<><<<
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #280 (permalink)  
Old 01-21-2008, 05:13 AM
MANSTIR's Avatar
MANSTIR MANSTIR is offline
Member
 
Join Date: Nov 2007
Posts: 79
MANSTIR is on a distinguished road
Quote:
Originally Posted by Dave137 View Post
In the code, you have extern int or extern double then a variable name and amount, such as extern double period=5;

Delete the 'extern' from the statement(s) and they will not show in the setup box - double period=5; or int period=5;

Dave
<><<<
thanks dave, it works...


i'm very busy man now hehehehe

Last edited by MANSTIR : 01-21-2008 at 06:49 AM.
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 11:11 AM.