Forex
Google
New signals service!

Go Back   Forex Trading > Trading systems > Martingale/Average Cost and Hedging


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 (20) Thread Tools Display Modes
  #421 (permalink)  
Old 02-14-2008, 01:16 AM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 2,716
ElectricSavant is on a distinguished road
Waiting patiently for the kayvan/wolfe/Lcfx EA...

You guys are BRILLIANT!

ES
__________________
ElectricSavant Challenge™ (Ends 10/09/08)

Live Portfolio (This takes a while to download as it is a big excel spreadsheet)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #422 (permalink)  
Old 02-14-2008, 01:32 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 682
wolfe is on a distinguished road
Quote:
Originally Posted by kayvan View Post
we have 1 buy order actived @ 1 .9583 while our previous bar high point is 1.9586 . it must be opened @ 1.9591(2pips plus spread).
This can be fixed. I didn't code the (2pips plus spread) part.


Quote:
Originally Posted by kayvan View Post
( in sell order no need to add spread)
Why in the sell order is there no need to add the spread? Explain this logic to me. It would depend if I'm using the Bid or the Ask in the code right?

Mainly just wanted to know if I had your basic idea down right. I can work on these changes, still not convinced this is the Holy Grail answer you think it is. I hope you prove me wrong!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #423 (permalink)  
Old 02-14-2008, 01:33 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 682
wolfe is on a distinguished road
Quote:
Originally Posted by ElectricSavant View Post
You guys are BRILLIANT!
We'll see about that!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #424 (permalink)  
Old 02-14-2008, 03:53 AM
kayvan's Avatar
Senior Member
 
Join Date: Mar 2007
Location: .....
Posts: 144
kayvan is on a distinguished road
Hi wolfe

Q 1--Why in the sell order is there no need to add the spread? Explain this logic to me. It would depend if I'm using the Bid or the Ask in the code right?


A 1--you can examine this on your platform .put 2 pending orders(say gbp/usd)1 buy and 1 sell .your buy order will active , when 3 pips left to your buy order point. but in sell order for active the price must cross 3 pips below your sell order point.


Q 2--Mainly just wanted to know if I had your basic idea down right. I can work on these changes, still not convinced this is the Holy Grail answer you think it is. I hope you prove me wrong![/quote]



A 2--be sure .and don`t have any doubt that this is the only way we can make money from this dame forex. have a good time my friends.

Last edited by kayvan; 02-14-2008 at 03:58 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #425 (permalink)  
Old 02-14-2008, 03:59 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 682
wolfe is on a distinguished road
Alteration of Kayvan's method

Kayvan,

I altered the code to try and fit your idea. If you don't like where the next buy or the next sell is being placed then alter this piece of code-(I labeled it so you can find it easily)
PHP Code:
/////////////////////////////////////////////////// CHANGE CODE HERE FOR NEXT_BUY OR NEXT_SELL//////////////////////////////////
double Next_Buy=((High[1])+(spread*Point)+(2*Point));                                                                         //
double Next_Sell=((Low[1])-(spread*Point)-(2*Point));                                                                         //
/////////////////////////////////////////////////// CHANGE CODE HERE FOR NEXT_BUY OR NEXT_SELL////////////////////////////////// 
Let me know how it works.
Attached Files
File Type: mq4 TFX_Kayvan.mq4 (31.9 KB, 47 views)

Last edited by wolfe; 02-14-2008 at 04:57 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #426 (permalink)  
Old 02-14-2008, 04:30 AM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 2,716
ElectricSavant is on a distinguished road
Thanks wolfe...

Is this TF sensitive?...what I mean... will it use whatever time frame it is loaded on?....or what happens if we switch TF'S after dragging it on to a chart?

ES

Quote:
Originally Posted by wolfe View Post
Kayvan,

I altered the code to try and fit your idea. If you don't like where the next buy or the next sell is being placed then alter this piece of code-(I labeled it so you can find it easily)
PHP Code:
/////////////////////////////////////////////////// CHANGE CODE HERE FOR NEXT_BUY OR NEXT_SELL//////////////////////////////////
double Next_Buy=((High[1])+(spread*Point)+(2*Point));                                                                         //
double Next_Sell=((Low[1])-(spread*Point)-(2*Point));                                                                         //
/////////////////////////////////////////////////// CHANGE CODE HERE FOR NEXT_BUY OR NEXT_SELL////////////////////////////////// 
Let me know how it works.
__________________
ElectricSavant Challenge™ (Ends 10/09/08)

Live Portfolio (This takes a while to download as it is a big excel spreadsheet)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #427 (permalink)  
Old 02-14-2008, 04:54 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 682
wolfe is on a distinguished road
Quote:
Originally Posted by ElectricSavant View Post
Thanks wolfe...

Is this TF sensitive?...what I mean... will it use whatever time frame it is loaded on?....or what happens if we switch TF'S after dragging it on to a chart?

ES
ES,

YES! This is absolutely TF sensitive. This version ONLY adds on an additional order under these circumstances-

-If your last order was long, the next order will be short.
-If your last order was short, your next order will be long.
-Next long order will be placed when current price is >= to the previous bar's high+spread+2pips
-Next short order will be placed when current price is <= to the previous bar's low-spread-2pips.

If you want to change when the price is fired (ex. pips below previous low-spread-2pips, simply alter the code posted in the EA. The piece of code is in post #425)

It is time sensitive because it is reading the high and low of the previous bar. If you switch time frames in the middle of running the EA, it WILL effect the outcome.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #428 (permalink)  
Old 02-14-2008, 04:55 AM
kayvan's Avatar
Senior Member
 
Join Date: Mar 2007
Location: .....
Posts: 144
kayvan is on a distinguished road
Smile

Quote:
Originally Posted by wolfe View Post
We'll see about that!

i told my story a few post ago (about how many acc killing). but from since i am using this method (manually)in my real, my equity become to grow more .

my calculations in lot size is . 1.3.5.9.18......... you see with this calculation we always have one side order size , double than other side order lot size .
with this calculation we need a little movement in market to come out with profit.
an examplein bad cases) we have .1 buy @ 1.9520, market moves 20 against us. our .3 sell will active ,now we need just 10 pips movment to come out with no lose ok?
no , we say market moves aginst us 20 pips ? ok our .5 buy will active .again we need to 10 pips movment to come out with no lose (+spread).and the next level will be the same..

but as you know candelas have mostly a logic movement they make trend line withe their movement .and this kind of movement will make profit for us have a good time
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #429 (permalink)  
Old 02-14-2008, 05:00 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 682
wolfe is on a distinguished road
I RE-POSTED THE EA IN POST#425.

Only 1 person downloaded it. Please re-install, I had to fix a small problem. ES, this is probably you. Sorry!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #430 (permalink)  
Old 02-14-2008, 05:10 AM
kayvan's Avatar
Senior Member
 
Join Date: Mar 2007
Location: .....
Posts: 144
kayvan is on a distinguished road
Smile

Quote:
Originally Posted by wolfe View Post
Kayvan,

I altered the code to try and fit your idea. If you don't like where the next buy or the next sell is being placed then alter this piece of code-(I labeled it so you can find it easily)
PHP Code:
/////////////////////////////////////////////////// CHANGE CODE HERE FOR NEXT_BUY OR NEXT_SELL//////////////////////////////////
double Next_Buy=((High[1])+(spread*Point)+(2*Point));                                                                         //
double Next_Sell=((Low[1])-(spread*Point)-(2*Point));                                                                         //
/////////////////////////////////////////////////// CHANGE CODE HERE FOR NEXT_BUY OR NEXT_SELL////////////////////////////////// 
Let me know how it works.

is it ea ? i download it . but it dose`t work!

watch me . i told before i am near 60 and know nothing about cod and program and .................... please watch me ,thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
martingale

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/martingale-average-cost-hedging/11734-martingale-ea.html
Posted By For Type Date
ea - learn to trade forex swicki - powered by eurekster This thread Refback 06-05-2008 05:34 PM
[intraday]martingale strategy dan variasinya - Page 6 - Forexindo Forum This thread Refback 04-04-2008 02:15 AM
TFX v1.5 Expert Adviser - The Money Guru Forum - Money Making Discussions This thread Refback 03-31-2008 04:36 PM
Download 10points3 Ea - Type Your Search Here This thread Refback 03-12-2008 12:38 AM
Expert Advisor | Forex MetaTrader Expert Advisors | Over 40 of the Best EA's for MT4 on Squidoo This thread Refback 03-08-2008 07:36 PM
Expert Advisor | Forex MetaTrader Expert Advisors | Over 40 of the Best EA's for MT4 on Squidoo This thread Refback 03-07-2008 06:27 AM
Expert Advisor | Forex MetaTrader Expert Advisors | Over 40 of the Best EA's for MT4 on Squidoo This thread Refback 03-07-2008 02:27 AM
Expert Advisor | Forex MetaTrader Expert Advisors | Over 40 of the Best EA's for MT4 on Squidoo This thread Refback 03-05-2008 12:56 AM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-29-2008 12:05 PM
Martingale Baggio Method - Page 11 This thread Refback 02-27-2008 08:59 PM
Martingale Baggio Method - Page 11 This thread Refback 02-27-2008 04:07 PM
Martingale Baggio Method - Page 11 This thread Refback 02-27-2008 04:04 PM
Martingale Baggio Method - Page 10 This thread Refback 02-25-2008 05:50 PM
Martingale Baggio Method - Page 10 This thread Refback 02-25-2008 05:07 PM
Martingale Baggio Method - Page 10 This thread Refback 02-25-2008 05:05 PM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-23-2008 06:38 PM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-04-2008 05:15 AM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-03-2008 04:01 AM
Bright Ideas™ » TFX (an amazing EA) This thread Refback 01-15-2008 05:26 PM
World of Forex Trading » Martingale EA This thread Pingback 01-11-2008 01:33 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Martingale Trend EA criss73 Expert Advisors - Metatrader 4 7 11-17-2007 01:57 PM
Reversed martingale mrv Expert Advisors - Metatrader 4 6 07-26-2007 12:28 AM
Leverage for martingale frantacech Expert Advisors - Metatrader 4 0 05-22-2007 01:17 PM
Martingale EAs? icepeak Expert Advisors - Metatrader 4 5 01-18-2007 02:21 AM
Martingale EA newdigital Expert Advisors - Metatrader 3 2 05-23-2006 02:42 PM


All times are GMT. The time now is 05:43 AM.