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
  #711 (permalink)  
Old 02-24-2008, 05:12 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,354
ElectricSavant is on a distinguished road
wolfe,

from what I can see...this chunk of code alone was so multi-tasking...

anyway's....if there are not at least 1 dozen bugs that we find it would be a miracle...there are several more chunks of code interlaced and it is just impossible to avoid them..

So please folks...FIND THOSE 1 DOZEN BUGS and wolfe do not be too sensitve about many bugs...we are here to help.

ES



Quote:
Originally Posted by wolfe View Post
Depends if you are using MA entry, or kayvan method, pyramid true, or pyramid false.

Basically a Long_Short_Balance would happen if your last order was a short, and you just got a signal to open a long. Or the other way around of course. This would happen only if Long_Short_Balance was set to true, and ALL other lot size decisions were set to false.

Right here is what I had to code JUST to determine the next lot size in a trade progression, depending on how the user set it up.
PHP Code:
if (Double_Lotsize==false)
         {
          
Lot_Size=LastLots+Lot_Size_Increment;
         }
        if (
Double_Lotsize==true)
         {
          
Lot_Size=LastLots*2;
         }
        if (
Long_Short_Balance==true)
         {
          if (
SellLots>BuyLots)
           {
            
Lot_Size=((SellLots-BuyLots)+Balance_Weight);
           }
          else 
Lot_Size=LastLots+Lot_Size_Increment;
         }
        if (
Choose_Own_Progression==true)
        {
         if(
OTBM(Magic_Number)==1){Lot_Size=Trade_2;}if(OTBM(Magic_Number)==2){Lot_Size=Trade_3;}
         if(
OTBM(Magic_Number)==3){Lot_Size=Trade_4;}if(OTBM(Magic_Number)==4){Lot_Size=Trade_5;}
         if(
OTBM(Magic_Number)==5){Lot_Size=Trade_6;}if(OTBM(Magic_Number)==6){Lot_Size=Trade_7;}
         if(
OTBM(Magic_Number)==7){Lot_Size=Trade_8;}if(OTBM(Magic_Number)==8){Lot_Size=Trade_9;}
         if(
OTBM(Magic_Number)==9){Lot_Size=Trade_10;}if(OTBM(Magic_Number)==10){Lot_Size=Trade_11;}
         if(
OTBM(Magic_Number)==11){Lot_Size=Trade_12;}if(OTBM(Magic_Number)==12){Lot_Size=Trade_13;}
         if(
OTBM(Magic_Number)==13){Lot_Size=Trade_14;}if(OTBM(Magic_Number)==14){Lot_Size=Trade_15;}
         if(
OTBM(Magic_Number)==15){Lot_Size=Trade_16;}if(OTBM(Magic_Number)==16){Lot_Size=Trade_17;}
         if(
OTBM(Magic_Number)==17){Lot_Size=Trade_18;}if(OTBM(Magic_Number)==18){Lot_Size=Trade_19;}
         if(
OTBM(Magic_Number)==19){Lot_Size=Trade_20;}
         }
        
RefreshRates();
        
Ticket=OrderSend(Symbol(),OP_BUY,Lot_Size,Ask,Slippage,NULL,NULL,"TFX_LONG_ADDITIONAL",Magic_Number,0,Green); 
As you see it got very confusing, and it does have some limitations. Code reads right to left, top to bottom, just as you or I would.(only it does this in a nano second)

Now you can see the last decision method the code reads is this one:
PHP Code:
if (Choose_Own_Progression==true)
        { 
If Choose_Own_Progression is set to true, this is the last thing the code reads to decide which method for lot size it will use, all others that were true will not execute. Only the last one that the code read to be true.

Sorry if I just confused you more.
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
  #712 (permalink)  
Old 02-24-2008, 05:18 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,354
ElectricSavant is on a distinguished road
wolfe,

You meant left to right...

right to left
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
  #713 (permalink)  
Old 02-24-2008, 05:20 PM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 818
wolfe is on a distinguished road
Quote:
Originally Posted by ElectricSavant View Post
and wolfe do not be too sensitve about many bugs...we are here to help.ES
I fully expect there to be some set up problems with certain combinations of options selected. I do want people to bring them to my attention if found. The whole reason it got so complicated was trying to include as many people's ideas as possible.

I thought about coding a bunch of annoying pop-up alerts, so that when people chose an un-workable combination, it alerted them, and disabled trade. But, I didn't get around to that yet, I was anxious for people to have and test.
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
  #714 (permalink)  
Old 02-24-2008, 05:21 PM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 818
wolfe is on a distinguished road
Quote:
Originally Posted by ElectricSavant View Post
wolfe,

You meant left to right...

right to left
Woops! Even us wanna-be coders get confused!
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
  #715 (permalink)  
Old 02-24-2008, 05:23 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,354
ElectricSavant is on a distinguished road
wolfe,

You do not fool me...

WolfeIsNotaWannabeeHeHasGraduatedSavant


Quote:
Originally Posted by wolfe View Post
Woops! Even us wanna-be coders get confused!
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
  #716 (permalink)  
Old 02-24-2008, 05:30 PM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 818
wolfe is on a distinguished road
Quote:
Originally Posted by Beno View Post
Here is a quick back best the data is standard and there are a lot of errors with in the data.
Have a look at the end.
I have tried multiple setups but the same result occurs.


Cheers


Beno
Beno,

Thanks for running some back tests. I would be interested to see what happens if you were to run the exact same back test, only make your initial deposit more than $100.00. Make it like $5000.00, or even $10000.00.

Back tests are pretty un-reliable. But some combinations show promise. Check this one out. There is always some kind of a drop off in profit at the end, because the EA is usually in the middle of a cycle trying to make your profit, and then the tester closes all when you hit your ending date.
Attached Images
File Type: gif TFX v1_6.gif (10.6 KB, 107 views)
Attached Files
File Type: htm TFX v1_6.htm (233.0 KB, 23 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
  #717 (permalink)  
Old 02-24-2008, 05:35 PM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 818
wolfe is on a distinguished road
Quote:
Originally Posted by sivach View Post
Thanks wolfe for such a wonderful work put together in this version, overall the quality, ideas and inputs are never seen before. So, we all will do a full forward test with this and report the bugs. However, I know it is impossible to expect without any faults on it, the shell of the EA is the very important part. Hope this will be a nice EA after all corrections. SuperPower vehicle on the forex road with many controls and gadgets to play.
You're welcome. Glad to have you involved as a tester. Please report any problems you find.
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
  #718 (permalink)  
Old 02-24-2008, 05:36 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
The first thing you can say to me after giving you this for free.?

Did you run a back test? The market isn't even open yet.

wolfe i thanked you before doing it . and i always say thank you .


but do we need to open market for have a back test?
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
  #719 (permalink)  
Old 02-24-2008, 05:40 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,354
ElectricSavant is on a distinguished road
kayvan..

you might have phrased your query like this:

I am trying to run some backtests in the new version...but I am stumbling...perhaps I need to understand a little more about how to combine the inputs...but here is what I did...

my setfile:
........
........
etc........


Write like that kayvan...wolfe does not need praise, but more analytical and precise questions..put in a more diplomatic way.

Not like you did and how your post sounded to us.... I can't get this to work the whole EA is not working...Please FIX IT

Just a suggestion...and excuse me for butting in.

ES


Quote:
Originally Posted by kayvan View Post
wolfe i thanked you before doing it . and i always say thank you .


but do we need to open market for have a back test?

Last edited by ElectricSavant; 02-24-2008 at 05:49 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
  #720 (permalink)  
Old 02-24-2008, 05:50 PM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 818
wolfe is on a distinguished road
Quote:
Originally Posted by ElectricSavant View Post
wolfe,

Please excuse my numerous questions...I just want to make sure. Will this combination below give me a trail starting when the float reaches $6 bucks and exit me at $5 bucks, assuming it didn't lock in any more profit?



Use_Trailing_Stop=true
Trail_Start=6.0
TSLoss_Percent=83.4

Close_By_Profit=99999.0
Close_By_StopLoss=99999.0

ES
83.4% of 6 = 6 x 0.834 = 5.004
83.3% of 6 = 6 x 0.833 = 4.998

So, this is about right.

Close_By_Profit & TSLoss_Percent are ignored when Use_Trailing_Stop=true
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 02:09 AM.



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