Chameleon.zip (margrids-battle-chest@googlegroups.com)

154 views
Skip to first unread message

Rick Drake (Google Drive)

unread,
Oct 27, 2013, 6:26:38 PM10/27/13
to margrids-b...@googlegroups.com
I've shared an item with you.
I'm excited to present the very first version of Chameleon. At this point it's a very simple Martingale that uses a DLL for all logic decisions. This has been developed with speed in mind. When you backtest, you will notice a huge boost in speed over MBC.

The inputs are very simplistic at this point.

VisualMode - decides whether or not to show the display. If you want speed during backtesting, turn this to false.

Magic, MaxLevel, and BaseBalance are self explanatory to everyone here.

The Execution Point Progression, Volume Progression, and Target Progression all have 2 inputs each, A and B. The formula A*e^(B*Level) is employed.

For example, if 19 is specified for the A on the Target, and B is specified as 0.05, then the Target for the first level will be

Target = 19 * e^(0.05 * 1) = 20

The target for the fifth level would be

Target  = 19*e^(0.05*5) = 24

At this point, I need everyone to start using this EA on Demo Accounts to try and break it. I also need someone to test restarts and make sure that trades are not lost.

Also, for backtesting, stops are kept track of internally. For real and demo accounts, stops are actually set.

Eventually, I will create documentation. 

Enjoy,

- Rick
Item Chameleon.zip
Google Drive: create, share, and keep all your stuff in one place. Logo for Google Drive

krazeee...@gmail.com

unread,
Oct 27, 2013, 6:40:36 PM10/27/13
to margrids-b...@googlegroups.com
Wow thanks Rick! I'm genuinely excited to try this out!
Sent from my BlackBerry device on the Rogers Wireless Network

From: "Rick Drake (Google Drive)" <drak...@gmail.com>
Date: Sun, 27 Oct 2013 22:26:38 +0000
Subject: [margrids-battle-chest] Chameleon.zip (margrids-b...@googlegroups.com)

--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.
To post to this group, send email to margrids-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/margrids-battle-chest.
For more options, visit https://groups.google.com/groups/opt_out.

Mark Suddens

unread,
Oct 27, 2013, 8:00:29 PM10/27/13
to margrids-b...@googlegroups.com

Hey thank you so much for the long hours of effort that you have put into this Rick. Really looking forward to getting stuck into testing and helping develop chameleon into the best marty ea out there. Well done
Cheers mark

Sent from Yahoo Mail on Android



From: Rick Drake (Google Drive) <drak...@gmail.com>;
To: <margrids-b...@googlegroups.com>;
Subject: [margrids-battle-chest] Chameleon.zip (margrids-b...@googlegroups.com)
Sent: Sun, Oct 27, 2013 10:26:38 PM

Rick Drake

unread,
Oct 27, 2013, 8:12:07 PM10/27/13
to margrids-b...@googlegroups.com
For sure. My aim is for it to be simple, and effective, and minimize the risk of blown accounts. With the C++ logic I have developed, it becomes trivial to track which trades belong to what basket, and now baskets can contain both long positions and short positions. The DLL is pretty large in size, because I've used the BOOST libraries to enable writing the basket structures out to files. You will notice those files under the experts/files folder that I've created. Files that end in .err are error files that get created when C++ runtime errors are encountered. The .dat files are the files that store the state of the basket and all the trades that belong to it. Anyways, once I've finished the development, I'll switch from the debuging libraries to the release libraries and recompile... and hopefully the DLL will shrink in size to well below 1 MB.

- Rick


--

Mark Suddens

unread,
Oct 27, 2013, 8:56:54 PM10/27/13
to margrids-b...@googlegroups.com
HI Rick - 
report so far:

Loaded onto demo AC on PC windows OS
and live account (with a few cents only in) on VPS windows server 2012

on both, either when live trading or backtest Chameleon could not start trading due to a 126 error

cannot load library 'MargridsChameleon.dll' (error 126)

Both EA and library were in the correct locations/directorys
no.dat or .err files written to the 'files' directory
Cheers Mark


From: Rick Drake <drak...@gmail.com>
To: margrids-b...@googlegroups.com
Sent: Monday, 28 October 2013 1:12 PM
Subject: Re: [margrids-battle-chest] Chameleon.zip (margrids-b...@googlegroups.com)

For sure. My aim is for it to be simple, and effective, and minimize the risk of blown accounts. With the C++ logic I have developed, it becomes trivial to track which trades belong to what basket, and now baskets can contain both long positions and short positions. The DLL is pretty large in size, because I've used the BOOST libraries to enable writing the basket structures out to files. You will notice those files under the experts/files folder that I've created. Files that end in .err are error files that get created when C++ runtime errors are encountered. The .dat files are the files that store the state of the basket and all the trades that belong to it.. Anyways, once I've finished the development, I'll switch from the debuging libraries to the release libraries and recompile... and hopefully the DLL will shrink in size to well below 1 MB.

- Rick



For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.
To post to this group, send email to margrids-b...@googlegroups.com.
New Text Document.txt

Mark Suddens

unread,
Oct 27, 2013, 9:02:30 PM10/27/13
to margrids-b...@googlegroups.com
HI Rick
re: previous email
could it be Chameleon dll looking for other dll's called up from you system directory on your development machine? 
(I read something about this once on a forum to do with error 126)
 
Cheers Mark


From: Rick Drake <drak...@gmail.com>
To: margrids-b...@googlegroups.com
Sent: Monday, 28 October 2013 1:12 PM
Subject: Re: [margrids-battle-chest] Chameleon.zip (margrids-b...@googlegroups.com)

Rick Drake

unread,
Oct 27, 2013, 9:17:12 PM10/27/13
to margrids-b...@googlegroups.com
Yeah... I just discovered and fixed the problem. I didn't reallize that GCC automatically links to the shared version of the GCC library, rather than the static, when compiling. So I recompiled it and took care of the problem.

- Rick

Rick Drake (Google Drive)

unread,
Oct 27, 2013, 9:18:37 PM10/27/13
to margrids-b...@googlegroups.com
I've shared an item with you.
Statically linked... this eliminates the dependency on the GCC dll.

- Rick
Item Chameleon.zip

Rick Drake

unread,
Oct 27, 2013, 9:52:19 PM10/27/13
to margrids-b...@googlegroups.com
I'm not quite sure why... but the display is not showing up on my demo account. Is anybody getting a display for a demo account? The display worked perfectly on my backtesting... perhaps I need to download a newer version of Metatrader to compile the front end with...

- Rick


--

Rick Drake (Google Drive)

unread,
Oct 27, 2013, 10:06:51 PM10/27/13
to margrids-b...@googlegroups.com
I've shared an item with you.
Got the display working.

- Rick
Item Chameleon.zip

Mark Suddens

unread,
Oct 27, 2013, 10:12:44 PM10/27/13
to margrids-b...@googlegroups.com
Yep
trading now and OSD working
*:) happy
 
Cheers Mark


From: Rick Drake (Google Drive) <drak...@gmail.com>
To: margrids-b...@googlegroups.com
Sent: Monday, 28 October 2013 3:06 PM
Subject: [margrids-battle-chest] Chameleon.zip (margrids-b...@googlegroups.com)

Rick Drake

unread,
Oct 27, 2013, 10:14:10 PM10/27/13
to margrids-b...@googlegroups.com
Ok... with the display fixed, I was able to verify that the restart picked up the basket info correctly, so it appears that the system recovers from restarts nicely. The concluding proof will be when it resumes trading correctly when the price moves.

- Rick


--

BearBull

unread,
Oct 27, 2013, 10:48:16 PM10/27/13
to margrids-b...@googlegroups.com
Hi Rick,

Appears if you open a new demo account, when there were open trades on the old account, the new account will try to manage non existent trades. Only way out of it was deleting all the .dat files that are stored in the VirtualStore Expert/Files folder for the MT4 version. You get an error message saying the EA is trying to access non existing tickets. A LOT of them.

BearBull

unread,
Oct 27, 2013, 10:56:55 PM10/27/13
to margrids-b...@googlegroups.com
Hi Rick,

Running with EP and TP = 2 so to get some action on a live account.
Baskets are closing in Profit :))
Noticed a Sell basket is called a Up basket and a Buy basket is called a Down basket?
Maybe Sell should be a Down basket and Buy should be a Up basket?

Rick Drake

unread,
Oct 27, 2013, 11:11:38 PM10/27/13
to margrids-b...@googlegroups.com
Yeah... I wasn't sure what to call it as the baskets will eventually contain both longs and shorts. The idea is that a Down Basket (full of martingale buys and anti-martingale sells) forms when the price moves down. Vice versa for the Up Basket. I could easily rename it... is my convention confusing?

- Rick

BearBull

unread,
Oct 27, 2013, 11:15:34 PM10/27/13
to margrids-b...@googlegroups.com
Hi Rick,

With that explanation, the convention is fine.
I'm getting a lot of action using EP and TP of 2.

BearBull

unread,
Oct 27, 2013, 11:19:46 PM10/27/13
to margrids-b...@googlegroups.com
So far it is holding together.
Ep and TP is what it should be and basket formation is as expected.
Chameleon.jpg

Rick Drake

unread,
Oct 27, 2013, 11:23:41 PM10/27/13
to margrids-b...@googlegroups.com
Glad to hear that. One nice thing, is that since all the logic is moved outside Metatrader and into the DLL... you can now sort the history in metatrader to whatever ordering you please, and don't have to worry about hedge detection issues. That was something I absolutely hated about Metatrader...

Oh... with all that action going on... could you try closing and restarting Metatrader and seeing if it resumes trading where it should?

- Rick

BearBull

unread,
Oct 27, 2013, 11:28:00 PM10/27/13
to margrids-b...@googlegroups.com
Already did that.
It works OK.
Picked up all the existing baskets.
Just need to handle if the user stops the EA, manually closes some trades / baskets and then restarts the EA.
It will hang.

BearBull

unread,
Oct 27, 2013, 11:45:56 PM10/27/13
to margrids-b...@googlegroups.com
Just altered the BaseBalance.
Nice to see a new trade to adjust the basket to the altered BaseBalance.
Also noticed the display did not show a new level, so this is working like before.

Do you plan to add comments?
They were good as then it was possible to see New Level trades as different from Balance Adjustment trades at the same level as the latest level.

Rick Drake

unread,
Oct 28, 2013, 12:26:43 AM10/28/13
to margrids-b...@googlegroups.com
Yeah I plan to add comments.

- Rick

BearBull

unread,
Oct 28, 2013, 12:37:12 AM10/28/13
to margrids-b...@googlegroups.com
:))

BearBull

unread,
Oct 28, 2013, 3:11:09 AM10/28/13
to margrids-b...@googlegroups.com

BearBull

unread,
Oct 28, 2013, 3:15:22 AM10/28/13
to margrids-b...@googlegroups.com
Rick to confirm.

At this point, there is no AM, no Sliding Hedges, no FATP?
The account will go until it MCs or is manually stopped?

Mark Suddens

unread,
Oct 28, 2013, 4:10:57 AM10/28/13
to margrids-b...@googlegroups.com
Hiya BB
Not answering for Rick here but he did say this is a limited cut down release of Chameleon, with a basic Martingale grid to test the robustness of the programming system. The Chameleon concept has a new take on the Marty / AM basket formation

Don't you love the exponential series generation of  EP, Trade size and Target... saves hours of typing in values for all the levels.... Great work Rick.

Also much with abusing of a demo account have only got a loss of control / crash once. will try to reproduce
It is great the way if you manually close several mid basket trades, Chameleon will reopen 1 trade at market, as the sum of the manually closed trades, and still call it as the correct basket level in the OSD 
Cheers Mark


From: BearBull <bearb...@gmail.com>
To: margrids-b...@googlegroups.com
Sent: Monday, 28 October 2013 8:15 PM

Subject: Re: [margrids-battle-chest] Chameleon.zip (margrids-b...@googlegroups.com)
Rick to confirm.

At this point, there is no AM, no Sliding Hedges, no FATP?
The account will go until it MCs or is manually stopped?
On Mon, Oct 28, 2013 at 5:41 PM, BearBull <bearb...@gmail.com> wrote:
On Mon, Oct 28, 2013 at 3:07 PM, BearBull <bearb...@gmail.com> wrote:
:))


On Mon, Oct 28, 2013 at 2:56 PM, Rick Drake <drak...@gmail.com> wrote:
Yeah I plan to add comments.

- Rick
On Sun, Oct 27, 2013 at 8:45 PM, BearBull <bearb...@gmail.com> wrote:
Just altered the BaseBalance.
Nice to see a new trade to adjust the basket to the altered BaseBalance.
Also noticed the display did not show a new level, so this is working like before.

Do you plan to add comments?
They were good as then it was possible to see New Level trades as different from Balance Adjustment trades at the same level as the latest level.

On Mon, Oct 28, 2013 at 1:58 PM, BearBull <bearb...@gmail.com> wrote:
Already did that.
It works OK.
Picked up all the existing baskets.
Just need to handle if the user stops the EA, manually closes some trades / baskets and then restarts the EA.
It will hang.
On Mon, Oct 28, 2013 at 1:53 PM, Rick Drake <drak...@gmail.com> wrote:
Glad to hear that. One nice thing, is that since all the logic is moved outside Metatrader and into the DLL... you can now sort the history in metatrader to whatever ordering you please, and don't have to worry about hedge detection issues. That was something I absolutely hated about Metatrader....

Oh... with all that action going on... could you try closing and restarting Metatrader and seeing if it resumes trading where it should?

- Rick
On Sun, Oct 27, 2013 at 8:19 PM, BearBull <bearb...@gmail.com> wrote:
So far it is holding together.
Ep and TP is what it should be and basket formation is as expected.
On Mon, Oct 28, 2013 at 1:45 PM, BearBull <bearb...@gmail.com> wrote:
Hi Rick,

With that explanation, the convention is fine.
I'm getting a lot of action using EP and TP of 2.
On Mon, Oct 28, 2013 at 1:41 PM, Rick Drake <drak...@gmail.com> wrote:
Yeah.... I wasn't sure what to call it as the baskets will eventually contain both longs and shorts. The idea is that a Down Basket (full of martingale buys and anti-martingale sells) forms when the price moves down. Vice versa for the Up Basket. I could easily rename it... is my convention confusing?

- Rick

BearBull

unread,
Oct 28, 2013, 4:34:42 AM10/28/13
to margrids-b...@googlegroups.com
Hi Mark,

Need to report I forced a MC.
MT4 closed down the worst trade as expected.
Drove Chameleon into a very tight loop (totally chewed up 1 core on an I7 cpu) as the Ticket was still in the GBPAUD.dat file but was not in the open orders.
Eventually took down MT4.
Only way to clear it was to remove the EA (with MT4 up) and delete the associated .dat up and down files while MT4 was down.

BearBull

unread,
Oct 28, 2013, 4:38:23 AM10/28/13
to margrids-b...@googlegroups.com
Hi Mark,

"It is great the way if you manually close several mid basket trades, Chameleon will reopen 1 trade at market, as the sum of the manually closed trades, and still call it as the correct basket level in the OSD"

That is sometimes not a good thing to happen.
Did notice that if you close the last trade, it is not reopened.
Will try closing a few trades in the middle of the basket.



On Mon, Oct 28, 2013 at 6:40 PM, Mark Suddens <cab...@xtra.co.nz> wrote:

Mark Suddens

unread,
Oct 28, 2013, 4:39:06 AM10/28/13
to margrids-b...@googlegroups.com
Yep
I second this
It happened to me on a BT
not enough money for next level (was about a L12 on the sequence I was using)
The Journal showed Chameleon looping until MT4 crashed
 
Cheers Mark


Sent: Monday, 28 October 2013 9:34 PM
:))


Hi Rick,

Running with EP and TP = 2 so to get some action on a live account..

For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.
To post to this group, send email to margrids-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/margrids-battle-chest.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.
To post to this group, send email to margrids-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/margrids-battle-chest.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.
To post to this group, send email to margrids-battle-chest@googlegroups..com.
--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.
To post to this group, send email to margrids-b...@googlegroups.com.

Mark Suddens

unread,
Oct 28, 2013, 4:42:15 AM10/28/13
to margrids-b...@googlegroups.com
I have noticed if the first trade in a basket is manually closed. Then Chameleon will stop re-opening trades too and loose control.
(I think we are engaging in basket abuse)
 
Cheers Mark


Sent: Monday, 28 October 2013 9:38 PM
:))


Also noticed the display did not show a new level, so this is working like before..

Do you plan to add comments?
They were good as then it was possible to see New Level trades as different from Balance Adjustment trades at the same level as the latest level.

On Mon, Oct 28, 2013 at 1:58 PM, BearBull <bearb...@gmail.com> wrote:
Already did that.
It works OK.
Picked up all the existing baskets.
Just need to handle if the user stops the EA, manually closes some trades / baskets and then restarts the EA.
It will hang.
On Mon, Oct 28, 2013 at 1:53 PM, Rick Drake <drak...@gmail.com> wrote:
Glad to hear that. One nice thing, is that since all the logic is moved outside Metatrader and into the DLL.... you can now sort the history in metatrader to whatever ordering you please, and don't have to worry about hedge detection issues. That was something I absolutely hated about Metatrader....

Oh... with all that action going on... could you try closing and restarting Metatrader and seeing if it resumes trading where it should?

- Rick
On Sun, Oct 27, 2013 at 8:19 PM, BearBull <bearb...@gmail.com> wrote:
So far it is holding together.
Ep and TP is what it should be and basket formation is as expected.
On Mon, Oct 28, 2013 at 1:45 PM, BearBull <bearb...@gmail.com> wrote:
Hi Rick,

With that explanation, the convention is fine.
I'm getting a lot of action using EP and TP of 2.
On Mon, Oct 28, 2013 at 1:41 PM, Rick Drake <drak...@gmail.com> wrote:
Yeah.... I wasn't sure what to call it as the baskets will eventually contain both longs and shorts. The idea is that a Down Basket (full of martingale buys and anti-martingale sells) forms when the price moves down. Vice versa for the Up Basket.. I could easily rename it... is my convention confusing?

- Rick


On Sun, Oct 27, 2013 at 7:56 PM, BearBull <bearb...@gmail.com> wrote:
Hi Rick,

Running with EP and TP = 2 so to get some action on a live account.
Baskets are closing in Profit :))
Noticed a Sell basket is called a Up basket and a Buy basket is called a Down basket?
Maybe Sell should be a Down basket and Buy should be a Up basket?
On Mon, Oct 28, 2013 at 1:18 PM, BearBull <bearb...@gmail.com> wrote:
Hi Rick,

Appears if you open a new demo account, when there were open trades on the old account, the new account will try to manage non existent trades. Only way out of it was deleting all the .dat files that are stored in the VirtualStore Expert/Files folder for the MT4 version. You get an error message saying the EA is trying to access non existing tickets. A LOT of them.
On Mon, Oct 28, 2013 at 12:44 PM, Rick Drake <drak...@gmail.com> wrote:
Ok... with the display fixed, I was able to verify that the restart picked up the basket info correctly, so it appears that the system recovers from restarts nicely. The concluding proof will be when it resumes trading correctly when the price moves.

- Rick


On Sun, Oct 27, 2013 at 7:06 PM, Rick Drake (Google Drive) <drakerick@gmail..com> wrote:
I've shared an item with you..
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com..

BearBull

unread,
Oct 28, 2013, 4:50:43 AM10/28/13
to margrids-b...@googlegroups.com
Hi Mark,

Recovering to a new demo account is a bit tricky.
Have found this works.

1) Disable all EAs and Remove (right click on the Chart, click EAs, click Remove) any EAs that are looping.
2) Open a new Demo Account.
3) Wait until it opens.
4) Shut down MT4.
5) Remove all the .dat and .err files.
6) Restart MT4.
7) Enable all EAs.
8) Resetup any EAs that were looping.

BearBull

unread,
Oct 28, 2013, 4:52:22 AM10/28/13
to margrids-b...@googlegroups.com
Hi Mark,

Doing such stuff is fairly common practice as part of "stressed basket maintenance".
Not fun but sometime it can save the account. 

Mark Suddens

unread,
Oct 28, 2013, 5:00:39 AM10/28/13
to margrids-b...@googlegroups.com

Cheers. Got to give it away for the evening now.

Subject: Re: [margrids-battle-chest] Chameleon.zip (margrids-b...@googlegroups.com)
Sent: Mon, Oct 28, 2013 8:50:43 AM

:))


To post to this group, send email to margrids-battle-chest@googlegroups...com.
--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.
To post to this group, send email to margrids-b...@googlegroups.com.
Visit this group at http://groups.google..com/group/margrids-battle-chest.

For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.
To post to this group, send email to margrids-b...@googlegroups.com.



--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group..

Mark Suddens

unread,
Oct 28, 2013, 5:02:49 AM10/28/13
to margrids-b...@googlegroups.com

Ha ha the stress only comes un when it's real money

Subject: Re: [margrids-battle-chest] Chameleon.zip (margrids-b...@googlegroups.com)
Sent: Mon, Oct 28, 2013 8:52:22 AM

BearBull

unread,
Oct 28, 2013, 5:30:22 AM10/28/13
to margrids-b...@googlegroups.com
Hi Mark,

It is about knowing what tools you need and being able to depend on them, when you are up to your neck in alligators.
So far Chameleon is what Rick claimed.
A basic grid trader with a innovative way to generate the basket building parameters.

Needs just a FEW more functional tools before starting to talk about live accounts.
So far the EA looping and maybe taking down MT4, on a simple missing ticket, is a BIG problem.

Eogorfx

unread,
Oct 28, 2013, 6:36:36 AM10/28/13
to margrids-b...@googlegroups.com
Rick
Thanks a million for sharing your Chameleon trader.
I will try in on demo and report on how it works on FXCM 

Ed

Rick Drake

unread,
Oct 28, 2013, 10:31:31 AM10/28/13
to margrids-b...@googlegroups.com
Well I see that the looping system needs a bit of changing. I'll add a counter and have the loops eject after several iterations. In short, there are 4 queues that are in operation. One for opening orders, one for closing orders, one for modifying orders, and one for detecting closed trades. The logic in the DLL simply places trades into the corresponding queue. Then, Metatrader checks those queues inside a loop, and loops as long as there is another trade in the queue. I think the problem is that under certain circumstances the trade cannot be executed (not enough margin for example) and the trade does not get removed from the queue, thus sending it into an infinite loop. I'll have to add some more logic controls to ensure the infinite loop does not occur. Or... remove the item in the queue no matter what is the result of the trade operation... and have it simply go around again.

I was also thinking about creating an infinite loop with a pause that would in effect check all of the trade logic every 10 milliseconds or so... such that if a trade was not formed, the system would not need to wait for the next incoming tick but could immediately check the conditions and then open another trade. Then I could detect for backtesting or if trading is no longer allowed, and break out of the loop in those situations.

Thanks BearBull and Mark for thoroughly stress testing and abusing Chameleon. Your efforts are definitely appreciated as they show the weaknesses that need to be ironed out.

- Rick

Rick Drake (Google Drive)

unread,
Oct 28, 2013, 10:00:23 PM10/28/13
to margrids-b...@googlegroups.com
I've shared an item with you.
Added some checks to hopefully eliminate the infinite loops that can hang metatrader.

- Rick
Item Chameleon.zip

Mark Suddens

unread,
Oct 28, 2013, 11:49:37 PM10/28/13
to margrids-b...@googlegroups.com
Yep
Seems to stop now on MC in backtesting
Journal message:
"Chameleon: stopped because of Stop Out"
Will try to get similar confirmation from live demo

 
Cheers Mark


From: Rick Drake (Google Drive) <drak...@gmail.com>
To: margrids-b...@googlegroups.com
Sent: Tuesday, 29 October 2013 3:00 PM
Subject: [margrids-battle-chest] Chameleon.zip (margrids-b...@googlegroups.com)

Rick Drake

unread,
Oct 29, 2013, 12:00:40 AM10/29/13
to margrids-b...@googlegroups.com
Sounds good.

- Rick

Mark Suddens

unread,
Oct 29, 2013, 2:29:02 AM10/29/13
to margrids-b...@googlegroups.com
HI Rick
Some sort of issue here...(see screen shots)
MT4 which had previously been trading Chameleon (in which I deleted the account that Chameleon had been trading on.)
Opened new demo A/C, re-started MT4, opened new Chart but and started Chameleon trading
OSD shows 2 level up basket and level 4 down basket (these were the basket sizes open on previous chart on deleted account)
Only one trade of 0.1 open (where as a L1 trade should be 0.01)
Error messages in experts log, Journal clear

Will investigate further
 
Cheers Mark


From: Rick Drake <drak...@gmail.com>
To: margrids-b...@googlegroups.com
Sent: Tuesday, 29 October 2013 5:00 PM

Subject: Re: [margrids-battle-chest] Chameleon.zip (margrids-b...@googlegroups.com)
Chameleon 1A 2013.10.29 issue 1A.zip

BearBull

unread,
Oct 29, 2013, 2:35:58 AM10/29/13
to margrids-b...@googlegroups.com
Hi Mark,

Did you delete the .dat file in the experts/files folder?
Need to look in VirtualStore/x86/broker/experts/files.

Mark Suddens

unread,
Oct 29, 2013, 3:32:01 AM10/29/13
to margrids-b...@googlegroups.com
Hi BB
No  I will do that.which will probably fix it
However I am looking for issues as if Chameleon was used 'off the shelf" if you like.
ie to enable it to run under all conditions without manually deleting log files etc.
 
Cheers Mark


From: BearBull <bearb...@gmail.com>
To: margrids-b...@googlegroups.com
Sent: Tuesday, 29 October 2013 7:35 PM

BearBull

unread,
Oct 29, 2013, 3:47:33 AM10/29/13
to margrids-b...@googlegroups.com

Hi Mark

Yes of course.

But at the moment mismatches between the existing .dat files and the actual opens appears to still be a problem.

Rick I would strongly suggest to put back the 40 level set file as an alternative to your new method. The reason is operationally sometime you need to modify 1 or 2 of the individual levels. With your new method that is not possible. Also there are EP and TP programs which can't be achieved with your new method.

via Note 2
 

Mark Suddens

unread,
Oct 29, 2013, 4:34:30 AM10/29/13
to margrids-b...@googlegroups.com

HI BB I agree....it seems that if we suspend trading, close all the open trades in an up basket (or a down basket - equivalent to chicken out) then allow trading again, then the .dat file for that basket is re-set and trading re-commences at l1.
This works well
However there are only a few circumstances (for example deleting an account) where this can be circumvented and old .dat files cause issues, and these are quantifiable not random from what i can see.

RE the set file issue - MBC is still a very functional EA as a Marty grid with 40level manual entry EP, TP etc.
I would rate the development of Chameleon with implementation of its core Martingale/AM switch over strategy as the primary objective. I would think that testing the viability and potential of this strategy as paramount and that adding extra elements back into Chameleon could follow.

Its totally Rick's call of course. Ime just so grateful that he is so generous with his time and efforts and willing to share this development journey with us.
 
Cheers Mark


Sent: Tuesday, 29 October 2013 8:47 PM
To post to this group, send email to margrids-b...@googlegroups.com..

Eogorfx

unread,
Oct 29, 2013, 8:38:07 AM10/29/13
to margrids-b...@googlegroups.com
Rick
I cannot bring up the input dialogue when Chameleon is running when I click F7
I have to restart MT4 to be able to get it visible. Is this normal as I have never noticed this with any other EA?
Also the OSD is hit and miss in that sometimes it shows and sometimes not but when on it stays on until I restart MT4 then it might appear. Visible is set to true and all inputs on default except balance.
Ed

BearBull

unread,
Oct 29, 2013, 8:45:09 AM10/29/13
to margrids-b...@googlegroups.com

Hi Ed

Have seen that happen when Chameleon is looping due to open trade versus .dat file ticket mismatch.

via Note 2
 

Rick Drake

unread,
Oct 29, 2013, 10:54:13 AM10/29/13
to margrids-b...@googlegroups.com
I see that I need to store the account number in the basket information that get's written to the file... then if the account numbers change I can clear the .dat files. That should clear up the issues when deleting accounts.

BearBull, I do plan on implementing a system where you can create a custom EP, Lotsize strategy. I plan on reading in a separate settings csv file, and it will look something like this...

EP,LotSize,Target
20,0.01,25
20,0.01,25
20,0.02,25
etc...

Chameleon will then loop, reading in the lines until there is no more to read in. This way, there will be an extremely large number of levels possible (many thousands... as many as the arrays can hold). This settings file will override the values calculated by the A and B variables. I'll have two files, one for the Martingale and one for the Anti-Martingale. This should be much simpler and way faster, as Excel can then be used to generate whatever pattern you like.

We need to start thinking about the strategy for how the Martingale and AntiMartingale works together. I'm thinking that the Martingale portion operates until it is either maxed out, or until the Channels is broken out of. Then, the Martingale will make no more trades at all. The AntiMartingale then kicks in with it's progression. At  low levels of the AntiMartingale, the stops on the AntMartingale trades are placed at the same spot as the target's on the Martingale, and both are moved around based on the breakeven point of all the trades in the basket. Then, as the AntiMartingale gains higher levels, the stops are placed at a different point then the Martingales stops... such that a retrace would hit the AntiMartingale stops and then hopefully continue on to the targets of the Martingale. Finally, if the prices continue and the AntiMartingale overwhelms the Martingale, the entire basket will move into a profit and the stops and targets can all be placed at the same location once again.

The only danger of this strategy is that once the AntiMartingale reaches the intermediate levels, the market could hit the stops on the AntiMartingale, leaving the Martingale exposed... and then the market could continue and build up another AntiMartingale, and then repeat hitting the stops. This would have the effect of the basket losing more and more.

Another option for the intermediate levels, would be to have stops set individually for each trade in the AntiMartingale, such that on a retrace, positions would be closed one at a time, preferably at break even... this could help minimize leaving the Martingale totally exposed to the trend while the AntiMartingale tries to scale itself back in.

Let me know what you guys think...

- Rick

Rick Drake (Google Drive)

unread,
Oct 29, 2013, 10:04:25 PM10/29/13
to margrids-b...@googlegroups.com
I've shared an item with you.
Added the functionality of custom settings for each level, which are loaded from a CSV file if present, Custom settings for the particular currency pair is set by creating a file "ChameleonSettingsCURRENCYPAIR.csv" such as "ChameleonSettingsEURUSD.csv" and placing it in the experts/files folder. The default settings file is "ChameleonSettings.csv". And of course, if there is no settings file at all, then the settings will be taken from the values calculated from the A and B. I'll share an example settings file. There is no practical limit as to the number of levels possible.

- Rick
Item Chameleon.zip

Mark Suddens

unread,
Oct 30, 2013, 1:31:53 AM10/30/13
to margrids-b...@googlegroups.com
HI Ed
the only time I had problems bringing up an input dialogue box on an EA was a while ago  on an overloaded VPS. I just had too many MT4s open and had maxed out my RAM or processor allocation.
Have not had any problems with Chameleon in this regard.
Have you looked at you computer resources processor/memory usage etc when you are having problems?
 
Cheers Mark


From: Eogorfx <eog...@gmail.com>
To: "margrids-b...@googlegroups.com" <margrids-b...@googlegroups.com>
Sent: Wednesday, 30 October 2013 1:38 AM

Subject: Re: [margrids-battle-chest] Chameleon.zip (margrids-b...@googlegroups.com)

Eogorfx

unread,
Oct 30, 2013, 10:25:42 AM10/30/13
to margrids-b...@googlegroups.com
Mark
You are right on target.
I had just one other MT4 running on my VPS and when I closed that down F7 works on Chameleon. No prob with opening inputs on other EA though when both are running. CPU is only running at <20% but RAM is up around 80%with both on. I guess CH needs lots of Ram for all that dll interaction.
I have had 4 x MT4 running on same VPS (which I know is ott) with 512MB Ram but never noticed this 'till now.
Tks for your experienced and response.
Ed

Rick Drake

unread,
Oct 30, 2013, 10:29:18 AM10/30/13
to margrids-b...@googlegroups.com
Chameleon should not need much ram... but that being said I didn't know Windows Server could even run on only 512 MB. I personally have 1GB of ram on my VPS and I can have as many MT4s running as I like. I currently have 3, including Chameleon, with absolutely no problems.

- Rick


Ed Gor

unread,
Oct 30, 2013, 2:44:41 PM10/30/13
to margrids-b...@googlegroups.com
Rick
I hope I didn't send you on a wild goose chase with that report re the Inputs display.
I have a BEEKS VPS with 1.6G Ram which came free with my FXCM account and it is superb.  I also have low cost one from  http://www.thrustvps.com/vps/advancedvps/ for $6 dollars a month and it worked very well for me on live trading in the past. I just use it now for demo ac and BTs etc.
It has only gone down twice in the past 2 years since I got it.
Ed



Rick Drake

unread,
Oct 30, 2013, 2:53:17 PM10/30/13
to margrids-b...@googlegroups.com
No problem at all. $6 is pretty economical... and seems ideal to me for demo accounts.

- Rick

eogorfx

unread,
Nov 4, 2013, 2:39:48 PM11/4/13
to margrids-b...@googlegroups.com
Rick
Something very weird happened when I  loaded this version of Chameleon on the evening of 31 Nov.  on a new 25K GBP FXCM demo acc. It opened > 80   0.01 lot  buy trades trades all in a few seconds. the following morning it opened another buy for 4.5 lots.
I only noticed all this today when I logged in to my VPS.
I did not load a csv file to the experts directory but I changed the ep and tp and Balance  only - set file attached.
Ed
20131031.log
20131101.log
Chamelon multi open trades.JPG
chameeonep3.set

Rick Drake

unread,
Nov 4, 2013, 2:57:25 PM11/4/13
to margrids-b...@googlegroups.com
That is strange. I'll have to look into it.

- Rick


--

Maria M

unread,
Nov 8, 2013, 3:32:42 AM11/8/13
to margrids-b...@googlegroups.com
Hi

The case of the disappearing Chameleon.!! Just wandering if anyone else has had this very weird experience loading Chameleon?

Copyied into experts folder, deleted other eas, placed Dll in library folder and csv file accordingly. Open Mt4 platform and the  ea disappears. Opened program files to double check I copied the ea in the right Mt4 folder, No probs there. Have gone through this same thing at least three times now.

Never had this experience before, any ideas anyone how I can get this test going?

Thanks

Maria

 
It's not the strongest of species that survive, nor the most intelligent, but the ones who are the most responsive to change - Charles Darwin
 
As described by the Saints and Sages that came before, this is the time for Self Realisation. Your time is now! Go to http://www.sahajayoga.com.au/level_1/meditation.shtml click on experience it now.

Mark Suddens

unread,
Nov 8, 2013, 3:56:49 AM11/8/13
to margrids-b...@googlegroups.com
Hi Maria
I got the zipped file to automatically unzip and copy the files into the appropriate folders automatically and had no problems...
It should work for manually copying files across just the same..
That's strange? Will try the manual method on a clean MT4 instalation  and see what happens
 
Cheers Mark


From: Maria M <toma...@yahoo.com>
To: "margrids-b...@googlegroups.com" <margrids-b...@googlegroups.com>
Sent: Friday, 8 November 2013 9:32 PM
Subject: Re: [margrids-battle-chest] Re: Chameleon.zip (margrids-b...@googlegroups.com)

Rick Drake

unread,
Nov 8, 2013, 10:14:47 AM11/8/13
to margrids-b...@googlegroups.com
Hello Maria,

Yeah... I have had that happen before... it's an issue with Windows 2008 Server... what happens with me anyways is I copy the file on my computer using Ctrl+C. Then, I open up my VPS, navigate in Explorer to where I want the files, and the paste with Ctrl+V. Probably 50% of the time, once the file has finished copying... it just disappears. So I have to copy it again. On the second try, it works fine. Kind of frustrating. One thing I find helpful... is if I then select the file that I just copied into my VPS, and then press Ctrl+C on it, then Esc. Otherwise, I have had the file disapear on me when I open up Metatrader.

- Rick

stuart ogiliev

unread,
Nov 13, 2013, 2:52:36 AM11/13/13
to margrids-b...@googlegroups.com
can I just add my pennyworth ,don't no if it helps ,I had similar thing when I was back testing on MT4.
I was back testing the same time is was running the same EA  on a demo account(that was lucky), it took loads of trades at the same time, not sure if this helps

eogorfx

unread,
Nov 14, 2013, 8:04:30 AM11/14/13
to margrids-b...@googlegroups.com
Rick and all here.
I have attached a few ideas on how Chameleon might trade.
Ed
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-chest+unsub...@googlegroups.com.

To post to this group, send email to margrids-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/margrids-battle-chest.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-chest+unsub...@googlegroups.com.

To post to this group, send email to margrids-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/margrids-battle-chest.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-chest+unsub...@googlegroups.com.

To post to this group, send email to margrids-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/margrids-battle-chest.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-chest+unsub...@googlegroups.com.

To post to this group, send email to margrids-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/margrids-battle-chest.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-chest+unsub...@googlegroups.com.
ideas re Chameleon trading.docx

Rick Drake

unread,
Nov 14, 2013, 12:25:09 PM11/14/13
to margrids-b...@googlegroups.com
These are some good ideas. I kind of like the idea of a rate of change measurement... the only problem is that when the rate of change is slow and the EP has been reduced... a sudden spike will screw the system pretty good. 

- Rick


To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.

dan...@danielalexander.info

unread,
Nov 14, 2013, 3:04:05 PM11/14/13
to margrids-b...@googlegroups.com
We could define "spike" and program a safeguard....eg if 5 additional levels open anywhere between 0seconds and 300 seconds, subsequent EPs are automatically increased.

We could also have a parameter for minimum EP so that it never gets ridiculously small (which could otherwise develop overnight).

Also Rick, any chance you can convert these rigid and fixed limit orders into trailing stop orders? The combination of trailing stop orders and the change of rate measurement would create a more living basket breathing in sympathy with a fluctuating market.
>>>> *Cheers Mark*
>>>>
>>>> ------------------------------
>>>> *From:* Maria M <toma...@yahoo.com>
>>>> *To:* "margrids-b...@googlegroups.com" <margrids-b...@googlegroups.com>
>>>>
>>>> *Sent:* Friday, 8 November 2013 9:32 PM
>>>> *Subject:* Re: [margrids-battle-chest] Re: Chameleon.zip (
>>>> margrids-b...@googlegroups.com)
>>>>
>>>> Hi
>>>>
>>>> The case of the disappearing Chameleon.!! Just wandering if anyone else
>>>> has had this very weird experience loading Chameleon?
>>>>
>>>> Copyied into experts folder, deleted other eas, placed Dll in library
>>>> folder and csv file accordingly. Open Mt4 platform and the ea disappears.
>>>> Opened program files to double check I copied the ea in the right Mt4
>>>> folder, No probs there. Have gone through this same thing at least three
>>>> times now.
>>>>
>>>> Never had this experience before, any ideas anyone how I can get this
>>>> test going?
>>>>
>>>> Thanks
>>>>
>>>> Maria
>>>>
>>>>
>>>> It's not the strongest of species that survive, nor the most
>>>> intelligent, but the ones who are the most responsive to change -*
>>>> Charles Darwin*
>>>>
>>>> As described by the Saints and Sages that came before, this is the time
>>>> for Self Realisation. Your time is now! Go to
>>>> http://www.sahajayoga.com.au/level_1/meditation.shtml click on
>>>> experience it now.
>>>>
>>>>
>>>> On Tuesday, 5 November 2013 6:57 AM, Rick Drake <drak...@gmail.com>
>>>> wrote:
>>>> That is strange. I'll have to look into it.
>>>>
>>>> - Rick
>>>>
>>>>
>>>> On Mon, Nov 4, 2013 at 11:39 AM, eogorfx <eog...@gmail.com> wrote:
>>>>
>>>> Rick
>>>> Something very weird happened when I loaded this version of Chameleon
>>>> on the evening of 31 Nov. on a new 25K GBP FXCM demo acc. It opened > 80
>>>> 0.01 lot buy trades trades all in a few seconds. the following morning it
>>>> opened another buy for 4.5 lots.
>>>> I only noticed all this today when I logged in to my VPS.
>>>> I did not load a csv file to the experts directory but I changed the ep
>>>> and tp and Balance only - set file attached.
>>>> Ed
>>>>
>>>>
>>>> On Wednesday, October 30, 2013 2:04:25 AM UTC, Rick Drake wrote:
>>>>
>>>> I've shared an item with you.
>>>>
>>>> Added the functionality of custom settings for each level, which are loaded from a CSV file if present, Custom settings for the particular currency pair is set by creating a file "ChameleonSettingsCURRENCYPAIR.csv" such as "ChameleonSettingsEURUSD.csv" and placing it in the experts/files folder. The default settings file is "ChameleonSettings.csv". And of course, if there is no settings file at all, then the settings will be taken from the values calculated from the A and B. I'll share an example settings file. There is no practical limit as to the number of levels possible.
>>>>
>>>> - Rick
>>>>
>>>> [image: Item] Chameleon.zip<https://drive.google.com/file/d/0Bz3O5oSUj98oaS10YTVnT1BIYjg/edit?usp=sharing>
>>>> Google Drive: create, share, and keep all your stuff in one place. [image:
>>>> Logo for Google Drive] <https://drive.google.com/>

Rick Drake

unread,
Nov 14, 2013, 3:16:21 PM11/14/13
to margrids-b...@googlegroups.com
Yes,

I can see the value of having "virtual" trades that are activated when stopped out... and having a living, breathing basket if you will... Certainly it would be possible. Essentially you would be trading reversals, and the size of the trade would be dependent on how strong and far the movement went.

- Rick

dan...@danielalexander.info

unread,
Nov 14, 2013, 4:58:19 PM11/14/13
to margrids-b...@googlegroups.com
 
Right, this again is Ed's idea. It's saying that your DD won't go shooting up, just because you had a strong market move in one direction. No EA currently available can claim to achieve this.
 
The Chameleon is a nice addition, and can be useful. But all the AM ultimately does is switch the risk around, it doesn't reduce it. It simply transforms regular M risk into the risk of a false breakout - hard to say which is the lower risk; frankly they're probably both too high right now.
 
The only steps that will actually decrease the risk significantly enough (so that you can start putting real money down) are Ed's 2 ideas namely:
 
1) Stop orders instead of limit orders; and
2) Variable EPs dependant on market movements.
 
Let's even have an EA that only does 1) and 2), and we are already way ahead of everything.

Mark Suddens

unread,
Nov 14, 2013, 5:14:26 PM11/14/13
to margrids-b...@googlegroups.com
HI Rick
This is where  I was coming from with the concept of having a 'virtual' single internal array of parameters (trade size, EP,TP...TS etc) for each level, in each basket, that reads its initial conditions from the excell csv file but then the actual parameters of which can be modified by program logic, indicators etc as a basket evolves. It is then re-set from the csv file when a basket finally closes.
In this way it can switch from M to AM mode depending on market conditions and price, and incorporate individual trending and counter trending trades as required by price action and as various single trades within the basket are stopped out (generally at BE) etc

Hi Ed
I have wondered before about continuously monitoring the velocity of the market as you were considering the dp/dt  I guess it would have to be on a tick by tick basis as it would be TF dependent otherwise. Have such indicators been developed?
And then if you measured a=dp/(dt)2 would be a measure of the acceleration so a +ve a would mean the velocity was increasing and a -ve a would mean the velocity was decreasing.... Although I guess these would still be lagging .... like any other indicator.
I would think that work must have been done on this type of thing before ? Does anyone know?
Cheers Mark
 
Cheers Mark


From: Rick Drake <drakerick@gmail..com>
To: margrids-b...@googlegroups.com
Sent: Friday, 15 November 2013 9:16 AM
>>>> Visit this group at http://groups.google..com/
>>>> group/margrids-battle-chest.
>>>> For more options, visit https://groups.google..com/groups/opt_out.
>>>>
>>>

eogorfx

unread,
Nov 15, 2013, 5:21:28 AM11/15/13
to margrids-b...@googlegroups.com
The bottom line for me is to try to make the M and AM grid(s) dynamic based on current market conditions.
 This would then be different and safer than any G trader I have seen. At present the grid is fixed by set file but the market is forever changing. 
Let try to find a way to keep them in sync. 
BB proposed, on one of his forums, ghost but fixed 0.01 levels as markers until the price surge runs out of steam before the big lot order is placed for the retrace. 
Ed


dan...@danielalexander.info

unread,
Nov 15, 2013, 6:17:14 AM11/15/13
to margrids-b...@googlegroups.com
 
In light of the latest comments, does anyone else (BB perhaps?) have any thoughts as to how the M+AM system should work / be developed?
 
It would be a shame to stop now, just when we seem to be on the verge of breaking real ground with G trading. 

BearBull

unread,
Nov 15, 2013, 6:59:18 AM11/15/13
to margrids-b...@googlegroups.com
Hi Daniel,

Another way is to implement a 6 level Sliding Hedge.
Say you had a 16 level set file and the BaseBalance was set to take most of the Balance into Floating DD when the 16th level was opened.

In the past we waited and hoped a retrace would happen before the last level was hit.
However when it is hit, there is very little wiggle room left to try a release as if you get it wrong, then it is all over.

I see it as much better to do the first hedge at say 6 levels BELOW the max level.
For a 16 level set file that would be level 11.
Surly by that level it is obvious there is a strong trend against the basket and it is time to stop it growing larger and chewing up more and more DD.
Then when the trend moves in favour of the hedged basket, you have 6 fully funded chances to catch a retrace and exit. 

Also the Level 11 Hedge lot size is VERY small compared to the Level 16 and thus the DD will be quite small as will any associated swap charges while you PATIENTLY wait for the price to trend with the hedged basket.

Have discussed this with Rick, who thought it was a really good idea.

Mark Suddens

unread,
Nov 15, 2013, 7:49:16 AM11/15/13
to margrids-b...@googlegroups.com
HI BB
The Chameleon concept is that of switching to opening trades in the direction of the trend (at L11 say) rather than using a sliding (or other ) form of hedge

So we would set a say L1...L10 to be Counter trend or standard Martingale grid trading range (this could be a flexigrid, tied to an indicator if desired). Then if price hits L11 Chameleon would open L11 in the direction of the trend (and carry on opening trades in the trend direction (buys in an uptrend) if the market carries on in that direction) 

If the trend is strong, Trend trades would overwhelm Countertrend trades and the mixed basket would move into profit and a virtual TS applied to the whole basket

The advantage of this over a full hedge is that if after L11 and the switch to AM, the market now starts to retrace, then the trend trades can be individually unwound (mostly at BE) without having a relatively large hedge moving into loss to deal with.

This was seen as an evolution from the MBC version of hedging
Cheers Mark


Sent: Saturday, 16 November 2013 12:59 AM

Subject: Re: [margrids-battle-chest] Re: Chameleon.zip (margri...@googlegroups.com)
>>>> Added the functionality of custom settings for each level, which are loaded from a CSV file if present, Custom settings for the particular currency pair is set by creating a file "ChameleonSettingsCURRENCYPAIR.csv" such as "ChameleonSettingsEURUSD.csv" and placing it in the experts/files folder. The default settings file is "ChameleonSettings.csv". And of course, if there is no settings file at all, then the settings will be taken from the values calculated from the A and B. I'll share an example settings file.. There is no practical limit as to the number of levels possible.
>>>>
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com..

BearBull

unread,
Nov 15, 2013, 8:00:21 AM11/15/13
to margrids-b...@googlegroups.com

Hi Mark

I have not found it easy to detect a trend change, especially when writing code.

My suggestion to Rick was to monitor the growth of the size of the opposite basket and when that basket reached a level of say -2 of the hedged basket level, to release the hedged basket.

That way you let the basket levels determine the trend direction.

via Note 2
 

BearBull

unread,
Nov 15, 2013, 8:10:03 AM11/15/13
to margrids-b...@googlegroups.com
Additionally as you are doing this, to start, 6 levels below a fully maxed basket, you have 6 chances to close on a good profit or at BE if desired.

dan...@danielalexander.info

unread,
Nov 15, 2013, 9:06:20 AM11/15/13
to margrids-b...@googlegroups.com
 
The point about dynamic EPs and stop orders is that they reduce the necessity for even having a level 11 hedge, let alone a level 16 hedge.
 
Every time hedges get into the picture, people invariably find them difficult to exit, and let's face it they are at best a semi-admission of failure. Also with a level 11 hedge, you will eventually find through continued trading that half your pairs or more end up getting hedged at any one time. Level 11s at the DD suggested are common enough that too much of the account will end up being hedged. At that point your ROI is impaired, and you end up being a weird form of hedge exit trader and nobody wants that.
 
Can we move forward with Ed's ideas?
 
They sound so much more promising than littering the accounts with hedges.

Ed Gor

unread,
Nov 15, 2013, 11:52:41 AM11/15/13
to margrids-b...@googlegroups.com
Hi Mark
I have seen an acceleration tool in FX Quant graphical EA builder which is available on the fxpro.co.uk site. .
You can try it by signing up without opening an account. Lots of strategy building tool there.
Interesting!
Ed

Mark Suddens

unread,
Nov 15, 2013, 8:23:12 PM11/15/13
to margrids-b...@googlegroups.com
HI Daniel / Ed
 There are grid EAs out there which use a flexi grid approach. For example I believe Crescendo and ForteFX from http://pimpmyea.com/fortefx use trend detection algorithms to extend or stretch out grid spacing's on counter trend trades. I was wondering if you guys have any thoughts on the best way / methodology to approach trend detection/confirmation in terms of an indicator that could be included in an EA.? (thanks for the link to FX Pro UK, ED I will have a look at it)

Ive also thought about Ed's Stop order vs Limit order approach - It seems intuitively to have merit. 
The approach of Chameleon  so far is of establishing a zone for M trading (either by setting a max level) or by  breakout from a D channel after which trades are switched from Counter trend (limit) orders to Trend (Stop) orders. 
It would be interesting to see how it would work if stop orders were also be placed in the direction of a retrace, so if the trend does not continue, but fades out and a significant retrace gets underway, the stop orders are helping to close the basket earlier than otherwise. This would fit with the idea that the AM or Trend orders have individual stops that are brought to BE as soon as possible, so a retrace would unwind most of these trades at BE.... It gets pretty complicated though for poor old rick to have to code.
 Interested in thinking this through further - I remember Ed was suggesting ideas along these lines a few months back.

Of course the other basic approach (AM mode in MBC) is to enter with Stop orders from L1, so we are not looking for re-traces. I think once Rick gets an overall basket TS into chameleon, this mode of trading could be the safest of all
Cheers Mark


From: "dan...@danielalexander.info" <dan...@danielalexander.info>
To: margrids-b...@googlegroups.com
Sent: Saturday, 16 November 2013 3:06 AM
Subject: RE: [margrids-battle-chest] Re: Chameleon.zip (margri...@googlegroups.com)

>>>>
>>>>
>>>>   On Tuesday, 5 November 2013 6:57 AM, Rick Drake <drak....@gmail.com>
>>>> To post to this group, send email to margrids-b....@googlegroups.com.

dan...@danielalexander.info

unread,
Nov 16, 2013, 5:11:56 PM11/16/13
to margrids-b...@googlegroups.com

Thanks Mark.
The crescendo EA looks interesting, but using other people's software can be tricky. The only G trades I want to enter are MBC trades with Ed's ideas incorporated, or an EA I get programmed myself that does the job (in which case I'll forego the AM mode).
I know that Ed was looking for entries at RSI extremes, but compared to dynamic EP/stop orders, entry indicators now seem less vital. For
the most part all the indicator does is reduce the quantity of trading, which can just as easily be achieved by switching on/off.
Daniel
-------- Original Message--------
Subject:: Re: [margrids-battle-chest] Re: Chameleon.zip (margri...@googlegroups.com)
From: Mark Suddens <cab...@xtra.co.nz>
Date: 16 Nov 2013 02:23
To:: "margrids-b...@googlegroups.com" <margrids-b...@googlegroups.com>
CC:

HI Daniel / Ed<br/> There are grid EAs out there which use a flexi grid approach. For example I believe Crescendo and ForteFX from http://pimpmyea.com/fortefx use trend detection algorithms to extend or stretch out grid spacing's on counter trend trades. I was wondering if you guys have any thoughts on the best way / methodology to approach trend detection/confirmation in terms of an indicator that could be included in an EA.? (thanks for the link to FX Pro UK, ED I will have a look at it)<br/><br/>Ive also thought about Ed's Stop order vs Limit order approach - It seems intuitively to have merit. <br/>The approach of Chameleon so far is of establishing a zone for M trading (either by setting a max level) or by breakout from a D channel after which trades are switched from Counter trend (limit) orders to Trend (Stop) orders. <br/>It would be interesting to see how it would work if stop orders were also be placed in the direction of a retrace, so if the trend does not continue, but fades out and a significant retrace gets underway, the stop orders are helping to close the basket earlier than otherwise.. This would fit with the idea that the AM or Trend orders have individual stops that are brought to BE as soon as possible, so a retrace would unwind most of these trades at BE.... It gets pretty complicated though for poor old rick to have to code.<br/> Interested in thinking this through further - I remember Ed was suggesting ideas along these lines a few months back.<br/><br/>Of course the other basic approach (AM mode in MBC) is to enter with Stop orders from L1, so we are not looking for re-traces. I think once Rick gets an overall basket TS into chameleon, this mode of trading could be the safest of all<br/>Cheers Mark<br/><br/><br/>________________________________<br/> From: "dan...@danielalexander.info" <dan...@danielalexander.info><br/>To: margrids-b...@googlegroups.com <br/>Sent: Saturday, 16 November 2013 3:06 AM<br/>Subject: RE: [margrids-battle-chest] Re: Chameleon.zip (margri...@googlegroups.com)<br/> <br/><br/><br/> <br/>The point about dynamic EPs and stop orders is that they reduce the necessity for even having a level 11 hedge, let alone a level 16 hedge.<br/> <br/>Every time hedges get into the picture, people invariably find them difficult to exit, and let's face it they are at best a semi-admission of failure. Also with a level 11 hedge, you will eventually find through continued trading that half your pairs or more end up getting hedged at any one time. Level 11s at the DD suggested are common enough that too much of the account will end up being hedged. At that point your ROI is impaired, and you end up being a weird form of hedge exit trader and nobody wants that.<br/> <br/>Can we move forward with Ed's ideas?<br/> <br/>They sound so much more promising than littering the accounts with hedges.<br/> <br/>-------- Original Message --------<br/>>Subject: Re: [margrids-battle-chest] Re: Chameleon.zip<br/>>(margri...@googlegroups.com)<br/>>From: BearBull <bearb...@gmail.com><br/>>Date: Fri, November 15, 2013 1:10 pm<br/>>To: margrids-b...@googlegroups.com<br/>><br/>><br/>>Additionally as you are doing this, to start, 6 levels below a fully maxed basket, you have 6 chances to close on a good profit or at BE if desired.<br/>><br/>><br/>><br/>>On Sat, Nov 16, 2013 at 12:00 AM, BearBull <bearb...@gmail.com> wrote:<br/>><br/>>Hi Mark<br/>>>I have not found it easy to detect a trend change, especially when writing code.<br/>>>My suggestion to Rick was to monitor the growth of the size of the opposite basket and when that basket reached a level of say -2 of the hedged basket level, to release the hedged basket.<br/>>>That way you let the basket levels determine the trend direction.<br/>>>via Note 2<br/>>> <br/>>>On 15/11/2013 11:19 PM, "Mark Suddens" <cab...@xtra.co.nz> wrote:<br/>>><br/>>>HI BB<br/>>>>The Chameleon concept is that of switching to opening trades in the direction of the trend (at L11 say) rather than using a sliding (or other ) form of hedge<br/>>>><br/>>>><br/>>>>So we would set a say L1...L10 to be Counter trend or standard Martingale grid trading range (this could be a flexigrid, tied to an indicator if desired). Then if price hits L11 Chameleon would open L11 in the direction of the trend (and carry on opening trades in the trend direction (buys in an uptrend) if the market carries on in that direction) <br/>>>><br/>>>><br/>>>>If the trend is strong, Trend trades would overwhelm Countertrend trades and the mixed basket would move into profit and a virtual TS applied to the whole basket<br/>>>><br/>>>><br/>>>>The advantage of this over a full hedge is that if after L11 and the switch to AM, the market now starts to retrace, then the trend trades can be individually unwound (mostly at BE) without having a relatively large hedge moving into loss to deal with.<br/>>>><br/>>>><br/>>>>This was seen as an evolution from the MBC version of hedging<br/>>>>Cheers Mark<br/>>>><br/>>>><br/>>>><br/>>>>________________________________<br/>>>> From: BearBull <bearb...@gmail.com><br/>>>>To: margrids-b...@googlegroups.com <br/>>>>Sent: Saturday, 16 November 2013 12:59 AM<br/>>>>Subject: Re: [margrids-battle-chest] Re: Chameleon.zip (margri...@googlegroups.com)<br/>>>><br/>>>><br/>>>><br/>>>>Hi Daniel, <br/>>>><br/>>>><br/>>>>Another way is to implement a 6 level Sliding Hedge.<br/>>>>Say you had a 16 level set file and the BaseBalance was set to take most of the Balance into Floating DD when the 16th level was opened.<br/>>>><br/>>>><br/>>>>In the past we waited and hoped a retrace would happen before the last level was hit.<br/>>>>However when it is hit, there is very little wiggle room left to try a release as if you get it wrong, then it is all over.<br/>>>><br/>>>><br/>>>>I see it as much better to do the first hedge at say 6 levels BELOW the max level.<br/>>>>For a 16 level set file that would be level 11.<br/>>>>Surly by that level it is obvious there is a strong trend against the basket and it is time to stop it growing larger and chewing up more and more DD.<br/>>>>Then when the trend moves in favour of the hedged basket, you have 6 fully funded chances to catch a retrace and exit. <br/>>>><br/>>>><br/>>>>Also the Level 11 Hedge lot size is VERY small compared to the Level 16 and thus the DD will be quite small as will any associated swap charges while you PATIENTLY wait for the price to trend with the hedged basket.<br/>>>><br/>>>><br/>>>>Have discussed this with Rick, who thought it was a really good idea.<br/>>>><br/>>>><br/>>>><br/>>>>On Fri, Nov 15, 2013 at 10:17 PM, <dan...@danielalexander.info> wrote:<br/>>>><br/>>>> <br/>>>>> <br/>>>>>In light of the latest comments, does anyone else (BB perhaps?) have any thoughts as to how the M+AM system should work / be developed?<br/>>>>> <br/>>>>>It would be a shame to stop now, just when we seem to be on the verge of breaking real ground with G trading. <br/>>>>>-------- Original Message --------<br/>>>>>>Subject: Re: [margrids-battle-chest] Re: Chameleon..zip<br/>>>>>>(margri....@googlegroups.com)<br/>>>>>><br/>>>>>>From: eogorfx <eog...@gmail.com><br/>>>>>>Date: Fri, November 15, 2013 10:21 am<br/>>>>>>To: "margrids-b...@googlegroups.com"<br/>>>>>><margrids-b...@googlegroups.com><br/>>>>>><br/>>>>>><br/>>>>>>The bottom line for me is to try to make the M and AM grid(s) dynamic based on current market conditions.<br/>>>>>> This would then be different and safer than any G trader I have seen. At present the grid is fixed by set file but the market is forever changing. <br/>>>>>>Let try to find a way to keep them in sync. <br/>>>>>>BB proposed, on one of his forums, ghost but fixed 0.01 levels as markers until the price surge runs out of steam before the big lot order is placed for the retrace. <br/>>>>>>Ed <br/>>>>>><br/>>>>>><br/>>>>>><br/>>>>>><br/>>>>>><br/>>>>>>On 14 Nov 2013, at 22:14, Mark Suddens <cab...@xtra.co.nz> wrote:<br/>>>>>><br/>>>>>><br/>>>>>>HI Rick<br/>>>>>>>This is where I was coming from with the concept of having a 'virtual' single internal array of parameters (trade size, EP,TP...TS etc) for each level, in each basket, that reads its initial conditions from the excell csv file but then the actual parameters of which can be modified by program logic, indicators etc as a basket evolves. It is then re-set from the csv file when a basket finally closes.<br/>>>>>>>In this way it can switch from M to AM mode depending on market conditions and price, and incorporate individual trending and counter trending trades as required by price action and as various single trades within the basket are stopped out (generally at BE) etc<br/>>>>>>><br/>>>>>>><br/>>>>>>>Hi Ed<br/>>>>>>>I have wondered before about continuously monitoring the velocity of the market as you were considering the dp/dt I guess it would have to be on a tick by tick basis as it would be TF dependent otherwise. Have such indicators been developed?<br/>>>>>>>And then if you measured a=dp/(dt)2 would be a measure of the acceleration so a +ve a would mean the velocity was increasing and a -ve a would mean the velocity was decreasing.... Although I guess these would still be lagging .... like any other indicator.<br/>>>>>>>I would think that work must have been done on this type of thing before ? Does anyone know?<br/>>>>>>><br/>>>>>>>Cheers Mark<br/>>>>>>> <br/>>>>>>>Cheers Mark<br/>>>>>>><br/>>>>>>><br/>>>>>>><br/>>>>>>>________________________________<br/>>>>>>> From: Rick Drake <drakerick@gmail..com><br/>>>>>>>To: margrids-b...@googlegroups.com <br/>>>>>>>Sent: Friday, 15 November 2013 9:16 AM<br/>>>>>>>Subject: Re: [margrids-battle-chest] Re: Chameleon.zip (margri...@googlegroups.com)<br/>>>>>>><br/>>>>>>><br/>>>>>>><br/>>>>>>>Yes, <br/>>>>>>><br/>>>>>>><br/>>>>>>>I can see the value of having "virtual" trades that are activated when stopped out... and having a living, breathing basket if you will... Certainly it would be possible. Essentially you would be trading reversals, and the size of the trade would be dependent on how strong and far the movement went.<br/>>>>>>><br/>>>>>>><br/>>>>>>>- Rick<br/>>>>>>><br/>>>>>>><br/>>>>>>><br/>>>>>>>On Thu, Nov 14, 2013 at 12:04 PM, <dan...@danielalexander.info> wrote:<br/>>>>>>><br/>>>>>>>We could define "spike" and program a safeguard....eg if 5 additional levels open anywhere between 0seconds and 300 seconds, subsequent EPs are automatically increased.<br/>>>>>>>><br/>>>>>>>>We could also have a parameter for minimum EP so that it never gets ridiculously small (which could otherwise develop overnight).<br/>>>>>>>><br/>>>>>>>>Also Rick, any chance you can convert these rigid and fixed limit orders into trailing stop orders? The combination of trailing stop orders and the change of rate measurement would create a more living basket breathing in sympathy with a fluctuating market.<br/>>>>>>>><br/>>>>>>>><br/>>>>>>>>-------- Original Message--------<br/>>>>>>>>Subject:: Re: [margrids-battle-chest] Re: Chameleon.zip (margri...@googlegroups.com)<br/>>>>>>>>From: Rick Drake <drak...@gmail.com><br/>>>>>>>>Date: 14 Nov 2013 18:25<br/>>>>>>>>To:: margrids-b...@googlegroups.com<br/>>>>>>>>CC:<br/>>>>>>>><br/>>>>>>>>These are some good ideas. I kind of like the idea of a rate of change<br/>>>>>>>><br/>>>>>>>>measurement... the only problem is that when the rate of change is slow and<br/>>>>>>>><br/>>>>>>>>the EP has been reduced... a sudden spike will screw the system pretty<br/>>>>>>>>good.<br/>>>>>>>><br/>>>>>>>>- Rick<br/>>>>>>>><br/>>>>>>>><br/>>>>>>>><br/>>>>>>>>On Thu, Nov 14, 2013 at 5:04 AM, eogorfx <eog...@gmail.com> wrote:<br/>>>>>>>><br/>>>>>>>>> Rick and all here.<br/>>>>>>>><br/>>>>>>>>> I have attached a few ideas on how Chameleon might trade.<br/>>>>>>>>> Ed<br/>>>>>>>><br/>>>>>>>>><br/>>>>>>>>> On Wednesday, November 13, 2013 7:52:36 AM UTC, stuart o wrote:<br/>>>>>>>>>><br/>>>>>>>><br/>>>>>>>>>> can I just add my pennyworth ,don't no if it helps ,I had similar thing<br/>>>>>>>><br/>>>>>>>>>> when I was back testing on MT4.<br/>>>>>>>><br/>>>>>>>>>> I was back testing the same time is was running the same EA on a demo<br/>>>>>>>><br/>>>>>>>>>> account(that was lucky), it took loads of trades at the same time, not sure<br/>>>>>>>>>> if this helps<br/>>>>>>>><br/>>>>>>>>>><br/>>>>>>>>>><br/>>>>>>>>>> On Fri, Nov 8, 2013 at 3:14 PM, Rick Drake <drak...@gmail.com> wrote:<br/>>>>>>>>>><br/>>>>>>>>>>> Hello Maria,<br/>>>>>>>><br/>>>>>>>>>>><br/>>>>>>>>>>> Yeah... I have had that happen before... it's an issue with Windows 2008<br/>>>>>>>><br/>>>>>>>>>>> Server... what happens with me anyways is I copy the file on my computer<br/>>>>>>>><br/>>>>>>>>>>> using Ctrl+C. Then, I open up my VPS, navigate in Explorer to where I want<br/>>>>>>>><br/>>>>>>>>>>> the files, and the paste with Ctrl+V. Probably 50% of the time, once the<br/>>>>>>>><br/>>>>>>>>>>> file has finished copying... it just disappears. So I have to copy it<br/>>>>>>>><br/>>>>>>>>>>> again. On the second try, it works fine. Kind of frustrating. One thing I<br/>>>>>>>><br/>>>>>>>>>>> find helpful... is if I then select the file that I just copied into my<br/>>>>>>>><br/>>>>>>>>>>> VPS, and then press Ctrl+C on it, then Esc. Otherwise, I have had the file<br/>>>>>>>><br/>>>>>>>>>>> disapear on me when I open up Metatrader.<br/>>>>>>>>>>><br/>>>>>>>>>>> - Rick<br/>>>>>>>><br/>>>>>>>>>>><br/>>>>>>>>>>><br/>>>>>>>>>>> On Fri, Nov 8, 2013 at 12:56 AM, Mark Suddens <cab...@xtra.co.nz> wrote:<br/>>>>>>>>>>><br/>>>>>>>>>>>> Hi Maria<br/>>>>>>>><br/>>>>>>>>>>>> I got the zipped file to automatically unzip and copy the files into<br/>>>>>>>><br/>>>>>>>>>>>> the appropriate folders automatically and had no problems...<br/>>>>>>>><br/>>>>>>>>>>>> It should work for manually copying files across just the same..<br/>>>>>>>><br/>>>>>>>>>>>> That's strange? Will try the manual method on a clean MT4 instalation<br/>>>>>>>>>>>> and see what happens<br/>>>>>>>>>>>><br/>>>>>>>>>>>> *Cheers Mark*<br/>>>>>>>>>>>><br/>>>>>>>>>>>> ------------------------------<br/>>>>>>>><br/>>>>>>>>>>>> *From:* Maria M <toma...@yahoo.com><br/>>>>>>>>>>>> *To:* "margrids-b...@googlegroups.com" <margrids-b...@googlegroups.com><br/>>>>>>>><br/>>>>>>>>>>>><br/>>>>>>>>>>>> *Sent:* Friday, 8 November 2013 9:32 PM<br/>>>>>>>><br/>>>>>>>>>>>> *Subject:* Re: [margrids-battle-chest] Re: Chameleon.zip (<br/>>>>>>>>>>>> margrids-b...@googlegroups.com)<br/>>>>>>>>>>>><br/>>>>>>>>>>>> Hi<br/>>>>>>>><br/>>>>>>>>>>>><br/>>>>>>>>>>>> The case of the disappearing Chameleon.!! Just wandering if anyone else<br/>>>>>>>><br/>>>>>>>>>>>> has had this very weird experience loading Chameleon?<br/>>>>>>>>>>>><br/>>>>>>>><br/>>>>>>>>>>>> Copyied into experts folder, deleted other eas, placed Dll in library<br/>>>>>>>><br/>>>>>>>>>>>> folder and csv file accordingly. Open Mt4 platform and the ea disappears.<br/>>>>>>>><br/>>>>>>>>>>>> Opened program files to double check I copied the ea in the right Mt4<br/>>>>>>>><br/>>>>>>>>>>>> folder, No probs there. Have gone through this same thing at least three<br/>>>>>>>>>>>> times now.<br/>>>>>>>><br/>>>>>>>>>>>><br/>>>>>>>>>>>> Never had this experience before, any ideas anyone how I can get this<br/>>>>>>>>>>>> test going?<br/>>>>>>>>>>>><br/>>>>>>>>>>>> Thanks<br/>>>>>>>>>>>><br/>>>>>>>>>>>> Maria<br/>>>>>>>><br/>>>>>>>>>>>><br/>>>>>>>>>>>><br/>>>>>>>>>>>> It's not the strongest of species that survive, nor the most<br/>>>>>>>><br/>>>>>>>>>>>> intelligent, but the ones who are the most responsive to change -*<br/>>>>>>>>>>>> Charles Darwin*<br/>>>>>>>><br/>>>>>>>>>>>><br/>>>>>>>>>>>> As described by the Saints and Sages that came before, this is the time<br/>>>>>>>><br/>>>>>>>>>>>> for Self Realisation. Your time is now! Go to<br/>>>>>>>>>>>> http://www.sahajayoga.com.au/level_1/meditation.shtml click on<br/>>>>>>>>>>>> experience it now.<br/>>>>>>>><br/>>>>>>>>>>>><br/>>>>>>>>>>>><br/>>>>>>>>>>>> On Tuesday, 5 November 2013 6:57 AM, Rick Drake <drak...@gmail.com><br/>>>>>>>><br/>>>>>>>>>>>> wrote:<br/>>>>>>>>>>>> That is strange. I'll have to look into it..<br/>>>>>>>>>>>><br/>>>>>>>>>>>> - Rick<br/>>>>>>>><br/>>>>>>>>>>>><br/>>>>>>>>>>>><br/>>>>>>>>>>>> On Mon, Nov 4, 2013 at 11:39 AM, eogorfx <eog...@gmail.com> wrote:<br/>>>>>>>>>>>><br/>>>>>>>>>>>> Rick<br/>>>>>>>><br/>>>>>>>>>>>> Something very weird happened when I loaded this version of Chameleon<br/>>>>>>>><br/>>>>>>>>>>>> on the evening of 31 Nov. on a new 25K GBP FXCM demo acc. It opened > 80<br/>>>>>>>><br/>>>>>>>>>>>> 0.01 lot buy trades trades all in a few seconds. the following morning it<br/>>>>>>>><br/>>>>>>>>>>>> opened another buy for 4.5 lots.<br/>>>>>>>><br/>>>>>>>>>>>> I only noticed all this today when I logged in to my VPS.<br/>>>>>>>><br/>>>>>>>>>>>> I did not load a csv file to the experts directory but I changed the ep<br/>>>>>>>><br/>>>>>>>>>>>> and tp and Balance only - set file attached.<br/>>>>>>>>>>>> Ed<br/>>>>>>>><br/>>>>>>>>>>>><br/>>>>>>>>>>>><br/>>>>>>>>>>>> On Wednesday, October 30, 2013 2:04:25 AM UTC, Rick Drake wrote:<br/>>>>>>>>>>>><br/>>>>>>>><br/>>>>>>>>>>>> I've shared an item with you.<br/>>>>>>>>>>>><br/>>>>>>>><br/>>>>>>>>>>>> Added the functionality of custom settings for each level, which are loaded from a CSV file if present, Custom settings for the particular currency pair is set by creating a file "ChameleonSettingsCURRENCYPAIR.csv" such as "ChameleonSettingsEURUSD.csv" and placing it in the experts/files folder. The default settings file is "ChameleonSettings.csv". And of course, if there is no settings file at all, then the settings will be taken from the values calculated from the A and B. I'll share an example settings file.. There is no practical limit as to the number of levels possible.<br/>>>>>>>>>>>><br/>>>>>>>>>>>> - Rick<br/>>>>>>>><br/>>>>>>>>>>>><br/>>>>>>>>>>>> [image: Item] Chameleon.zip<https://drive.google.com/file/d/0Bz3O5oSUj98oaS10YTVnT1BIYjg/edit?usp=sharing><br/>>>>>>>><br/>>>>>>>>>>>> Google Drive: create, share, and keep all your stuff in one place. [image:<br/>>>>>>>><br/>>>>>>>>>>>> Logo for Google Drive] <https://drive.google.com/><br/>>>>>>>>>>>><br/>>>>>>>>>>>> --<br/>>>>>>>><br/>>>>>>>>>>>> You received this message because you are subscribed to the Google<br/>>>>>>>>>>>> Groups "Margrids Battle Chest" group.<br/>>>>>>>><br/>>>>>>>>>>>> To unsubscribe from this group and stop receiving emails from it, send<br/>>>>>>>>>>>> an email to margrids-battle-...@googlegroups.com.<br/>>>>>>>><br/>>>>>>>>>>>> To post to this group, send email to margrids-b....@googlegroups.com.<br/>>>>>>>><br/>>>>>>>>>>>> Visit this group at http://groups.google.com/<br/>>>>>>>>>>>> group/margrids-battle-chest.<br/>>>>>>>><br/>>>>>>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.<br/>>>>>>>>>>>><br/>>>>>>>>>>>><br/>>>>>>>>>>>> --<br/>>>>>>>><br/>>>>>>>>>>>> You received this message because you are subscribed to the Google<br/>>>>>>>>>>>> Groups "Margrids Battle Chest" group.<br/>>>>>>>><br/>>>>>>>>>>>> To unsubscribe from this group and stop receiving emails from it, send<br/>>>>>>>>>>>> an email to margrids-battle-...@googlegroups.com.<br/>>>>>>>><br/>>>>>>>>>>>> To post to this group, send email to margrids-b...@googlegroups.com.<br/>>>>>>>><br/>>>>>>>>>>>> Visit this group at http://groups.google.com/<br/>>>>>>>>>>>> group/margrids-battle-chest.<br/>>>>>>>><br/>>>>>>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.<br/>>>>>>>>>>>><br/>>>>>>>>>>>><br/>>>>>>>>>>>> --<br/>>>>>>>><br/>>>>>>>>>>>> You received this message because you are subscribed to the Google<br/>>>>>>>>>>>> Groups "Margrids Battle Chest" group.<br/>>>>>>>><br/>>>>>>>>>>>> To unsubscribe from this group and stop receiving emails from it, send<br/>>>>>>>>>>>> an email to margrids-battle-...@googlegroups.com.<br/>>>>>>>><br/>>>>>>>>>>>> To post to this group, send email to margrids-b...@googlegroups.com.<br/>>>>>>>><br/>>>>>>>>>>>> Visit this group at http://groups.google.com/<br/>>>>>>>>>>>> group/margrids-battle-chest.<br/>>>>>>>><br/>>>>>>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.<br/>>>>>>>>>>>><br/>>>>>>>>>>>><br/>>>>>>>>>>>> --<br/>>>>>>>><br/>>>>>>>>>>>> You received this message because you are subscribed to the Google<br/>>>>>>>>>>>> Groups "Margrids Battle Chest" group.<br/>>>>>>>><br/>>>>>>>>>>>> To unsubscribe from this group and stop receiving emails from it, send<br/>>>>>>>>>>>> an email to margrids-battle-...@googlegroups.com.<br/>>>>>>>><br/>>>>>>>>>>>> To post to this group, send email to margrids-b...@googlegroups.com.<br/>>>>>>>><br/>>>>>>>>>>>> Visit this group at http://groups.google..com/<br/>>>>>>>>>>>> group/margrids-battle-chest.<br/>>>>>>>><br/>>>>>>>>>>>> For more options, visit https://groups.google..com/groups/opt_out.<br/>>>>>>>>>>>><br/>>>>>>>>>>><br/>>>>>>>>>>> --<br/>>>>>>>><br/>>>>>>>>>>> You received this message because you are subscribed to the Google<br/>>>>>>>>>>> Groups "Margrids Battle Chest" group.<br/>>>>>>>><br/>>>>>>>>>>> To unsubscribe from this group and stop receiving emails from it, send<br/>>>>>>>>>>> an email to margrids-battle-...@googlegroups.com.<br/>>>>>>>><br/>>>>>>>>>>> To post to this group, send email to margrids-b...@googlegroups.com.<br/>>>>>>>><br/>>>>>>>>>>> Visit this group at http://groups.google.com/group/margrids-battle-chest<br/>>>>>>>>>>> .<br/>>>>>>>><br/>>>>>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.<br/>>>>>>>>>>><br/>>>>>>>>>><br/>>>>>>>>>> --<br/>>>>>>>><br/>>>>>>>>> You received this message because you are subscribed to the Google Groups<br/>>>>>>>>> "Margrids Battle Chest" group.<br/>>>>>>>><br/>>>>>>>>> To unsubscribe from this group and stop receiving emails from it, send an<br/>>>>>>>>> email to margrids-battle-...@googlegroups.com.<br/>>>>>>>><br/>>>>>>>>> To post to this group, send email to<br/>>>>>>>>> margrids-b...@googlegroups.com.<br/>>>>>>>><br/>>>>>>>>> Visit this group at http://groups.google.com/group/margrids-battle-chest.<br/>>>>>>>><br/>>>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.<br/>>>>>>>>><br/>>>>>>>><br/>>>>>>>>--<br/>>>>>>>><br/>>>>>>>>You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.<br/>>>>>>>><br/>>>>>>>>To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.<br/>>>>>>>><br/>>>>>>>>To post to this group, send email to margrids-b...@googlegroups.com.<br/>>>>>>>><br/>>>>>>>>Visit this group at http://groups.google.com/group/margrids-battle-chest.<br/>>>>>>>><br/>>>>>>>>For more options, visit https://groups.google.com/groups/opt_out.<br/>>>>>>>><br/>>>>>>>>--<br/>>>>>>>><br/>>>>>>>>You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.<br/>>>>>>>><br/>>>>>>>>To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.<br/>>>>>>>><br/>>>>>>>>To post to this group, send email to margrids-b...@googlegroups.com.<br/>>>>>>>><br/>>>>>>>>Visit this group at http://groups.google.com/group/margrids-battle-chest.<br/>>>>>>>><br/>>>>>>>>For more options, visit https://groups.google.com/groups/opt_out.<br/>>>>>>>><br/>>>>>>>-- <br/>>>>>>>You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.<br/>>>>>>>To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.<br/>>>>>>>To post to this group, send email to margrids-b...@googlegroups.com.<br/>>>>>>>Visit this group at http://groups.google.com/group/margrids-battle-chest..<br/>>>>>>>For more options, visit https://groups.google.com/groups/opt_out.<br/>>>>>>><br/>>>>>>><br/>>>>>>>-- <br/>>>>>>>You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.<br/>>>>>>>To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.<br/>>>>>>>To post to this group, send email to margrids-b...@googlegroups.com.<br/>>>>>>>Visit this group at http://groups.google.com/group/margrids-battle-chest.<br/>>>>>>>For more options, visit https://groups.google.com/groups/opt_out.<br/>>>>>>>-- <br/>>>>>>You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.<br/>>>>>>To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.<br/>>>>>>To post to this group, send email to margrids-b...@googlegroups.com.<br/>>>>>>Visit this group at http://groups.google.com/group/margrids-battle-chest.<br/>>>>>>For more options, visit https://groups.google.com/groups/opt_out.<br/>>>>>><br/>>>>>-- <br/>>>>>You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.<br/>>>>>To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.<br/>>>>>To post to this group, send email to margrids-b...@googlegroups.com.<br/>>>>>Visit this group at http://groups..google.com/group/margrids-battle-chest.<br/>>>>>For more options, visit https://groups.google.com/groups/opt_out.<br/>>>>><br/>>>>-- <br/>>>>You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.<br/>>>>To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com..<br/>>>>To post to this group, send email to margrids-b...@googlegroups.com.<br/>>>>Visit this group at http://groups.google.com/group/margrids-battle-chest.<br/>>>>For more options, visit https://groups.google.com/groups/opt_out.<br/>>>><br/>>>><br/>>>>-- <br/>>>>You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.<br/>>>>To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.<br/>>>>To post to this group, send email to margrids-b...@googlegroups.com.<br/>>>>Visit this group at http://groups.google.com/group/margrids-battle-chest.<br/>>>>For more options, visit https://groups.google.com/groups/opt_out.<br/>>>><br/>>-- <br/>>You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.<br/>>To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.<br/>>To post to this group, send email to margrids-b...@googlegroups.com.<br/>>Visit this group at http://groups.google.com/group/margrids-battle-chest.<br/>>For more options, visit https://groups.google.com/groups/opt_out.<br/>><br/>-- <br/>You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.<br/>To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.<br/>To post to this group, send email to margrids-b...@googlegroups.com.<br/>Visit this group at http://groups.google.com/group/margrids-battle-chest.<br/>For more options, visit https://groups.google.com/groups/opt_out.<br/><br/>-- <br/>You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.<br/>To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.<br/>To post to this group, send email to margrids-b...@googlegroups.com.<br/>Visit this group at http://groups.google.com/group/margrids-battle-chest.<br/>For more options, visit https://groups.google.com/groups/opt_out.<br/>

EOGORFX

unread,
Nov 18, 2013, 4:56:50 AM11/18/13
to margrids-b...@googlegroups.com

At start up the system could place pending buy and  sell stop orders on either side of the current price, with a user set pip gap, instead of just opening market orders.

A trailing stop at a few pips less than the gap distance with an entry point target could also be used for the filled trade. If the trade is closed then go back to start.

Maybe sometimes a big price run will capture some decent profit before the retrace starts. This can be the AM part!

 

When one of the pending orders is filled the other one is modified to maintain the original gap.  Even if the baskets continue to be formed using a conventional grid from then on this entry method should help to reduce DD  but my contention is to use stop orders all the way which are continuously modified to trail the price action in the basket formation ?

 

I only use pending orders for the small amount of manual trades that I take.

Ed

Syed Aoun Abbas

unread,
Nov 18, 2013, 9:23:48 PM11/18/13
to margrids-b...@googlegroups.com
Hi guys,

Some really nice brainstorming going on here .... :)

I have not been active lately (mainly due to a baby on the way) and therefore haven't had a chance to download and fire up chameleon and give any feedback ....

It may turn out to include a number of different strategy combinations put into one product with user-set triggers causing strategies to kick in (to make everyone happy) ... don't know if Rick would approve of this :p

But as it is, there are always many ways to make money (and even more ways to lose it) ....

For me, while it can be risky to run with MBC at times (and difficult to get good sleep on certain nights) due to the lack of automated control .... it still is a very very good EA with some desirable features missing ....

Taking Chameleon to new levels will be tricky as the more automated it gets, the more market pattern changes could screw it over (unless we make it to learn from the market and be flexible) ....

Keeping an eye on market's momentum and trend can very well be the basic start required ....

Btw, my MBC forward test on a cent account is at 320% equity today (3 months trading) ..... and I got more than I put in it out already .... so it is running without any major risk ..... Tells you that MBC can still work as a money maker ....

Thank you Rick!

Regards,

Syed

Mark Suddens

unread,
Nov 19, 2013, 12:02:54 AM11/19/13
to margrids-b...@googlegroups.com
HI Ed
I was wondering if you had tried to run this type of idea on MBC  in AM mode.
For example if you ran on the 1min chart and had trade breakouts set to true. and had BasketOuterChannelPeriod =2, and set the TS system running, then as price went in one direction and opened the first stop order trade (you could set as many basket levels as you wanted to open as stop orders) then MBC would trail price by only one/1min candle behind in terms of a reversal and opening baskets in the other direction.
Hopefully most baskets would close on the TS at a profit .
Its not as precise as what you were outlining but i think a similar concept (Unless Im'e missing something?).
I think the addition of an overall basket (buys and sells) SL should aid this.
How have you found manually trading it?
 
Cheers Mark


From: EOGORFX <eog...@gmail.com>
To: margrids-b...@googlegroups.com
Sent: Monday, 18 November 2013 10:56 PM

Subject: RE: [margrids-battle-chest] Re: Chameleon.zip (margri...@googlegroups.com)

Mark Suddens

unread,
Nov 19, 2013, 2:13:30 AM11/19/13
to margrids-b...@googlegroups.com
HI Ed
RE: last email/post
Yeah I just tried running this type of setup in AM MBC and of course you cant really get MBC to trail the market unless you close the existing leading open trade in the basket . And so back to the main issue running AM - that of death of a thousand cuts, as the account is slowly drained with lots of small trades closing at a loss (nicklel and dimed) as Rick calls it 
Cheers Mark


From: EOGORFX <eog...@gmail.com>
To: margrids-b...@googlegroups.com
Sent: Monday, 18 November 2013 10:56 PM
Subject: RE: [margrids-battle-chest] Re: Chameleon.zip (margri...@googlegroups.com)

At start up the system could place pending buy and  sell stop orders on either side of the current price, with a user set pip gap, instead of just opening market orders..

eogorfx

unread,
Nov 19, 2013, 3:51:50 AM11/19/13
to margrids-b...@googlegroups.com
Mark
I have set MBC to trade 1 level only with TBO true and I have tried it on the 1 min chart. Problem is if DC is at Lo

E O'Gorman 


Rick Drake

unread,
Nov 19, 2013, 10:43:27 AM11/19/13
to margrids-b...@googlegroups.com
Congrats Syed. Certainly exciting what you have achieved.

For Chameleon, I do like the idea of trailing limit orders, as baskets will naturally stretch out during really strong price movements. However, I'd like to get the basic functionality of Chameleon figured out before starting something like this.

Also, ever notice that strong breakouts tend to happen after the market quiets down? So I was thinking if the grid spacing was an inverse relation of something like the Average True Range. Normalize the range of the Average True Range to 1, then subtract it from 1. That way, when the market quiets down, the grid spacing is increased in anticipation of a breakout. And when the breakouts occur, decrease the grid spacing as invariably really strong trends are quickly followed by choppy sideways markets.

I'm also working on another idea that I call Crowbar. It's basic premise is to run as an AntiMartingale (Trending) system that starts out with really small lots (0.01) and starts scaling in the position, in the direction of the trend. It will not run stops until the entire basket moves into a profit. If the price moves against the system, it will simply start scaling in positions in the opposite direction. As an example, two trades are initially placed at L. When the price moves up, a buy trade is executed at L+1. The price continues and buy trades are executed at L+2 and L+3, then the price takes a dive and moves below L and sell trades are executed at L-1 and L-2. The price then moves back up and eventually trades at L+4, L+5, are executed. The price then moves back down to L, and then back up to L+6. Now an up trend is clearly in place and the stops are set for the entire basket (stops for buys and targets for sells). The stops are then trailed to maximize profits, all while the basket continues accumulating trades as the price moves higher and higher in waves.

The only danger to this system is if the market makes higher highs and lower lows indefinitely such that a L+1 trade was executed, followed by a L-1, L+2, L-2, L+3,L-3, etc... but the likely hood of that happening is very slim. This system will get rid of accounts getting destroyed due to many level 1 trades that end in a loss (death by a thousand paper cuts) that the AntiMartingale mode in MBC experienced. 

The logic for Crowbar is relatively simple, so I will code that system up first. It's also safer. Then I'll code up Chameleon. I think both of these systems have a really good chance of being really successful EA's. Especially Crowbar, as it will be much much safer.

- Rick

dan...@danielalexander.info

unread,
Nov 19, 2013, 6:21:55 PM11/19/13
to drak...@gmail.com, margrids-b...@googlegroups.com
Thanks Rick, I am definitely looking forward to the Crowbar.
It was an idea you had a while ago.

I think we said back then that the only risk was that of "jamming", where levels are added but no trend in either direction occurs resulting in many levels on both sides. But I think there could be a buy+sell file that we could get comfortable with, very likely the safest solution we've had so far. With patience price should eventually break on one of the extremes resulting in basket TP.
Daniel
(PS just to be sure in the example below I think you mean targets for buys and stops for sells in a uptrend - vice versa in downtrend)


-------- Original Message--------
Subject:: Re: [margrids-battle-chest] Re: Chameleon.zip (margri...@googlegroups.com)
From: Rick Drake <drak...@gmail.com>
Date: 19 Nov 2013 17:07
To:: margrids-b...@googlegroups.com
CC:

Congrats Syed. Certainly exciting what you have achieved.<br/><br/>For Chameleon, I do like the idea of trailing limit orders, as baskets will<br/>naturally stretch out during really strong price movements. However, I'd<br/>like to get the basic functionality of Chameleon figured out before<br/>starting something like this.<br/><br/>Also, ever notice that strong breakouts tend to happen after the market<br/>quiets down? So I was thinking if the grid spacing was an inverse relation<br/>of something like the Average True Range. Normalize the range of the<br/>Average True Range to 1, then subtract it from 1. That way, when the market<br/>quiets down, the grid spacing is increased in anticipation of a breakout.<br/>And when the breakouts occur, decrease the grid spacing as invariably<br/>really strong trends are quickly followed by choppy sideways markets.<br/><br/>I'm also working on another idea that I call Crowbar. It's basic premise is<br/>to run as an AntiMartingale (Trending) system that starts out with really<br/>small lots (0.01) and starts scaling in the position, in the direction of<br/>the trend. It will not run stops until the entire basket moves into a<br/>profit. If the price moves against the system, it will simply start scaling<br/>in positions in the opposite direction. As an example, two trades are<br/>initially placed at L. When the price moves up, a buy trade is executed at<br/>L+1. The price continues and buy trades are executed at L+2 and L+3, then<br/>the price takes a dive and moves below L and sell trades are executed at<br/>L-1 and L-2. The price then moves back up and eventually trades at L+4,<br/>L+5, are executed. The price then moves back down to L, and then back up to<br/>L+6. Now an up trend is clearly in place and the stops are set for the<br/>entire basket (stops for buys and targets for sells). The stops are then<br/>trailed to maximize profits, all while the basket continues accumulating<br/>trades as the price moves higher and higher in waves.<br/><br/>The only danger to this system is if the market makes higher highs and<br/>lower lows indefinitely such that a L+1 trade was executed, followed by a<br/>L-1, L+2, L-2, L+3,L-3, etc... but the likely hood of that happening is<br/>very slim. This system will get rid of accounts getting destroyed due to<br/>many level 1 trades that end in a loss (death by a thousand paper cuts)<br/>that the AntiMartingale mode in MBC experienced.<br/><br/>The logic for Crowbar is relatively simple, so I will code that system up<br/>first. It's also safer. Then I'll code up Chameleon. I think both of these<br/>systems have a really good chance of being really successful EA's.<br/>Especially Crowbar, as it will be much much safer.<br/><br/>- Rick<br/><br/><br/>On Tue, Nov 19, 2013 at 12:51 AM, eogorfx <eog...@gmail.com> wrote:<br/><br/>> Mark<br/>> I have set MBC to trade 1 level only with TBO true and I have tried it on<br/>> the 1 min chart. Problem is if DC is at Lo<br/>><br/>> E O'Gorman<br/>><br/>><br/>><br/>> On 19 Nov 2013, at 07:13, Mark Suddens <cab...@xtra.co.nz> wrote:<br/>><br/>> HI Ed<br/>> RE: last email/post<br/>> Yeah I just tried running this type of setup in AM MBC and of course you<br/>> cant really get MBC to trail the market unless you close the existing<br/>> leading open trade in the basket . And so back to the main issue running AM<br/>> - that of death of a thousand cuts, as the account is slowly drained with<br/>> lots of small trades closing at a loss (nicklel and dimed) as Rick calls it<br/>><br/>> *Cheers Mark*<br/>><br/>> ------------------------------<br/>> *From:* EOGORFX <eog...@gmail.com><br/>> *To:* margrids-b...@googlegroups.com<br/>> *Sent:* Monday, 18 November 2013 10:56 PM<br/>> *Subject:* RE: [margrids-battle-chest] Re: Chameleon.zip (margri...@<br/>> googlegroups.com)<br/>><br/>> At start up the system could place pending buy and sell stop orders on<br/>> either side of the current price, with a user set pip gap, instead of just<br/>> opening market orders..<br/>> A trailing stop at a few pips less than the gap distance with an entry<br/>> point target could also be used for the filled trade. If the trade is<br/>> closed then go back to start.<br/>> Maybe sometimes a big price run will capture some decent profit before the<br/>> retrace starts. This can be the AM part!<br/>><br/>> When one of the pending orders is filled the other one is modified to<br/>> maintain the original gap. Even if the baskets continue to be formed using<br/>> a conventional grid from then on this entry method should help to reduce DD<br/>> but my contention is to use stop orders all the way which are continuously<br/>> modified to trail the price action in the basket formation ?<br/>><br/>> I only use pending orders for the small amount of manual trades that I<br/>> take.<br/>> Ed<br/>><br/>> *From:* margrids-b...@googlegroups.com [<br/>> mailto:margrids-b...@googlegroups.com<margrids-b...@googlegroups.com>]<br/>> *On Behalf Of *Rick Drake<br/>> *Sent:* 14 November 2013 8:16<br/>> *To:* margrids-b...@googlegroups.com<br/>> *Subject:* Re: [margrids-battle-chest] Re: Chameleon.zip (margri...@<br/>> googlegroups.com)<br/>><br/>> Yes,<br/>><br/>> I can see the value of having "virtual" trades that are activated when<br/>> stopped out... and having a living, breathing basket if you will...<br/>> Certainly it would be possible. Essentially you would be trading reversals,<br/>> and the size of the trade would be dependent on how strong and far the<br/>> movement went.<br/>><br/>> - Rick<br/>><br/>> On Thu, Nov 14, 2013 at 12:04 PM, <dan...@danielalexander.info> wrote:<br/>> We could define "spike" and program a safeguard....eg if 5 additional<br/>> levels open anywhere between 0seconds and 300 seconds, subsequent EPs are<br/>> automatically increased.<br/>><br/>> We could also have a parameter for minimum EP so that it never gets<br/>> ridiculously small (which could otherwise develop overnight).<br/>> Also Rick, any chance you can convert these rigid and fixed limit orders<br/>> into trailing stop orders? The combination of trailing stop orders and the<br/>> change of rate measurement would create a more living basket breathing in<br/>> sympathy with a fluctuating market.<br/>><br/>> -------- Original Message--------<br/>> Subject:: Re: [margrids-battle-chest] Re: Chameleon..zip (<br/>> margri...@googlegroups.com)<br/>> From: Rick Drake <drak...@gmail.com><br/>> Date: 14 Nov 2013 18:25<br/>> To:: margrids-b...@googlegroups.com<br/>> CC:<br/>><br/>> These are some good ideas. I kind of like the idea of a rate of change<br/>> measurement... the only problem is that when the rate of change is slow and<br/>> the EP has been reduced... a sudden spike will screw the system pretty<br/>> good.<br/>><br/>> - Rick<br/>><br/>><br/>> On Thu, Nov 14, 2013 at 5:04 AM, eogorfx <eog...@gmail.com> wrote:<br/>> > Rick and all here.<br/>> > I have attached a few ideas on how Chameleon might trade.<br/>> > Ed<br/>> ><br/>> > On Wednesday, November 13, 2013 7:52:36 AM UTC, stuart o wrote:<br/>> >><br/>> >> can I just add my pennyworth ,don't no if it helps ,I had similar thing<br/>> >> when I was back testing on MT4.<br/>> >> I was back testing the same time is was running the same EA on a demo<br/>> >> account(that was lucky), it took loads of trades at the same time, not<br/>> sure<br/>> >> if this helps<br/>> >><br/>> >><br/>> >> On Fri, Nov 8, 2013 at 3:14 PM, Rick Drake <drak...@gmail.com> wrote:<br/>> >><br/>> >>> Hello Maria,<br/>> >>><br/>> >>> Yeah... I have had that happen before... it's an issue with Windows<br/>> 2008<br/>> >>> Server... what happens with me anyways is I copy the file on my<br/>> computer<br/>> >>> using Ctrl+C. Then, I open up my VPS, navigate in Explorer to where I<br/>> want<br/>> >>> the files, and the paste with Ctrl+V. Probably 50% of the time, once<br/>> the<br/>> >>> file has finished copying... it just disappears. So I have to copy it<br/>> >>> again. On the second try, it works fine. Kind of frustrating. One<br/>> thing I<br/>> >>> find helpful... is if I then select the file that I just copied into my<br/>> >>> VPS, and then press Ctrl+C on it, then Esc. Otherwise, I have had the<br/>> file<br/>> >>> disapear on me when I open up Metatrader.<br/>> >>><br/>> >>> - Rick<br/>> >>><br/>> >>><br/>> >>> On Fri, Nov 8, 2013 at 12:56 AM, Mark Suddens <cab...@xtra.co.nz><br/>> wrote:<br/>> >>><br/>> >>>> Hi Maria<br/>> >>>> I got the zipped file to automatically unzip and copy the files into<br/>> >>>> the appropriate folders automatically and had no problems...<br/>> >>>> It should work for manually copying files across just the same..<br/>> >>>> That's strange? Will try the manual method on a clean MT4 instalation<br/>> >>>> and see what happens<br/>> >>>><br/>> >>>> *Cheers Mark*<br/>> >>>><br/>> >>>> ------------------------------<br/>> >>>> *From:* Maria M <toma...@yahoo.com><br/>> >>>> *To:* "margrids-b...@googlegroups.com" <<br/>> margrids-b...@googlegroups.com><br/>> >>>><br/>> >>>> *Sent:* Friday, 8 November 2013 9:32 PM<br/>> >>>> *Subject:* Re: [margrids-battle-chest] Re: Chameleon.zip (<br/>> >>>> margrids-b...@googlegroups.com)<br/>> >>>><br/>> >>>> Hi<br/>> >>>><br/>> >>>> The case of the disappearing Chameleon.!! Just wandering if anyone<br/>> else<br/>> >>>> has had this very weird experience loading Chameleon?<br/>> >>>><br/>> >>>> Copyied into experts folder, deleted other eas, placed Dll in library<br/>> >>>> folder and csv file accordingly. Open Mt4 platform and the ea<br/>> disappears.<br/>> >>>> Opened program files to double check I copied the ea in the right Mt4<br/>> >>>> folder, No probs there. Have gone through this same thing at least<br/>> three<br/>> >>>> times now.<br/>> >>>><br/>> >>>> Never had this experience before, any ideas anyone how I can get this<br/>> >>>> test going?<br/>> >>>><br/>> >>>> Thanks<br/>> >>>><br/>> >>>> Maria<br/>> >>>><br/>> >>>><br/>> >>>> It's not the strongest of species that survive, nor the most<br/>> >>>> intelligent, but the ones who are the most responsive to change -*<br/>> >>>> Charles Darwin*<br/>> >>>><br/>> >>>> As described by the Saints and Sages that came before, this is the<br/>> time<br/>> >>>> for Self Realisation. Your time is now! Go to<br/>> >>>> http://www.sahajayoga.com.au/level_1/meditation.shtml click on<br/>> >>>> experience it now.<br/>> >>>><br/>> >>>><br/>> >>>> On Tuesday, 5 November 2013 6:57 AM, Rick Drake <drak...@gmail.com><br/>> >>>> wrote:<br/>> >>>> That is strange. I'll have to look into it.<br/>> >>>><br/>> >>>> - Rick<br/>> >>>><br/>> >>>><br/>> >>>> On Mon, Nov 4, 2013 at 11:39 AM, eogorfx <eog...@gmail.com> wrote:<br/>> >>>><br/>> >>>> Rick<br/>> >>>> Something very weird happened when I loaded this version of Chameleon<br/>> >>>> on the evening of 31 Nov. on a new 25K GBP FXCM demo acc. It opened<br/>> > 80<br/>> >>>> 0.01 lot buy trades trades all in a few seconds. the following<br/>> morning it<br/>> >>>> opened another buy for 4.5 lots.<br/>> >>>> I only noticed all this today when I logged in to my VPS.<br/>> >>>> I did not load a csv file to the experts directory but I changed the<br/>> ep<br/>> >>>> and tp and Balance only - set file attached.<br/>> >>>> Ed<br/>> >>>><br/>> >>>><br/>> >>>> On Wednesday, October 30, 2013 2:04:25 AM UTC, Rick Drake wrote:<br/>> >>>><br/>> >>>> I've shared an item with you.<br/>> >>>><br/>> >>>> Added the functionality of custom settings for each level, which are<br/>> loaded from a CSV file if present, Custom settings for the particular<br/>> currency pair is set by creating a file "ChameleonSettingsCURRENCYPAIR.csv"<br/>> such as "ChameleonSettingsEURUSD.csv" and placing it in the experts/files<br/>> folder. The default settings file is "ChameleonSettings.csv". And of<br/>> course, if there is no settings file at all, then the settings will be<br/>> taken from the values calculated from the A and B. I'll share an example<br/>> settings file. There is no practical limit as to the number of levels<br/>> possible.<br/>> >>>><br/>> >>>> - Rick<br/>> >>>><br/>> >>>> [image: Item] Chameleon.zip<<br/>> https://drive.google.com/file/d/0Bz3O5oSUj98oaS10YTVnT1BIYjg/edit?usp=sharing<br/>> ><br/>> >>>> Google Drive: create, share, and keep all your stuff in one place.<br/>> [image:<br/>> >>>> Logo for Google Drive] <https://drive.google.com/><https://drive.google..com/><br/>> ><br/>> >>>><br/>> >>>> --<br/>> >>>> You received this message because you are subscribed to the Google<br/>> >>>> Groups "Margrids Battle Chest" group.<br/>> >>>> To unsubscribe from this group and stop receiving emails from it, send<br/>> >>>> an email to margrids-battle-...@googlegroups.com.<br/>> >>>> To post to this group, send email to margrids-b...@googlegroups.com.<br/>> >>>> Visit this group at http://groups.google.com/<br/>> >>>> group/margrids-battle-chest.<br/>> >>>> For more options, visit https://groups.google.com/groups/opt_out.<br/>> >>>><br/>> >>>><br/>> >>>> --<br/>> >>>> You received this message because you are subscribed to the Google<br/>> >>>> Groups "Margrids Battle Chest" group.<br/>> >>>> To unsubscribe from this group and stop receiving emails from it, send<br/>> >>>> an email to margrids-battle-...@googlegroups.com.<br/>> >>>> To post to this group, send email to margrids-b...@googlegroups.com.<br/>> >>>> Visit this group at http://groups.google.com/<http://groups..google.com/><br/>> >>>> group/margrids-battle-chest.<br/>> >>>> For more options, visit https://groups.google.com/groups/opt_out.<br/>> >>>><br/>> >>>><br/>> >>>> --<br/>> >>>> You received this message because you are subscribed to the Google<br/>> >>>> Groups "Margrids Battle Chest" group.<br/>> >>>> To unsubscribe from this group and stop receiving emails from it, send<br/>> >>>> an email to margrids-battle-...@googlegroups.com.<br/>> >>>> To post to this group, send email to margrids-b...@googlegroups.com.<br/>> >>>> Visit this group at http://groups.google.com/<br/>> >>>> group/margrids-battle-chest.<br/>> >>>> For more options, visit https://groups.google.com/groups/opt_out.<br/>> >>>><br/>> >>>><br/>> >>>> --<br/>> >>>> You received this message because you are subscribed to the Google<br/>> >>>> Groups "Margrids Battle Chest" group.<br/>> >>>> To unsubscribe from this group and stop receiving emails from it, send<br/>> >>>> an email to margrids-battle-...@googlegroups.com.<br/>> >>>> To post to this group, send email to margrids-b...@googlegroups.com.<br/>> >>>> Visit this group at http://groups.google.com/<br/>> >>>> group/margrids-battle-chest.<br/>> >>>> For more options, visit https://groups.google.com/groups/opt_out.<br/>> >>>><br/>> >>><br/>> >>> --<br/>> >>> You received this message because you are subscribed to the Google<br/>> >>> Groups "Margrids Battle Chest" group.<br/>> >>> To unsubscribe from this group and stop receiving emails from it, send<br/>> >>> an email to margrids-battle-...@googlegroups.com.<br/>> >>> To post to this group, send email to margrids-b...@googlegroups.com<margrids-b....@googlegroups.com><br/>> .<br/>> >>> Visit this group at<br/>> http://groups.google.com/group/margrids-battle-chest<http://groups.google..com/group/margrids-battle-chest><br/>> >>> .<br/>> >>> For more options, visit https://groups.google.com/groups/opt_out.<br/>> >>><br/>> >><br/>> >> --<br/>> > You received this message because you are subscribed to the Google Groups<br/>> > "Margrids Battle Chest" group.<br/>> > To unsubscribe from this group and stop receiving emails from it, send an<br/>> > email to margrids-battle-...@googlegroups.com.<br/>> > To post to this group, send email to<br/>> > margrids-b...@googlegroups.com.<br/>> > Visit this group at http://groups.google.com/group/margrids-battle-chest<br/>> .<br/>> > For more options, visit https://groups.google.com/groups/opt_out.<br/>> ><br/>> --<br/>> You received this message because you are subscribed to the Google Groups<br/>> "Margrids Battle Chest" group.<br/>> To unsubscribe from this group and stop receiving emails from it, send an<br/>> email to margrids-battle-...@googlegroups.com.<br/>> To post to this group, send email to<br/>> margrids-b...@googlegroups.com.<br/>> Visit this group at http://groups.google.com/group/margrids-battle-chest.<br/>> For more options, visit https://groups.google.com/groups/opt_out.<br/>> --<br/>> You received this message because you are subscribed to the Google Groups<br/>> "Margrids Battle Chest" group.<br/>> To unsubscribe from this group and stop receiving emails from it, send an<br/>> email to margrids-battle-...@googlegroups.com.<br/>> To post to this group, send email to<br/>> margrids-b...@googlegroups.com.<br/>> Visit this group at http://groups.google.com/group/margrids-battle-chest.<br/>> For more options, visit https://groups.google.com/groups/opt_out.<br/>><br/>> --<br/>> You received this message because you are subscribed to the Google Groups<br/>> "Margrids Battle Chest" group.<br/>> To unsubscribe from this group and stop receiving emails from it, send an<br/>> email to margrids-battle-...@googlegroups.com<margrids-battle-chest+unsubscribe@googlegroups..com><br/>> .<br/>> To post to this group, send email to<br/>> margrids-b...@googlegroups.com.<br/>> Visit this group at http://groups.google.com/group/margrids-battle-chest.<br/>> For more options, visit https://groups.google.com/groups/opt_out.<br/>> --<br/>> You received this message because you are subscribed to the Google Groups<br/>> "Margrids Battle Chest" group.<br/>> To unsubscribe from this group and stop receiving emails from it, send an<br/>> email to margrids-battle-...@googlegroups.com.<br/>> To post to this group, send email to<br/>> margrids-b...@googlegroups.com.<br/>> Visit this group at http://groups.google.com/group/margrids-battle-chest.<br/>> For more options, visit https://groups.google.com/groups/opt_out.<br/>><br/>><br/>> --<br/>> You received this message because you are subscribed to the Google Groups<br/>> "Margrids Battle Chest" group.<br/>> To unsubscribe from this group and stop receiving emails from it, send an<br/>> email to margrids-battle-...@googlegroups.com.<br/>> To post to this group, send email to<br/>> margrids-b...@googlegroups.com.<br/>> Visit this group at http://groups.google.com/group/margrids-battle-chest.<br/>> For more options, visit https://groups.google.com/groups/opt_out.<br/>><br/>> --<br/>> You received this message because you are subscribed to the Google Groups<br/>> "Margrids Battle Chest" group.<br/>> To unsubscribe from this group and stop receiving emails from it, send an<br/>> email to margrids-battle-...@googlegroups.com.<br/>> To post to this group, send email to<br/>> margrids-b...@googlegroups.com.<br/>> Visit this group at http://groups.google.com/group/margrids-battle-chest.<br/>> For more options, visit https://groups.google.com/groups/opt_out.<br/>><br/><br/>-- <br/>You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.<br/>To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.<br/>To post to this group, send email to margrids-b...@googlegroups.com.<br/>Visit this group at http://groups.google.com/group/margrids-battle-chest.<br/>For more options, visit https://groups.google.com/groups/opt_out.<br/>

EOGORFX

unread,
Nov 19, 2013, 6:15:08 PM11/19/13
to margrids-b...@googlegroups.com

Mark

My last post was sent in error before I finished it! (Finger trouble on phone)

I was trying to say that I have set MBC to trade just 1 level in AM mode with TBO true and using the Basket trail function set to -10 and target to BE after a 10 pip gain. When I set the DC outer to 2 or there about (1 would not work)  I was getting very many false BOs all the time and when I increased it to 15 – 20 It worked well but opened another trade immediately while price was still beyond the  outer DC and lost most of the profit.

For my manual trades I use the 4hr or mostly the daily TF and the FxFish + MA-Cross_OC (attached)  with buy or sell stop orders just outside the last days high/low when all the other conditions are met. It is very good If I give it some screen attention for entry and exit signals! Would be nice to automate it.

 

Excellent results Syed.

 

Great ideas from Rick also.

I believe the mGrid EA  works on vaguely similar lines to your Crowbar. See  the attached. It sure is fun to watch it trade on a visual BT or on a demo. I found in on Forexfactory

I never tried it on real though! Works great when the trend is active, Disaster in a ranging Mkt. ATR is a great indicator to get range info.

Are you going to programme The Crowbar as a standalone EA?

I think the interaction of ideas here is a great way to hatch a few new strategies.

FX Fish.zip
mGRID EA.zip

Rick Drake

unread,
Nov 19, 2013, 8:52:47 PM11/19/13
to margrids-b...@googlegroups.com
Hello Ed,

Seems like mGRID is similar to what I'm envisioning, except Crowbar will start out with the 0.01 lot trades and keep adding trades as the trend continues. I could literally have thousands of levels... instead of just 3 like mGRID. 

- Rick

Maria M

unread,
Nov 20, 2013, 10:56:05 PM11/20/13
to margrids-b...@googlegroups.com
Hi Guys

I still can't demo Chameleon as I have Widnows XP and have the disappearing ea issue. I wanted to know if we have implememented any of the ideas we previously discussed such as:

Activating AM when breaching support/resistance lines,
Mantaining TP when a hedge is triggered and closing at TP with the added hedge profit?


Regards

Maria


 
It's not the strongest of species that survive, nor the most intelligent, but the ones who are the most responsive to change - Charles Darwin
 
As described by the Saints and Sages that came before, this is the time for Self Realisation. Your time is now! Go to http://www.sahajayoga.com.au/level_1/meditation.shtml click on experience it now.

Rick Drake

unread,
Nov 21, 2013, 12:07:39 AM11/21/13
to margrids-b...@googlegroups.com
No, those have not been added yet. At this point Chameleon is merely a very simple Martingale.

- Rick

Maria M

unread,
Dec 3, 2013, 6:18:27 AM12/3/13
to margrids-b...@googlegroups.com
Hi Rick

I'm getting a message on mbc 2G to upgrade to latest version as it's expirying at the end of the month. Is that when it's meant to expire?

Thanks

Maria

 
It's not the strongest of species that survive, nor the most intelligent, but the ones who are the most responsive to change - Charles Darwin
 
As described by the Saints and Sages that came before, this is the time for Self Realisation. Your time is now! Go to http://www.sahajayoga.com.au/level_1/meditation.shtml click on experience it now.

Mark Suddens

unread,
Dec 3, 2013, 1:15:21 PM12/3/13
to margrids-b...@googlegroups.com
HI Maria
In september Rick uploaded a latest version (still called G) in which he extended the license through to end of 2015.
so if not already done so you need to download this from the Google Drive archive and upgrade.
How are things going - are you having success with your settings?
 
Cheers Mark


From: Maria M <toma...@yahoo.com>
To: "margrids-b...@googlegroups.com" <margrids-b...@googlegroups.com>
Sent: Wednesday, 4 December 2013 12:18 AM

To: margrids-b...@googlegroups.com
Subject: Re: [margrids-battle-chest] Re: Chameleon..zip (margri...@googlegroups.com)
To post to this group, send email to margrids-battle-chest@googlegroups..com.
To post to this group, send email to margrids-battle-chest@googlegroups..com.
--
You received this message because you are subscribed to the Google Groups "Margrids Battle Chest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-...@googlegroups.com.
To post to this group, send email to margrids-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/margrids-battle-chest.
For more options, visit https://groups.google.com/groups/opt_out.

Rick Drake

unread,
Dec 4, 2013, 3:30:20 PM12/4/13
to margrids-b...@googlegroups.com
Maria,
 
Mark is correct. The latest version of MBC is good through the end of 2015.
 
- Rick

Maria M

unread,
Dec 4, 2013, 10:31:46 PM12/4/13
to margrids-b...@googlegroups.com
Thanks Mark and Rick

I have just downloaded vers G. I still can't test Chameleon as I have Windows XP. How are you guys going with it?

With my settings I'm still twicking and backtesting on different pairs. So far to reduce DD I have to reduce profit quite a bit. I'll also need to have less pairs trading to minimise risk.

Things will be much better when the profit and loss from the hedges will be incorporated into the TP, as I have identified levels I would like hedging to be triggered in forward testing. I think that will make trading this system much easier.

Anyway Thanks again, all the best with your trading.

Maria

It's not the strongest of species that survive, nor the most intelligent, but the ones who are the most responsive to change - Charles Darwin
 
As described by the Saints and Sages that came before, this is the time for Self Realisation. Your time is now! Go to http://www.sahajayoga.com.au/level_1/meditation.shtml click on experience it now.

Mark Suddens

unread,
Dec 4, 2013, 11:29:11 PM12/4/13
to margrids-b...@googlegroups.com
HI Maria
Chameleon works fine but is really just at shell stage in terms of strategy (can only trade basic martingale progressions with no safeguards) so I would not use it on a live account

I am still trading MBC at a very low level/risk (mainly because of end of year work commitments taking all my time) Like you I have stopped using the intensive hedge systems until we have MBC or Chameleon incorporating an overall buy and sell basket TS system. (no pressure intended Rick*:) happy)

I am currently using conservative settings on and off on a couple of pairs (similar to the envy Long Cycle progression with max L13) but with some mild hedging coming in if required at about L10. I also find the having the TS activated  helps both profitability and to reduce DD above not having it activated. It has been going OK 
I do intend to start trading more pairs after christmas as I do think this should be a way of mitigating risk to reward, however I think the pairs are important. Ed has had a live demo running on FXPig for well over a year now trading 9 pairs (I hope you dont mind me sharing this Ed) and there is a a real difference in the profitability of the pairs. Although some pairs (most notably the EURJPY) are more risky, trading a Marty grid on any pair at any time is risky, and I think it is worth concentrating on those pairs where at least you get a decent return for the risk. So I will be concentrating on EY, AU, GU, NU, AN, & EU
 
Cheers Mark


Sent: Thursday, 5 December 2013 4:31 PM
Yes,
 
I can see the value of having "virtual" trades that are activated when stopped out.... and having a living, breathing basket if you will... Certainly it would be possible. Essentially you would be trading reversals, and the size of the trade would be dependent on how strong and far the movement went.
 
- Rick
 
>>>> Groups "Margrids Battle Chest" group..
To post to this group, send email to margrids-b...@googlegroups.com..
To unsubscribe from this group and stop receiving emails from it, send an email to margrids-battle-chest+unsubscribe@googlegroups..com.
Reply all
Reply to author
Forward
0 new messages