Forex



Go Back   Forex Trading > Discussion Areas > Suggestions for Trading Systems
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 02-25-2006, 03:57 PM
shwetha's Avatar
Member
 
Join Date: Feb 2006
Posts: 52
shwetha is on a distinguished road
Thumbs up newbie need help to code my strategy to autotrade

hi to all

i am new to this forum , can any one here, code my strategy to automate my trades in eur/usd .

the rules are simple.

Buy
(1)when price is above 50 ema by 20 pips,
stoploss 50 pips ,profit target 100 pips

(2) previous price cross should be a whipsaw

(3) i should get alert when my position is unfavourable by 25 pips, and my position is favourable by 50 pips


sell
(1)when price is below 50 ema by 20 pips,
stoploss 50 pips ,profit target 100 pips

(2) previous price cross should be a whipsaw

(3) i should get alert when my position is unfavourable by 25 pips, and my position is favourable by 50 pips


any help in this regard is highly appreciated



bye
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 02-25-2006, 06:42 PM
cucurucu's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 314
cucurucu is on a distinguished road
Exclamation it's hard/impossible to define the whipsaw for an EA

Hi shwetha

What you are asking for, is kind of difficult. I'm talking about the (2) condition. The first condition is simple but the problem is defining a whipsaw.
How do you set your conditions for the whipsaw? (Open & Close of the bar < EMA50 and High>EMA50? Highest of the last X bars < EMA50+20pips & last Close<EMA50?...) These are simple examples but You have to give precise instructions.

I hope you understand my point. If you have any ideea on how to define the whipsaw please post it here.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2006, 10:12 AM
shwetha's Avatar
Member
 
Join Date: Feb 2006
Posts: 52
shwetha is on a distinguished road
Quote:
Originally Posted by cucurucu
Hi shwetha

What you are asking for, is kind of difficult. I'm talking about the (2) condition. The first condition is simple but the problem is defining a whipsaw.
How do you set your conditions for the whipsaw? (Open & Close of the bar < EMA50 and High>EMA50? Highest of the last X bars < EMA50+20pips & last Close<EMA50?...) These are simple examples but You have to give precise instructions.

I hope you understand my point. If you have any ideea on how to define the whipsaw please post it here.

technically a buy or sell signal is generated but it fails to give a pre defined profit target level is known as whipsaw .by putting second condition in my stategy i want take trade after one such whipsaw .in my eg a signal which has not generated 100 pips profit

i hope i clarified u'r doubt

thanks for u'r reply
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 02-26-2006, 10:58 AM
cucurucu's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 314
cucurucu is on a distinguished road
Hi Shwetha

This is more precise. I will think about it.

(I kow what a whipsaw is, the problem was how to put it on code.)

Bye.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 02-27-2006, 09:23 AM
shwetha's Avatar
Member
 
Join Date: Feb 2006
Posts: 52
shwetha is on a distinguished road
hello cucurucu

Quote:
Originally Posted by cucurucu
This is more precise. I will think about it.

(I kow what a whipsaw is, the problem was how to put it on code.)

Bye.

ok meanwhile can you code for buy /sell condition one and for to generate alerts .regarding whipsaw i will monitor manually

iam eagerly looking to code my stategy and to trade automatically


thanks in advance
bye
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 02-27-2006, 09:49 AM
cucurucu's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 314
cucurucu is on a distinguished road
Unhappy This is your EA...

...but you have to think of some filters. This condition only, has no chances of success.
I have coded only the buy/sell section (condition 1). You can set it on "Ask manual confirmation" so you can decide if the EA should enter the trade.

If you find any bugs in this EA, please let me know.

Bye.
Attached Files
File Type: mq4 shwetha.mq4 (4.4 KB, 66 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 02-27-2006, 10:50 AM
shwetha's Avatar
Member
 
Join Date: Feb 2006
Posts: 52
shwetha is on a distinguished road
not able to open

hi

i downloaded the file ,but when i tried to open it it says access to the specified path /file or device is denied

what should i do

are u online now

any how thx a lot cucurucu

awiting for u'r reply
bye
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 02-27-2006, 10:55 AM
cucurucu's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 314
cucurucu is on a distinguished road
1.You have to copy the file to your ProgramFiles\Metatrader\Experts folder.
2. You have to open the file using MetaEditor.
3. Click Compile button in MetaEditor.
4. Run MT4 and attach the EA to a chart.

Please note that the timeframe is set to 0. This means that the EA will use the timeframe of the chart.

I hope this solves your problems.

PS - This EA is working with MT4. I hope you don't use MT3.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #9 (permalink)  
Old 02-27-2006, 11:16 AM
shwetha's Avatar
Member
 
Join Date: Feb 2006
Posts: 52
shwetha is on a distinguished road
hello cucurucu

hi i copied the file to program files\interbankfx\experts
it is copied i can see the code in meta editor ,but i could not see copile icon there but under file verify button is there ,when i clicked it
it verified the code and says 262 errors and 0 warnings
iam using mt 4 only

how to go about further

bye
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #10 (permalink)  
Old 02-27-2006, 11:26 AM
cucurucu's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 314
cucurucu is on a distinguished road
:) you are not using MQL4

You are not using the right version of MetaEditor. MQL4 doesn't have "verify" button. Verify button is only in MetaEditor 3.x Please go to Help - About and see for yourself.
I doubt you are using MetaTrader4 since the MetaEditor version you're using is 3.x.

Good Luck!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't you autotrade? forexts Setup Questions 9 07-03-2009 10:46 PM
AutoTrade yacob Metatrader 4 4 05-25-2009 10:28 AM
Autotrade EA from Alert matrixebiz Expert Advisors - Metatrader 4 1 04-20-2007 04:04 PM
autotrade - stoploss sminic Metatrader 4 1 02-05-2007 11:05 AM


All times are GMT. The time now is 10:38 AM.



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