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
  #781 (permalink)  
Old 02-25-2008, 05:17 AM
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
Yes, one thing that won't work with long-short balance though is Choose_Own_Progression.

You must only choose ONE of these to be true:

Double_Lotsize
Long_Short_Balance
Choose_Own_Progression

Long_Short_Balance works like this:

Your first order will be whatever your Start_Lot_Size is set at. When it comes time for Long_Short_Balance to work it will balance your long and short lot sizes so they are fully hedged, plus add what ever amount you have selected for Balance_Weight, to the side with the trend.

I hope this makes sense.

Things could be changed later, but as of right now, this is how it works.


look at this picture below ,wolfe.
long- short balance = true
start lot size =.1
balance weight =.1
kayvan meyhod=true

and all the other options false.

is there anything more . that i diden`t do? or the positions are ok?

it puts the first entry 0.1 --the second and all remaining trades just --0.2
thanks
Attached Images
File Type: gif long-short-balance.gif (48.2 KB, 122 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #782 (permalink)  
Old 02-25-2008, 05:19 AM
Member
 
Join Date: Dec 2006
Posts: 66
Paulinge is on a distinguished road
Quote:
Originally Posted by wolfe View Post
First set of bugs fixed. (I hope)

Close_All_Max will close all orders if set to true and you hit Max_Trades, no matter what exit strategy you are using. Even if you are using TS.

Also tried to fix the problem ES was having a few posts back.

Good Luck everyone.



Thank You Mr. Wolfe, for you have DONE.

How about your first setting Mr. ES ??? What do I have change with your setting ???


Thank you so MUCH for ALL of You.


Best regards,
Paulinge
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #783 (permalink)  
Old 02-25-2008, 05:27 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
look at this picture below ,wolfe.
long- short balance = true
start lot size =.1
balance weight =.1
kayvan meyhod=true

and all the other options false.

is there anything more . that i diden`t do? or the positions are ok?

it puts the first entry 0.1 --the second and all remaining trades just --0.2
thanks
That looks right kayvan. You always have .1 greater on your last order, which is your set balance weight.

You see, it is balancing itself every trade and adding the balance weight, so you always have a greater amount of TOTAL lot sizes open on your last (your trending) side.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #784 (permalink)  
Old 02-25-2008, 05:34 AM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,010
ElectricSavant is on a distinguished road
the settings stay the same even with the upgrade...


Quote:
Originally Posted by Paulinge View Post
Thank You Mr. Wolfe, for you have DONE.

How about your first setting Mr. ES ??? What do I have change with your setting ???


Thank you so MUCH for ALL of You.


Best regards,
Paulinge
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #785 (permalink)  
Old 02-25-2008, 05:58 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 719
wolfe is on a distinguished road
Good luck testing tomorrow everyone, I have to check out for the next 20 hours or so. (unfortunately I have to sleep and go to a day job) I'll answer any questions when I get back.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #786 (permalink)  
Old 02-25-2008, 06:11 AM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,010
ElectricSavant is on a distinguished road
wolfe,

I got the same bug, why did I get a short with 4 lag and a 12 look back on the m5 with the lastentryfiler true?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #787 (permalink)  
Old 02-25-2008, 06:31 AM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,010
ElectricSavant is on a distinguished road
ahhh..

I think I know what kayvan was earlier posting about...

The candlesticks are formed with the ask line.

The kayvan rule is...to buy 2 pips above the high of the candle and sell 2 pips below the low of the candle....VISUALLY

But..

We buy on the ask and sell on the bid...and the high and the low of the candles are formed with the bid on MT4

wolfe can you go through your entire code and make sure that

bid is for the sells

and....

ask is for the buys

then we can adjust the buy lag and the sell lag when we know for sure you got all the ducks in a row!

He is gonna' beat me...I just know it!

ES

Last edited by ElectricSavant; 02-28-2008 at 03:14 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #788 (permalink)  
Old 02-25-2008, 06:48 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 719
wolfe is on a distinguished road
Quote:
Originally Posted by ElectricSavant View Post
ahhh..

I think I know what kayvan was earlier posting about...

The candlesticks are formed with the ask line....

The kayvan rule is...to buy 3 pips above the high of the candle and sell 3 pips below the low of the candle....VISUALLY

But..

We buy on the ask and sell on the bid...and the high and the low of the candles are formed with the bid on MT4..

wolfe can you go through your entire code and make sure that

bid is for the sells

and....

ask is for the buys

then we can adjust the buy lag and the sell lag when we know for sure you got all the ducks in a row!

He is gonna' beat me...I just know it!

ES
I'm still here for just a little while longer.

The rules in coding an OrderSend() command:
At opening of a market order (OP_SELL or OP_BUY), only the latest prices of Bid (for selling) or Ask (for buying) can be used as open price.

All the long OrderSend() commands contain the Ask:
PHP Code:
Ticket=OrderSend(Symbol(),OP_BUY,Lot_Size,Ask,Slippage,NULL,NULL,"TFX_LONG_ADDITIONAL",Magic_Number,0,Green); 
All the short OrderSend() commands contain the Bid:
PHP Code:
Ticket=OrderSend(Symbol(),OP_SELL,Lot_Size,Bid,Slippage,NULL,NULL,"TFX_SHORT_ADDITIONAL",Magic_Number,0,Red); 
When using your entry lag take into account your spread.

I'll think about this tomorrow, and see if any other good answer arises.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #789 (permalink)  
Old 02-25-2008, 06:52 AM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,010
ElectricSavant is on a distinguished road
Thanks wolfe...I am going to bed...

ES

Quote:
Originally Posted by wolfe View Post
I'm still here for just a little while longer.

The rules in coding an OrderSend() command:
At opening of a market order (OP_SELL or OP_BUY), only the latest prices of Bid (for selling) or Ask (for buying) can be used as open price.

All the long OrderSend() commands contain the Ask:
PHP Code:
Ticket=OrderSend(Symbol(),OP_BUY,Lot_Size,Ask,Slippage,NULL,NULL,"TFX_LONG_ADDITIONAL",Magic_Number,0,Green); 
All the short OrderSend() commands contain the Bid:
PHP Code:
Ticket=OrderSend(Symbol(),OP_SELL,Lot_Size,Bid,Slippage,NULL,NULL,"TFX_SHORT_ADDITIONAL",Magic_Number,0,Red); 
When using your entry lag take into account your spread.

I'll think about this tomorrow, and see if any other good answer arises.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #790 (permalink)  
Old 02-25-2008, 07:37 AM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,010
ElectricSavant is on a distinguished road
I woke up to check the charts and I notice the TS is not working...
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:45 PM.



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