Forex



Go Back   Forex Trading > Trading systems > Martingale/Average Cost and Hedging
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
  #411 (permalink)  
Old 02-12-2008, 02:28 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,354
ElectricSavant is on a distinguished road
Well..kayvan...lets hope we get something to test...there is plenty of room in the opening post for several versions...

I will try them all, as long as wolfe is willing to try!

Your enthusiasm is refreshing...kayvan...I seem to need a young traders excitement lately to keep my interest in Forex and the search!

ES

Quote:
Originally Posted by kayvan View Post
no mater which pair it will sweep the market

Last edited by ElectricSavant; 02-12-2008 at 02:31 PM.
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
  #412 (permalink)  
Old 02-12-2008, 04:46 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
Well..kayvan...lets hope we get something to test...there is plenty of room in the opening post for several versions...

I will try them all, as long as wolfe is willing to try!

Your enthusiasm is refreshing...kayvan...I seem to need a young traders excitement lately to keep my interest in Forex and the search!

ES
don`t search .you won`t find anything , i did a lot , but i find nothing except loosing my money .new search ,new holly grail finding and new more loosing money.
i am not kayvan, i am his father ,and age near 60 . but why i have such a enthusiasm like a young trader . i think that`s because of my loosing (killing a lot of accounts that i don`t remember how many !!!! in about 6 years) in forex.that was all i find from searching .
but I belive there is away (the only way) that we can get money from forex
while we are always in trade .keep your hope, and let your enthusiasm also make refreshing the thread. have a good time .

Last edited by kayvan; 02-12-2008 at 04:48 PM.
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
  #413 (permalink)  
Old 02-13-2008, 01:14 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 818
wolfe is on a distinguished road
Quote:
Originally Posted by waltini View Post
Hi Wolfe,

in an attempt to keep drawdown to a minimum I have coded in a break Even and a trailing stop. I can use either or both. It works well enough but I did it late last night and am still mucking around with the best settings.

I am more than happy to post it but it is your thread and it is disruptive to post a heap of private versions.

So I can either send it to you privately or post it if you are interested.

Oh and I have also limited the maximum lot size as an external.

My next thoughts are to limit the amount of orders in a sideways market and only allow extra orders on a price breakout.
I like your ideas here, I have been experimenting with a TS myself. I don't mind if you want to post your version. I welcome all new ideas. If you don't wish to post, I would love to look at your code. I always learn something new from other coders. Check your PM.
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
  #414 (permalink)  
Old 02-13-2008, 01:46 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 818
wolfe is on a distinguished road
Quote:
Originally Posted by kayvan View Post
i beg you to do this changes to your ea
Don't beg! Take it easy, I'll give it a try. Be patient.

Quote:
Originally Posted by kayvan View Post
believe me it will be a perfect ea with this changes please do it
You say you want these changes to the EA. These are not "simple" changes, more like a completely different EA. I have been getting many requests for coding lately, so again be patient. I'll get to it.

Quote:
Originally Posted by kayvan View Post
ur first order with initial entry (say .1 & buy) active d we do nothing at the next bar and second next bar & third next bar &&&&&..... till price return 2 pips below the previous bar .then we enter sell with double size ,and continue to this every time this break out happened.
To verify, we are always looking at the previous bar high and previous bar low from the current bar for the break out trigger? Also, are we DOUBLING each progression, or just adding 0.1 each time? 0.1, 0.2, 0.4... OR 0.1, 0.2, 0.3...? Are we simply exiting the trade with an external TP variable?
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
  #415 (permalink)  
Old 02-13-2008, 02:19 AM
ajk's Avatar
ajk ajk is offline
Senior Member
 
Join Date: Dec 2005
Posts: 261
ajk is on a distinguished road
wolfe, did you ever get that ts programmed. Otherwise, it will be difficult to make this a profitable adventure.
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
  #416 (permalink)  
Old 02-13-2008, 03:04 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 818
wolfe is on a distinguished road
Quote:
Originally Posted by ajk View Post
wolfe, did you ever get that ts programmed. Otherwise, it will be difficult to make this a profitable adventure.
Yes I did. I'm still testing it. Seems to be working.

It looks something like this-(this part keeps track of your highest profit in the cycle)
PHP Code:
Total_Profit=OPBM(Magic_Long)+OPBM(Magic_Short);

if (
Trailing_Stop==true)  
{
 
Open_Profit=Total_Profit;
 
Highest_Profit=GlobalVariableGet(TFX_Highest_Profit);
 if (
Open_Profit Highest_Profit)
  {
   
Highest_Profit=GlobalVariableSet(TFX_Highest_Profit,Total_Profit);
   
Highest_Profit=GlobalVariableGet(TFX_Highest_Profit);
   
Loss_Percent=TSLoss_Percent*0.01;
   Print(
"                                                                                                 Loss percent = ",Loss_Percent);
   
Allowed_Loss=GlobalVariableGet(TFX_Highest_Profit)*Loss_Percent;
   
Allowed_Loss=GlobalVariableSet(TFX_Allowed_Loss,Allowed_Loss);
   
Allowed_Loss=GlobalVariableGet(TFX_Allowed_Loss);
   Print(
"                                                                                      Highest Profit = ",Highest_Profit);
   Print(
"                                                                                        Allowed Loss = ",Allowed_Loss);
  }

And this part handles the closing of a cycle-
PHP Code:
if ((Trailing_Stop==true) && (Trail_Engaged==true)) 
{
 if (
OPBM(Magic_Long)+OPBM(Magic_Short) <= (GlobalVariableGet(TFX_Highest_Profit)-GlobalVariableGet(TFX_Allowed_Loss)))
  {
   while(
OTBM(Magic_Long)+OTBM(Magic_Short)>0)
   {
   
CBM(Magic_Long);CBM(Magic_Short);
   }
     if (
OTBM(Magic_Long)>0)
      {
       
Sleep(1000);CBM(Magic_Long);
      }
     if (
OTBM(Magic_Short)>0)
      {
       
Sleep(1000);CBM(Magic_Short);
      }
     if (
OTBM(Magic_Long)+OTBM(Magic_Short)==0)
      {
       
GlobalVariableSet(TFX_LastTicketL,0);
       
GlobalVariableSet(TFX_LastOpenL,0);
       
GlobalVariableSet(TFX_LastLotsL,0);
       
GlobalVariableSet(TFX_LastTicketS,0);
       
GlobalVariableSet(TFX_LastOpenS,0);
       
GlobalVariableSet(TFX_LastLotsS,0);
       
GlobalVariableSet(TFX_Highest_Profit,0);
       
GlobalVariableSet(TFX_Allowed_Loss,0);
      }
     
Highest_Profit=GlobalVariableGet(TFX_Highest_Profit);
     
Allowed_Loss=GlobalVariableGet(TFX_Allowed_Loss);
     
Trail_Engaged=false;
    }
  } 
I don't want to post until further testing is satisfied. Plus I have some more ideas for it.
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
  #417 (permalink)  
Old 02-13-2008, 03:17 AM
ajk's Avatar
ajk ajk is offline
Senior Member
 
Join Date: Dec 2005
Posts: 261
ajk is on a distinguished road
very nice coding! original. --- There is some merit in this type of thinking... I think The last order in the line is the loser so---- The processing logic hopefully will be effective. -- not an easy task to make work properly. To a certain extent, the ea tries to profit out of random... basically take your "run and get out" before the market decides to b slap ya around..

Last edited by ajk; 02-13-2008 at 03:35 AM.
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
  #418 (permalink)  
Old 02-13-2008, 03:31 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 818
wolfe is on a distinguished road
Quote:
Originally Posted by ajk View Post
very nice coding! original. --- There is some merit in this type of thinking... I think The last order in the line should be a fast one. -- right before the market turns. I always appreciate coders who can do the order processing logic effectively -- not an easy task to make work properly. To a certain extent, we are trying to profit out of random... basically take your "run and get out" before the market decides to b slap ya around..
Thanks for the compliments ajk. The TS does seem to work properly, just not sure if it is plugged into the right EA method!
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
  #419 (permalink)  
Old 02-13-2008, 03:40 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 818
wolfe is on a distinguished road
Quote:
Originally Posted by kayvan View Post
no mater which pair it will sweep the market
All right kayvan, here is the first crack at your idea. Have a try, I'm still not sure if this is EXACTLY what you are looking for.

Have a look at a visual back test shot of your method-

Give it a try, I'm sure this is not finished yet. Very roughly changed to try and fit your idea.
Attached Images
File Type: gif tfx_kayvan.gif (27.0 KB, 256 views)
Attached Files
File Type: mq4 TFX_kayvan_v1.mq4 (31.3 KB, 119 views)
File Type: mqh TFX_Include_v1_4.mqh (2.5 KB, 51 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
  #420 (permalink)  
Old 02-13-2008, 02:54 PM
kayvan's Avatar
Senior Member
 
Join Date: Mar 2007
Location: .....
Posts: 145
kayvan is on a distinguished road
Quote:
Originally Posted by wolfe View Post
All right kayvan, here is the first crack at your idea. Have a try, I'm still not sure if this is EXACTLY what you are looking for.

Have a look at a visual back test shot of your method-

Give it a try, I'm sure this is not finished yet. Very roughly changed to try and fit your idea.

thanks a lot for all you have done , wolf . I made some forward test today ,there are some error in taking position . that i `ll try to show them in the charts attached below. i actived ea a little after crossing below cnndle 7 in my mt4 time .the first position was sell @1.9572 @8.35 in h1 ok . but as you see we have the second position opened buy @1.9597 . this is false .why? because the price did`t cross the previous candle (2 pips+spread ).as you see in the picture those 2 bars( 9 and it`s previous 8 ) have the same high point (1.9597).so this buy order must not opened at that point.
and also you can see we have a sell order opened @ 1.9567 while price did`t cross previous bar 2 pips below( in sell order no need to add spread)


.forward-test1.gif




in the second picture 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).


forward-test2.gif





any way in third picture you can see the result. thanks again and waiting for corrections.



forward-test4.gif

Last edited by kayvan; 02-13-2008 at 02:56 PM.
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

Tags
Baggio, best martingale ea, digitrend_gyro, ea martingale, forex martingale, grid martingale, martingale, martingale ea, martingale ea download, martingale ea forex, martingale expert advisor, martingale forex, Martingale mt4, tfx v1_8


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
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 11:40 PM.



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