Forex
Google

Go Back   Forex Trading > Discussion Areas > Suggestions for Trading Systems
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
  #1 (permalink)  
Old 02-25-2006, 02:57 PM
shwetha's Avatar
shwetha shwetha is offline
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!
Reply With Quote
  #2 (permalink)  
Old 02-25-2006, 05:42 PM
cucurucu's Avatar
cucurucu cucurucu is offline
Senior Member
 
Join Date: Jan 2006
Posts: 315
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!
Reply With Quote
  #3 (permalink)  
Old 02-26-2006, 09:12 AM
shwetha's Avatar
shwetha shwetha is offline
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!
Reply With Quote
  #4 (permalink)  
Old 02-26-2006, 09:58 AM
cucurucu's Avatar
cucurucu cucurucu is offline
Senior Member
 
Join Date: Jan 2006
Posts: 315
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!
Reply With Quote
  #5 (permalink)  
Old 02-27-2006, 08:23 AM
shwetha's Avatar
shwetha shwetha is offline
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!
Reply With Quote
  #6 (permalink)  
Old 02-27-2006, 08:49 AM
cucurucu's Avatar
cucurucu cucurucu is offline
Senior Member
 
Join Date: Jan 2006
Posts: 315
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, 59 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-27-2006, 09:50 AM
shwetha's Avatar
shwetha shwetha is offline
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!
Reply With Quote
  #8 (permalink)  
Old 02-27-2006, 09:55 AM
cucurucu's Avatar
cucurucu cucurucu is offline
Senior Member
 
Join Date: Jan 2006
Posts: 315
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!
Reply With Quote
  #9 (permalink)  
Old 02-27-2006, 10:16 AM
shwetha's Avatar
shwetha shwetha is offline
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!
Reply With Quote
  #10 (permalink)  
Old 02-27-2006, 10:26 AM
cucurucu's Avatar
cucurucu cucurucu is offline
Senior Member
 
Join Date: Jan 2006
Posts: 315
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!
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
Autotrade EA from Alert matrixebiz Expert Advisors - Metatrader 4 1 04-20-2007 03:04 PM
autotrade - stoploss sminic Metatrader 4 1 02-05-2007 10:05 AM
AutoTrade yacob Metatrader 4 2 08-02-2006 06:47 PM
Can't you autotrade? forexts Setup Questions 0 10-19-2005 09:00 AM


All times are GMT. The time now is 08:03 PM.