Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4


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
  #51 (permalink)  
Old 07-30-2008, 12:58 AM
Junior Member
 
Join Date: Feb 2008
Posts: 5
Puzastyle is on a distinguished road
GBPJPY ( sell ) at 0000 hrs

Bars in test 2329
Ticks modelled 1451818
Modelling quality 65.05%
Mismatched charts errors 0
Initial deposit 1000.00
Total net profit 511.69
Gross profit 511.69
Gross loss 0.00
Profit factor
Expected payoff 9.14
Absolute drawdown 259.98
Maximal drawdown 269.24 (26.68%)
Relative drawdown 26.68% (269.24)
Total trades 56
Short positions (won %) 56 (100.00%)
Long positions (won %) 0 (0.00%)
Profit trades (% of total) 56 (100.00%)
Loss trades (% of total) 0 (0.00%)
Largest
profit trade 9.26
loss trade 0.00
Average
profit trade 9.14
loss trade 0.00
Maximum
consecutive wins (profit in money) 56 (511.69)
consecutive losses (loss in money) 0 (0.00)
Maximal
consecutive profit (count of wins) 511.69 (56)
consecutive loss (count of losses) 0.00 (0)
Average
consecutive wins 56
consecutive losses 0


I'm sorry with the many posts...
IF the TP doesn't hit in the same day... thats our opportunity to gain more pips by.. placing order step by step example..

USDJPY 28.07.08 at 0700hrs
EA open buy at 107.83 , TP 107.93 but it didn't hit it went down to -50pips below, we can place another buy order here 107.30 with TP 107.93, it hit last night when the price go up to 108..
based on EA... price can go below -160pips... so we can place another order
-50, -100, -150....

just think of some strategy... based on EA result...

*no stop loss apply*
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #52 (permalink)  
Old 07-30-2008, 12:54 PM
Junior Member
 
Join Date: Feb 2008
Posts: 5
Puzastyle is on a distinguished road
EA strategy for TIMEBASED

hi. me again..

can someone help me to modify TIMEBASEDEA as below ;

add multiple order buy/sell if TP didn't hit with setting 50/100/200 point diff with the open price...example USDJPY

open buy UJ at 0700hrs with TP10..
(on 28/7) at market price 107.83...TP 108.83
open pending order at price 107.33, 106.83 and 106.33.... if TP hit.. no order will open....wait for next cycle 0700hrs...

manual back test show that by doing this...we can maximise the profit..
max DD 160 point (18/3-30/7)

max pip may gain ..(10+50+100+150=310pips) per cycle....

hope can test this strategy with EA...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #53 (permalink)  
Old 08-12-2008, 03:57 AM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,132
matrixebiz is on a distinguished road
Need Simple EA please

Looking for an EA that checks a time that I want like 09:00 and depending on the bars middle price, set a BuyStop and SellStop order at the price or pips away that I want?
Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #54 (permalink)  
Old 08-12-2008, 05:32 AM
Senior Member
 
Join Date: Nov 2006
Posts: 156
luxinterior is on a distinguished road
I've answered a few of your questions before. It looked like your were trying to write you own which is great. What's the problem you're having with this one?

Lux
__________________
Build An Expert Advisor. FREE E-course As Seen On TV
ForexArea.com
Users of Gap Trader from 'Forex-Assistant' MUST Read This
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #55 (permalink)  
Old 08-12-2008, 10:46 AM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,132
matrixebiz is on a distinguished road
Quote:
Originally Posted by luxinterior View Post
I've answered a few of your questions before. It looked like your were trying to write you own which is great. What's the problem you're having with this one?

Lux
Thank you for helping. I'm not sure how to set it up to open One BuySop and One SellStop at the same time based on the medium price value of the previous candle.
What is wrong with my BuyStop order?
Code:
ticket=OrderSend(Symbol(),OP_SELLSTOP,Lots,Bid-Distance,Slippage,Ask+StopLoss*Point+Distance,Bid-TakeProfit*Point-Distance,"",MagicNumber,0,Red);
I get invalid Stoploss

Last edited by matrixebiz; 08-12-2008 at 11:14 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #56 (permalink)  
Old 08-12-2008, 04:17 PM
Senior Member
 
Join Date: Feb 2007
Posts: 716
FerruFx is on a distinguished road
Quote:
Originally Posted by matrixebiz View Post
Thank you for helping. I'm not sure how to set it up to open One BuySop and One SellStop at the same time based on the medium price value of the previous candle.
What is wrong with my BuyStop order?
Code:
ticket=OrderSend(Symbol(),OP_SELLSTOP,Lots,Bid-Distance,Slippage,Ask+StopLoss*Point+Distance,Bid-TakeProfit*Point-Distance,"",MagicNumber,0,Red);
I get invalid Stoploss
Guess that your "distance" is a number of pips like 50. If so, you must *Point in order to add it to any price value.

FerruFx
__________________
THE HEART of FOREX & THE PROBABILITY METER - Trade with 100% confidence and ... Stress Less!!!
Coding services: Experts Advisors, indicators, alerts, etc ... more info by PM
NEW: video presentation of the Probability Meter ... 24hrs action on the website
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #57 (permalink)  
Old 08-12-2008, 04:36 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,132
matrixebiz is on a distinguished road
Quote:
Originally Posted by FerruFx View Post
Guess that your "distance" is a number of pips like 50. If so, you must *Point in order to add it to any price value.

FerruFx
Can you guys check this EA, in tester I don't see it opening both Buy and Sell at the same time ?? And I don't think the CloseHour set in my order function command for order Expiration is working.

I can't get it to open two orders at the same time? One BuyStop and One SellStop
Thanks
Attached Files
File Type: mq4 TimeBasedEAMOD 2.mq4 (4.2 KB, 14 views)

Last edited by matrixebiz; 08-12-2008 at 05:36 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #58 (permalink)  
Old 08-12-2008, 06:35 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,132
matrixebiz is on a distinguished road
Quote:
Originally Posted by proverbs View Post
This one will do what I think your looking for.

Hope this helps.
Attachment 35938
This EA does open Two orders at the specified time but what is all this for;
extern int take_profit = 100;//default 40;
extern int open_long = 23;//default 18; current is 15 + spread(4)
extern int open_short = 20;//default 22; current is 15
extern int stop_long = 30;//default 22; current is 20
extern int stop_short = 30;//default 18; current is 20 + spread(4)

Don't need it all. Can someone clean it up a bit. Just have it open the Buy/Sell Stop orders at a certain time and pip gap, and set a pending order expire of a couple hours.

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

Bookmarks

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 On
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/expert-advisors-metatrader-4/8067-help-how-write-simple-ea-buy-sell-specific-time.html
Posted By For Type Date
درخواست Indicator و expert - صفحه 84 - Sarmaye Forums This thread Refback 03-23-2008 11:36 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Detecting price trend independent of a specific time frame gee Metatrader 4 4 02-24-2007 04:53 PM
Anyone want to write a simple EA? Kaper Suggestions for Trading Systems 6 10-29-2006 10:36 PM
A Simple Buy/Sell Script excite2 Expert Advisors - Metatrader 4 8 07-18-2006 03:16 AM
Simple question of determining the time of day Fishtank Metatrader 4 2 04-04-2006 04:12 AM


All times are GMT. The time now is 09:34 PM.



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