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 (1) Thread Tools Display Modes
  #551 (permalink)  
Old 12-11-2007, 12:23 PM
Senior Member
 
Join Date: Mar 2006
Location: La Verne,CA
Posts: 556
MrPip is on a distinguished road
trailing stop needed

Quote:
Originally Posted by PANNEK View Post
can you any body help me?
I want expert 20_200 with trailing stop.
PLEASE put anybody.
What type of trailing stop?
I have over 10 types now.

Robert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #552 (permalink)  
Old 12-11-2007, 04:25 PM
Junior Member
 
Join Date: Jul 2007
Posts: 19
PANNEK is on a distinguished road
Triling Stop

Quote:
Originally Posted by MrPip View Post
What type of trailing stop?
I have over 10 types now.

Robert
Sorry, I don't know exactly, but
I thing is good like this ea. EA_TrendStrengthEMAv2
Attached Files
File Type: mq4 EA_TrendStrengthEMAv2.mq4 (6.7 KB, 12 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #553 (permalink)  
Old 12-12-2007, 03:16 AM
Member
 
Join Date: Jul 2007
Posts: 61
Ghamm is on a distinguished road
Today Yesterday Now functions..

I want to get a date range.

Yesterday at 5 PM to 3:00 AM today... then want to look at the bars between that range.

I dont see a function to get the beginning of the day (seconds from 1970)
I can do the math myself, by using modulus etc. but wondering if there any easy mt4 functions Im not seeing to do this..
There must be an easy way in MT4.


Craig
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #554 (permalink)  
Old 12-12-2007, 07:32 AM
Senior Member
 
Join Date: Feb 2006
Posts: 559
Michel is on a distinguished road
Quote:
Originally Posted by Ghamm View Post
...
I dont see a function to get the beginning of the day (seconds from 1970)
I can do the math myself, by using modulus etc. but wondering if there any easy mt4 functions Im not seeing to do this..
There must be an easy way in MT4.

Craig
PHP Code:
TodayBegin=iTime(NULL,PERIOD_D1,0); 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #555 (permalink)  
Old 12-12-2007, 09:03 AM
Junior Member
 
Join Date: Jul 2007
Posts: 19
PANNEK is on a distinguished road
MrPip help me please...

Quote:
Originally Posted by PANNEK View Post
Sorry, I don't know exactly, but
I thing is good like this ea. EA_TrendStrengthEMAv2
if you can, please help me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #556 (permalink)  
Old 12-12-2007, 09:50 AM
Senior Member
 
Join Date: Mar 2006
Location: La Verne,CA
Posts: 556
MrPip is on a distinguished road
trailing stop added

Quote:
Originally Posted by PANNEK View Post
if you can, please help me
Try this version. I did not change the version number, just added trailing stop for the EA_TrendStrength you posted.

Robert
Attached Files
File Type: mq4 20_200 expert_v3.mq4 (6.0 KB, 22 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #557 (permalink)  
Old 12-12-2007, 10:30 AM
Junior Member
 
Join Date: Jul 2007
Posts: 19
PANNEK is on a distinguished road
Thanks

Quote:
Originally Posted by MrPip View Post
Try this version. I did not change the version number, just added trailing stop for the EA_TrendStrength you posted.

Robert
Thanks MrPip
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #558 (permalink)  
Old 12-12-2007, 11:17 PM
nondisclosure007's Avatar
Senior Member
 
Join Date: Apr 2007
Posts: 100
nondisclosure007 is on a distinguished road
looping problem..., help!

I'm trying to figure out what is wrong here. I wrote this little indicator as to try and find out why I can't seem to draw arrows on every single bar in a chart. No good reason to.

I have another indicator that i'm working on that'll be discreet on choosing which one, i wrote this to try and figure out what the darn problem is.

It only draws an arrow on the bottom of the candle for the last few bars. It should draw arrown on every single bar in the chart on the top and bottom of each candle.

And only 1 candle's data is showing up in the data windows.

I've included a pic and the indicator. any help would be appreciated.
screwed up indicator.gif
Attached Files
File Type: mq4 Arrow Every Bar.mq4 (1.5 KB, 16 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #559 (permalink)  
Old 12-12-2007, 11:45 PM
ralph.ronnquist's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 280
ralph.ronnquist is on a distinguished road
Are you sure? Have you "compressed" the price scale to make sure it doesn't draw outside the current window?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #560 (permalink)  
Old 12-12-2007, 11:56 PM
Senior Member
 
Join Date: Feb 2006
Posts: 559
Michel is on a distinguished road
Quote:
Originally Posted by nondisclosure007 View Post
I'm trying to figure out what is wrong here. I wrote this little indicator as to try and find out why I can't seem to draw arrows on every single bar in a chart. No good reason to.

I have another indicator that i'm working on that'll be discreet on choosing which one, i wrote this to try and figure out what the darn problem is.

It only draws an arrow on the bottom of the candle for the last few bars. It should draw arrown on every single bar in the chart on the top and bottom of each candle.

And only 1 candle's data is showing up in the data windows.

I've included a pic and the indicator. any help would be appreciated.
Attachment 49299
You have to declare the two buffers : #property indicator_buffers 2
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
candle time, CHinGsMAroonCLK, coders guru, expert advisor, forex, how to code, I_XO_A_H, mechanical trading, trading

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/metatrader-programming/554-how-code.html
Posted By For Type Date
Need an experienced programmer? - Page 2 Post #0 Refback 09-24-2008 07:24 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to code this? iscuba11 Metatrader 4 mql 4 - Development course 1 08-03-2007 05:22 PM


All times are GMT. The time now is 08:57 AM.



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