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
  #631 (permalink)  
Old 02-19-2008, 06:52 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,010
ElectricSavant is on a distinguished road
kayvan...

In the smiley face dialog there are two tabs..one is Common and one is Inputs. If you want consecutive longs all you must do is choose long only...and vice versa for shorts. YOU HAVE THIS CHOICE NOW IN THE COMMON TAB

But maybe I do not understand what you want.

ES


Quote:
Originally Posted by kayvan View Post
1) Pyramid example: Long at 1.5500 then with a lookback of 1 with a 2 pip entrylag ..lets pretend the next candlestick opened and proceeded to go up past the previous candlestick high...up ...up...and up...it went up to 1.5502 but there is a two pip spread....so nothing happened...it continued up to 1.5504 Bam! trigger....another long was added!....the global TP takes us out...we are rich and move to the Bahama's for the summer

2) Average down example: Long at 1.5500 then with a lookback of 1 with a 2 pip entrylag ...lets pretend the next candlestick opened down ...down ...down past the previous candlestick low..it went down to 1.5498...thats was enough because we are buying on the drop...bam we are in! Bahama's for the second summer...this time in our Yacht!



if you mean this one ,please give me another example . i did not understand it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #632 (permalink)  
Old 02-19-2008, 06:57 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,010
ElectricSavant is on a distinguished road
kayvan to further explain..

The Bahama's is a famous spot to go to..people relax there...A yacht connotates wealth.

ES
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #633 (permalink)  
Old 02-19-2008, 07:40 PM
kayvan's Avatar
Senior Member
 
Join Date: Mar 2007
Location: .....
Posts: 145
kayvan is on a distinguished road
Quote:
Originally Posted by ElectricSavant View Post
kayvan to further explain..

The Bahama's is a famous spot to go to..people relax there...A yacht connotates wealth.

ES

good to you .so you can think about bahama`s

i told about this before in my initials posts . in this method we need both buy and sell .
say we have 0.1 buy @ 1.9500 then another buy 1.9510 , and another 1.9520 and also 1.9530 ,,, 1.9540 ..and 1.9550 ok? 6 actived buy (0.6 lot size)order and no sell till now ok?

now we are going to have a sell candle (suddenly trend revers ). in this case the ea must be able to enter 0.7 sell order .

after all these changes , can it act like explained above?

and if one or 2 or 3 of these buy orders reached tp . can it calculate the remaining positions and active a proper sell in lot size ?

Last edited by kayvan; 02-19-2008 at 08:09 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #634 (permalink)  
Old 02-19-2008, 08:51 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,010
ElectricSavant is on a distinguished road
In the present state we have reversing orders only....how in the world would the EA recognize the opportunity to turn off the reversing?

kayvan, don't mind me just thinking out loud here...

ES


Quote:
Originally Posted by kayvan View Post
good to you .so you can think about bahama`s

i told about this before in my initials posts . in this method we need both buy and sell .
say we have 0.1 buy @ 1.9500 then another buy 1.9510 , and another 1.9520 and also 1.9530 ,,, 1.9540 ..and 1.9550 ok? 6 actived buy (0.6 lot size)order and no sell till now ok?

now we are going to have a sell candle (suddenly trend revers ). in this case the ea must be able to enter 0.7 sell order .

after all these changes , can it act like explained above?

and if one or 2 or 3 of these buy orders reached tp . can it calculate the remaining positions and active a proper sell in lot size ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #635 (permalink)  
Old 02-20-2008, 12:42 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 719
wolfe is on a distinguished road
Quote:
Originally Posted by kayvan View Post
hi wolfe.

please don`t forget to add an option to be able to release consecutive buy with sell stop and sell with buy stop ,and modify option with equal lot sizes(if don`t like pending orders . it must act like this : say 0.1 buy ,it passed the previous bar another 0.1 buy another trigger another 0.1 buy , another ..... another ... till sell order want to trigger it must count the sum of buy and active 1 sell order at sum of buys ( if we had 5*0.1 buy it has to put one 0.6 sell order... one order, in trend side, always must be add) . this option will request less margine

than previous method. that is suitable for small accounts . and it is profitable too
I understand what you mean now kayvan. This is of course possible to code, not sure how I will be able to integrate this into what I have coded so far.

I wish EVERYONE could understand just how hard it can be to code an EA with so many options. Just when I think I'm about done, another idea comes along. I know I can only blame myself for that, after all it was ME who asked if there were any more ideas!

I've just been anxious to get this latest version posted, so everyone could have a new toy to play with. It is now looking to be a few more days...

Every time another option is added(except sounds, those are easy), it is like smashing another separate EA into the same one, and having to make sure of every possible scenario that could happen, and make sure that NOTHING interferes with each other. It is starting to get tricky!

I had hoped to post latest version tonight, but I don't want to rush the code as there is a lot that could go wrong. Trust me everyone, with all these ideas included, this latest version is shaping up to be the best one yet!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #636 (permalink)  
Old 02-20-2008, 01:56 AM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,010
ElectricSavant is on a distinguished road
I just gave this 25K plus views thread a 5 star rating...I very rarely do this.

Everyone here has been complete gentlemen in their conduct and I would be pleased to work with any of you...It is my pleasure.

ES
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #637 (permalink)  
Old 02-20-2008, 03:58 AM
ajk's Avatar
ajk ajk is offline
Senior Member
 
Join Date: Dec 2005
Posts: 230
ajk is on a distinguished road
thanks wolfe for all your hard work on this. Martingales are hard to manage in eas. With all the changes, It will be very, very difficult not to error out like crazy. I Darn near popped a blood vessel when I tried to make bilksen ea work like I wanted.. very nice on some aspects... ....so we all / or at least I appreciate your work. The idea of a sl based off of highest balance actually working or as a percent of equity lost is somewhat exciting. I use indicator based getouts as well as trailing sl, but I always run into a "fast spike" issues. I don't know much about K's getin methodology. I can already see it going 4-5 levels deep a lot....but also catching some big waves and adding in. ... the market has a habit of punishing a person who gets in on peaks periodically .... which the ea will likely have to survive or the account will blow. anyway, gl on this ....!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #638 (permalink)  
Old 02-20-2008, 04:05 AM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,010
ElectricSavant is on a distinguished road
Good point about the spike thingy...Wouldn't it be easy to add to this EA a maxrangelimit of the previous bar?

wolfe is going to kill me...

ES


Quote:
Originally Posted by ajk View Post
thanks wolfe for all your hard work on this. Martingales are hard to manage in eas. With all the changes, It will be very, very difficult not to error out like crazy. I Darn near popped a blood vessel when I tried to make bilksen ea work like I wanted.. very nice on some aspects... ....so we all / or at least I appreciate your work. The idea of a sl based off of highest balance actually working or as a percent of equity lost is somewhat exciting. I use indicator based getouts as well as trailing sl, but I always run into a "fast spike" issues. I don't know much about K's getin methodology. I can already see it going 4-5 levels deep a lot....but also catching some big waves and adding in. ... the market has a habit of punishing a person who gets in on peaks periodically .... which the ea will likely have to survive or the account will blow. anyway, gl on this ....!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #639 (permalink)  
Old 02-20-2008, 04:20 AM
ajk's Avatar
ajk ajk is offline
Senior Member
 
Join Date: Dec 2005
Posts: 230
ajk is on a distinguished road
Not that easy.. trust me. As it uses profit for the next level. If he can figure away around that then... call him wolfe von ea meistro.

I typically use a a High - low calculation of previous number of bars -- (just as an example) but its also not a martingale which makes the programming easy.

double runaway3 = High [iHighest( NULL,PERIOD_H1, PRICE_HIGH, 10, 1)] ;
double runaway4 = Low [iLowest( NULL,PERIOD_H1, PRICE_LOW, 10, 1)] ;
double b2 = 60;
double RF2 = (runaway3 - runaway4) * SETTING;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #640 (permalink)  
Old 02-20-2008, 04:39 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 719
wolfe is on a distinguished road
Quote:
Originally Posted by ajk View Post
thanks wolfe for all your hard work on this. Martingales are hard to manage in eas. With all the changes, It will be very, very difficult not to error out like crazy. I Darn near popped a blood vessel when I tried to make bilksen ea work like I wanted.. very nice on some aspects... ....so we all / or at least I appreciate your work. The idea of a sl based off of highest balance actually working or as a percent of equity lost is somewhat exciting. I use indicator based getouts as well as trailing sl, but I always run into a "fast spike" issues. I don't know much about K's getin methodology. I can already see it going 4-5 levels deep a lot....but also catching some big waves and adding in. ... the market has a habit of punishing a person who gets in on peaks periodically .... which the ea will likely have to survive or the account will blow. anyway, gl on this ....!
Thanks ajk.

This has gotten very challenging. It sounds like you can understand my pain. I hope to have this completed and posted by this weekend at the latest. Coding and testing are still in progress.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
martingale, martingale ea, martingale EA, martingale ea download

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/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 06:34 PM
[intraday]martingale strategy dan variasinya - Page 6 - Forexindo Forum This thread Refback 04-04-2008 03:15 AM
TFX v1.5 Expert Adviser - The Money Guru Forum - Money Making Discussions This thread Refback 03-31-2008 05:36 PM
Download 10points3 Ea - Type Your Search Here This thread Refback 03-12-2008 01: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 08: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 07: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 03: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 01:56 AM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-29-2008 01:05 PM
Martingale Baggio Method - Page 11 This thread Refback 02-27-2008 09:59 PM
Martingale Baggio Method - Page 11 This thread Refback 02-27-2008 05:07 PM
Martingale Baggio Method - Page 11 This thread Refback 02-27-2008 05:04 PM
Martingale Baggio Method - Page 10 This thread Refback 02-25-2008 06:50 PM
Martingale Baggio Method - Page 10 This thread Refback 02-25-2008 06:07 PM
Martingale Baggio Method - Page 10 This thread Refback 02-25-2008 06:05 PM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-23-2008 07:38 PM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-04-2008 06:15 AM
Bright Idea's :: View topic - TFX Public EA Thread (work in progress) This thread Refback 02-03-2008 05:01 AM
Bright Ideas™ » TFX (an amazing EA) This thread Refback 01-15-2008 06:26 PM
World of Forex Trading » Martingale EA This thread Pingback 01-11-2008 02:33 AM

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


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



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