Go Back   Forex-TSD > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent 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
  #51 (permalink)  
Old 06-20-2007, 11:12 AM
Senior Member
 
Join Date: May 2007
Posts: 105
TickJob is on a distinguished road
maybe using two pairs of closely correlated opposite pairs will be the solution.
or the same pair but two different accounts, one only buy, the other only sell.
For example GBP/USD
if 1.9930, account 1: buy 1; if 1.9940, close all positions and take profit.
if 1.9920, account 2: sell 3; if 1.9920, close all positions and take profit.
if 1.9930, account 1: buy 6; if 1.9940, close all positions and take profit.
if 1.9920, account 2: sell 12; if 1.9920, close all positions and take profit.
if 1.9930, account 1: buy 24; if 1.9940, close all positions and take profit.
if 1.9920, account 2: sell 48; if 1.9920, close all positions and take profit.
if 1.9930, account 1: buy 96; if 1.9940, close all positions and take profit.
if 1.9920, account 2: sell 192; if 1.9920, close all positions and take profit.

until fund not enough, take some loss, the worst case is loss half of the total positions, not all.

Last edited by TickJob; 06-20-2007 at 11:41 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
  #52 (permalink)  
Old 06-20-2007, 01:23 PM
Senior Member
 
Join Date: May 2007
Posts: 105
TickJob is on a distinguished road
If this strategy applied in options then will be perfect

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
  #53 (permalink)  
Old 06-23-2007, 08:50 PM
el cid's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 959
el cid is an unknown quantity at this point
Quote:
Originally Posted by Ducati View Post
I would suggest a fib progression on this EA.
This thread is reopened for discussion following publc demand.

This was a P M from a trader with some constructive suggestion and I was very impressed with his suggestion as follows


MARTINGALE

--------------------------------------------------------------------------------

Hi,
My name is Nasir and I am following your thread, why you closed it, I have this stretegies before one year with the gap of 20 and take profit 40 which was fail in curtern time. from me I thing it is a good strategies I make some twist and it is working fine. I make a gap of 10 and take profit 30 and instead of doubling a lots I go with fibo, like first I will open 0.1, then 0.2,0.3,0.5,0.8,1.3...so on, I make the excel sheet if you have $5000 account you can go upto 10 steps after ten steps the margin will not met so better on 8th step atleast we can have a something like breakeven in this case a move of about 18pips will give us breakeven

Thanks for your constribution
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
  #54 (permalink)  
Old 06-23-2007, 08:54 PM
el cid's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 959
el cid is an unknown quantity at this point
Quote:
Originally Posted by el cid View Post
This thread is reopened for discussion following publc demand.

This was a P M from a trader with some constructive suggestion and I was very impressed with his suggestion as follows


MARTINGALE

--------------------------------------------------------------------------------

Hi,
My name is Nasir and I am following your thread, why you closed it, I have this stretegies before one year with the gap of 20 and take profit 40 which was fail in curtern time. from me I thing it is a good strategies I make some twist and it is working fine. I make a gap of 10 and take profit 30 and instead of doubling a lots I go with fibo, like first I will open 0.1, then 0.2,0.3,0.5,0.8,1.3...so on, I make the excel sheet if you have $5000 account you can go upto 10 steps after ten steps the margin will not met so better on 8th step atleast we can have a something like breakeven in this case a move of about 18pips will give us breakeven

Thanks for your constribution
Nasir

Why not have a fibo exit as well for a quick exit?

Regards

El Cid
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
  #55 (permalink)  
Old 06-28-2007, 07:02 AM
Senior Member
 
Join Date: May 2007
Posts: 105
TickJob is on a distinguished road
Quote:
Originally Posted by el cid View Post
Nasir

Why not have a fibo exit as well for a quick exit?

Regards

El Cid

good idea.
first trade exist is 10 pips
second trade is 20 pips
third & > trade is 30 pips
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
  #56 (permalink)  
Old 06-29-2007, 10:41 AM
Member
 
Join Date: Mar 2007
Posts: 55
salamdo is on a distinguished road
martingale

martingale is a very risky strategy even with tiny lots ....i guess we should focus on where we should put the gap coz we dont care if the market goes down or up but we care if the market stay flat and jumping in the gap so i guess we should concentrate on support and resistance level where we know that there wont be a flat market..
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
  #57 (permalink)  
Old 06-30-2007, 05:31 AM
Senior Member
 
Join Date: May 2007
Posts: 105
TickJob is on a distinguished road
how to determine there is no flat market? first hour when market open?
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
  #58 (permalink)  
Old 06-30-2007, 03:31 PM
ajk's Avatar
ajk ajk is offline
Senior Member
 
Join Date: Dec 2005
Posts: 261
ajk is on a distinguished road
I demo lived martingales a thousand times with about a zillion get ins.
Very tough to make money... The market takes a turn and you miss your take profit and Whamo.! A martingale that keeps in the trade and increases profit is the best option but i am still working on.
Market flat is very hard to determine with indicator...flat is defined as what? let me know and I will program it in..there are tons of martingale eas out there.
http://www.forexmt4.com/_MT4_Experts/
here is a list for ya all. 10.3 is the martingales..You can throw ea's on your charts until your blind!!

Last edited by ajk; 06-30-2007 at 03:44 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
  #59 (permalink)  
Old 07-07-2007, 12:00 AM
Senior Member
 
Join Date: May 2007
Posts: 105
TickJob is on a distinguished road
Sliding-Down/Buying-Long Breakout

Try this one:

This strategy is only buy-long. Applicable for up trend market.
When price goes down, the buy-long breakout price will be adjusted lower.
When loss, the next lot size is increased according to 1,1,2,3,5,8,13...
SL=Range, TP=2xRange.

In the down trend market, Sliding-Up/Selling-Short Breakout should be used. Or maybe better if you have two accounts, one buying-long, one-selling-short.

I think it can be further improved. Any suggestion is welcome.

SmartQuant code is attached:
Quote:
using System;
using System.Drawing;

using OpenQuant.API;
using OpenQuant.API.Indicators;


public class MyStrategy : Strategy
{

[Parameter("Range(pip)")]
public double Range;

[Parameter("Qty")]
public int Qty = 25000;

public double High = 0;

public double Low = 0;

[Parameter("Close positions on strategy stop")]
public bool CloseOnStop = true;

private double delta = 0;

private int ocaCount = 0;

private int n = 1;

private int n1 = 1;

private int n0 = 0;

private double PortfolioValue0 = 0;

private bool started;
private bool newlow;

private int barcount = 0;
private double barclose = 0;
private double barlow = 0;
private double barhigh = 0;
private double barlowest = 999999;

private double minTick = 0.0001;
private double tickSize = 0.0001;
private int decimals = 4;
private bool getDecimals = false;

Order order1;
Order limitOrder;
Order stopOrder;

private double Value = 0;
private double PnL = 0;
private double NetPnL = 0;
private double Debt = 0;
private double CashFlow = 0;
private double NetCashFlow = 0;



public override void OnStrategyStart()
{
getDecimals = int.TryParse(Instrument.PriceFormat.Substring(1,1) , out decimals);
if (getDecimals)
{
tickSize = 1.0/Math.Pow(10,decimals);
if (Instrument.TickSize != 0)
tickSize *= Instrument.TickSize;
minTick = tickSize;
}

PortfolioValue0 = Portfolio.GetValue();
Console.WriteLine("{0}, {1}", Instrument, PortfolioValue0);

started = false;
newlow = false;

}

public override void OnStrategyStop()
{
if (CloseOnStop)
{
if (HasPosition)
{
if (Position.Side == PositionSide.Long)
MarketOrder(OrderSide.Sell, Position.Qty).Send();
else
MarketOrder(OrderSide.Buy, Position.Qty).Send();
}

if (order1 != null)
{
order1.Cancel();
}

if (limitOrder != null)
{
limitOrder.Cancel();
}
}
}

public override void OnBar(Bar bar)
{
barcount ++;
barclose = bar.Close;
barhigh = bar.High;
barlow = bar.Low;

if (barcount > 1)
{
if ((barlow + 0.0001) < barlowest)
{
barlowest = barlow;
newlow = true;
}
}

if (HasPosition)
{
PortfolioValue0 = Portfolio.GetValue();
Value = Position.GetValue();
PnL = Position.GetPnL();
NetPnL = Position.GetNetPnL();
Debt = Position.GetDebtValue();
CashFlow = Position.GetCashFlow();
NetCashFlow = Position.GetNetCashFlow();
// Console.WriteLine("{0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}", Instrument, n, Value, PnL, NetPnL, Debt, CashFlow, NetCashFlow, PortfolioValue0);
}

if (!HasPosition && (barcount > 5))
{

if (!started)
{
started = true;

if ((barclose >= High))
{
n = 1;
n1 = 1;
}
else
{
n0 = n;
n = n+n1;
n1 = n0;
}

Low = barhigh;
High = Low + Range;
delta = 2*Range;
barlowest = barlow;

Low = Math.Round(Low/minTick) * minTick;
High = Math.Round(High/minTick) * minTick;
delta = Math.Round(delta/minTick) * minTick;

order1 = StopOrder(OrderSide.Buy, Qty*(n), High);
order1.Send();
}
else
{ if (newlow)
{
newlow = false;
Low = barlowest;
High = Low + Range;
delta = 2*Range;

Low = Math.Round(Low/minTick) * minTick;
High = Math.Round(High/minTick) * minTick;
delta = Math.Round(delta/minTick) * minTick;

Console.WriteLine("{0}, barlowest = {1}", Instrument, barlowest);
if (order1 != null)
{
order1.Cancel();
}
order1 = StopOrder(OrderSide.Buy, Qty*(n), High);
order1.Send();
}
}
}
}

public override void OnPositionChanged()
{
if (HasPosition)
{
ocaCount++;

limitOrder = LimitOrder(OrderSide.Sell, Position.Qty, High + delta);
stopOrder = StopOrder (OrderSide.Sell, Position.Qty, Low);
string id = Clock.Now.Ticks.ToString();

limitOrder.OCAGroup = id + ": " + Instrument.Symbol + " " + ocaCount;
stopOrder.OCAGroup = id + ": " + Instrument.Symbol + " " + ocaCount;

limitOrder.Send();
stopOrder.Send();

}
else
{
started = false;
}
}
}


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
  #60 (permalink)  
Old 07-07-2007, 08:36 AM
el cid's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 959
el cid is an unknown quantity at this point
Quote:
Originally Posted by TickJob View Post
how to determine there is no flat market? first hour when market open?
use this indicator

I
Attached Files
File Type: mq4 StepMA_v7.mq4 (7.7 KB, 96 views)
File Type: mq4 Kaufman2.mq4 (3.3 KB, 94 views)
File Type: mq4 FLATTR~2.mq4 (3.4 KB, 95 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
Reply

Bookmarks

Tags
martingale, forex, oilfxpro martingale breakout, breakout system, order send error 130, ordersend error 130


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
breakout system ligerny Suggestions for Trading Systems 3 04-25-2008 09:14 AM
Oilfxpro Breakout Systems el cid Manual trading systems 37 09-28-2007 01:41 PM
Yet Another Martingale System KillerKhan Expert Advisors - Metatrader 4 28 04-04-2007 01:24 AM
Need help (yeoeleven or davike20 or who want to help) for a martingale system Cijas Expert Advisors - Metatrader 4 30 03-22-2007 01:44 PM


All times are GMT. The time now is 01:16 AM.



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