Jump to content

Cable Run from Profitable FX


Recommended Posts

  • Replies 921
  • Created
  • Last Reply

Top Posters In This Topic

Here's my LIVE statement for the past month. Not intend to publish myfxbook live result so as not be jeopardized by unexpected vicious.

 

 

That's great, Muruku. Can you please put up a real-time link or statement (like MT4Live.com or MyFxBook) showcasing your results, so that we can compare it with our own? It'd be really helpful if you could do so. Thanks!
Link to comment
Share on other sites

This is pcs of junk statement, luckily was demo. CR shouldn't behave that way..

 

That's great idea! The truth is is that it's not a perfect world and all traders monitor their trades whether they are using manual means or an expert advisor. Here is my demo statement for that demo I started 8 trading days ago just in case there are some non-believers out there...

http://www.4shared.com/file/n-OVp9po/CableLarikan_Statement.html

Link to comment
Share on other sites

I had been listening too many times complains of CR not closing all trades in a bucket ... still not seeing effort by whom in debugging why so.

With that, let me feed the fishes to unskillful fishers.

Below codes had been revamped with my invention of dynamic magic range.

teknomage will know how to help your guys..

 

 

double Pips = TotalProfit();

if (Pips >= MinProfit){

 

while(MyOrdersTotal() != 0) {

CloseAllTrades(1);

CloseAllTrades(2);

}

DeletePendingOrders();

 

}

 

...

...

 

int MyOrdersTotal() {

int l_count_4;

int l_ord_total_8;

l_count_4 = 0;

l_ord_total_8 = OrdersTotal();

for (int l_pos_12 = 0; l_pos_12 < l_ord_total_8; l_pos_12++) {

OrderSelect(l_pos_12, SELECT_BY_POS, MODE_TRADES);

if (OrderSymbol()==Symbol() && OrderMagicNumber()>= MagicRangeLow && OrderMagicNumber()<= MagicRangeHigh && OrderComment() == g_comment_152 && OrderSymbol() == Symbol()) l_count_4++;

}

return (l_count_4);

}

 

 

double TotalProfit()

{

int total=OrdersTotal();

double totalPips = 0.0;

for (int cnt=0;cnt<total;cnt++)

{

OrderSelect(cnt, SELECT_BY_POS);

int mode=OrderType();

bool condition = false;

if (OrderSymbol()==Symbol() && OrderMagicNumber()>= MagicRangeLow && OrderMagicNumber()<= MagicRangeHigh && OrderComment() == g_comment_152 )condition = true;

if (condition)

{

switch (mode)

{

case OP_BUY:

RefreshRates();

totalPips += MathRound((MarketInfo(OrderSymbol(),MODE_BID)-OrderOpenPrice())/MarketInfo(OrderSymbol(),MODE_POINT));

break;

 

case OP_SELL:

RefreshRates();

totalPips += MathRound((OrderOpenPrice()-MarketInfo(OrderSymbol(),MODE_ASK))/MarketInfo(OrderSymbol(),MODE_POINT));

break;

}

}

}

return(totalPips);

}

 

int DeletePendingOrders() {

int l_ord_total_4;

l_ord_total_4 = OrdersTotal();

for (int l_pos_8 = l_ord_total_4 - 1; l_pos_8 >= 0; l_pos_8--) {

while (!IsTradeAllowed()) Sleep(700);

OrderSelect(l_pos_8, SELECT_BY_POS, MODE_TRADES);

if (OrderSymbol()==Symbol() && OrderMagicNumber()>= MagicRangeLow && OrderMagicNumber()<= MagicRangeHigh && OrderComment() == g_comment_152 && OrderSymbol() == Symbol() && OrderType() == OP_BUYLIMIT || OrderType() == OP_SELLLIMIT) OrderDelete(OrderTicket());

}

return (0);

}

 

int CloseAllTrades(int ai_0) {

int l_count_8;

int l_error_12;

int li_16 = 4;

int li_20 = 5;

int l_ord_total_23 = OrdersTotal();

for (int l_pos_36 = l_ord_total_23 - 1; l_pos_36 >= 0; l_pos_36--) {

if (OrderSelect(l_pos_36, SELECT_BY_POS, MODE_TRADES)) {

if (OrderSymbol() == Symbol() && OrderMagicNumber()>= MagicRangeLow && OrderMagicNumber()<= MagicRangeHigh && OrderComment() == g_comment_152) {

l_count_8 = 0;

while (l_count_8 < li_16) {

switch (OrderType()) {

 

case OP_BUY:

if (ai_0 == 0 || ai_0 == 2) {

RefreshRates();

OrderClose(OrderTicket(), OrderLots(), Bid, 0, CLR_NONE);

}

break;

 

case OP_SELL:

if (ai_0 == 0 || ai_0 == 1) {

RefreshRates();

OrderClose(OrderTicket(), OrderLots(), Ask, 0, CLR_NONE);

}

break;

 

case OP_BUYLIMIT:

if (ai_0 == 0 || ai_0 == 2) OrderDelete(OrderTicket());

break;

 

case OP_SELLLIMIT:

if ( ai_0 == 0|| ai_0 ==1) OrderDelete(OrderTicket());

 

}

l_error_12 = GetLastError();

if (l_error_12 == 0/* NO_ERROR */) l_count_8 = li_16;

else {

l_count_8++;

if (l_error_12 == 138/* REQUOTE */ || l_error_12 == 129/* INVALID_PRICE */) continue;

if (l_error_12 == 146/* TRADE_CONTEXT_BUSY */) {

MySleep(li_20);

li_16 = 10;

}

}

}

}

} else {

SendMail("CR have Error closing "+ Period(), WindowExpertName()+" "+GetLastError());

break;

}

}

return (0);

}

 

I don't know muruku I ran CableLarikan ATR mod (these exact settings except for double ATRDnLimit1 = 6.0; // your prevous post #335 was on 7.0). I ran these settings (post #355)and it resulted in massive DD (wet your pants type draw down). Draw down in sell trades while Standard CableLarikan ok 24h busting through the roof with buy trades.

 

Only problem is (still not rectified even after all this time) is that CableLarikan still doesn't close trades properly when in profit. I tried the WHILE loop (from a previous post) from muruku but it had trades in the wrong direction last night while the Standard Cable Larikan was in the right direction. I can't ignore physical evidence.

 

Demo started 8 trading days ago with Standard CableLarikan ok 24h available from post #322 at $3000. ATR 5. It is now Wednesday the following week. The demo is now up to $11346 equity $11345. All on 0.1 lots no increasing lots.

Note: I had to close trades manually for the first time last night because trades even from late last week were not being closed and were banking up.

 

It really could do with an "Close all trades now" parameter.

 

P.S Some amazing developments here and a big thanks to everyone.

Link to comment
Share on other sites

I think all type of Day/Night scalper need this ATR filters.

 

 

 

I'm delighted with CR performance that I had deployed since 06-Sep until today, 1950 pips..

Which meant daily average 80-100 pips ..thus, I still want to write rubbish here & there to hopefully give some indications ..

 

so, here's my ATR setting now.

 

double ATRPeriod1 = 3.0;

double ATRPeriod2 = 4.0; // safer at 5, again, up to you...

 

double ATRUpLimit1 = 13.0; // good at 13 at 11-sep!! zone A

double ATRDnLimit1 = 6.0; // good at 7 at 11-sep!!

 

double ATRUpLimit2 = 21.0; // good at 21 at 11-sep!! zone B

double ATRDnLimit2 = 16.0; // good at 16 at 11-sep!!

 

double ATRUpLimit3 = 28.0; // good at 28 at 11-sep!! zone C

double ATRDnLimit3 = 25.0; // good at 25 at 11-sep!!

 

...

...

...

 

 

if (ATRPrePips1 >= ATRDnLimit1 && ATRPrePips1 <= ATRUpLimit1

&& ATRPrePips2 >= ATRDnLimit1 && ATRPrePips2 <= ATRUpLimit1

&& ATRPips >= ATRDnLimit1 && ATRPips <= ATRUpLimit1

/*|| HowTight >= HowTightDnLimit && HowTight <= HowTightUpLimit*/) MySignal =1; // all in zone A

 

 

if (ATRPrePips1 >= ATRDnLimit2 && ATRPrePips1 <= ATRUpLimit2

&& ATRPrePips2 >= ATRDnLimit2 && ATRPrePips2 <= ATRUpLimit2

&& ATRPips >= ATRDnLimit2 && ATRPips <= ATRUpLimit2

/*|| HowTight >= HowTightDnLimit && HowTight <= HowTightUpLimit*/) MySignal =1; // all in zone B

 

 

if (ATRPrePips1 >= ATRDnLimit3 && ATRPrePips1 <= ATRUpLimit3

&& ATRPrePips2 >= ATRDnLimit3 && ATRPrePips2 <= ATRUpLimit3

&& ATRPips >= ATRDnLimit3 && ATRPips <= ATRUpLimit3

/*|| HowTight >= HowTightDnLimit && HowTight <= HowTightUpLimit*/) MySignal =1;

// all in zone C (quite active, some news going on, that's why zone C range limit is pretty tide.

 

 

if (ATRPrePips1 >= ATRDnLimit2 && ATRPrePips1 <= ATRUpLimit2

&& ATRPrePips2 >= ATRDnLimit2 && ATRPrePips2 <= ATRUpLimit2

&& ATRPips >= ATRDnLimit1 && ATRPips <= ATRUpLimit1

/*|| HowTight >= HowTightDnLimit && HowTight <= HowTightUpLimit*/) MySignal =1;

// hybrid zones, price actions go back to Zone A

 

 

if (ATRPrePips1 >= ATRDnLimit1 && ATRPrePips1 <= ATRUpLimit1

&& ATRPrePips2 >= ATRDnLimit2 && ATRPrePips2 <= ATRUpLimit2

&& ATRPips >= ATRDnLimit1 && ATRPips <= ATRUpLimit1

/*|| HowTight >= HowTightDnLimit && HowTight <= HowTightUpLimit*/) MySignal =1;

//hybrid zones, price actionss back to quiet, zone A

Link to comment
Share on other sites

Hello,

I have a small problem.

I had install CablerunII in my mt4. It worked very good but I had to reinstall today the mt4. And know do not open any pending orders. I have the indicator ATR Pips working ok.

And in the Experts and Journal of the mt4 everything is working ok without errors.

Could anyone help me?

By the way what is the difference between the CableRunII and this last versions?

Thank you in advance!

Best regards,

C@sh

Link to comment
Share on other sites

Trading/not trading times-gmt please...

 

Thanks for efforts making this EA a great one. Could you please make the EA trading hour parameters to be controlled externally as GMT so that we can choose 'not to trade' hours mode taking into account the broker time. If we choose 24 hours-trading mode then there's not much of a problem, but when set to restricted hours mode, a chaos appears I don't understand at all. I don't think it's too difficult a matter for able coders here...

 

Regards,

 

Metin

Link to comment
Share on other sites

I'm gonna be out of town for about a week and will unavailable until I return. So, someone else will have to help y'all with the modifications until then. Before I leave though, I wanted to share a backtest of one of my 'radical' optimized settings for the latest version I had worked on, i.e., CableMuruku_24H_teknomage

 

Starting with a balance of just $2000 (i always look for the lowest balance I can safely begin with this robot), my mod would've made a profit of $11,155.40 over 9 months, i.e. from Jan to Sept '10. Lot size was 0.1 with IncLot=0.1... however, my mod implements the extra IncLot only during the main trading session (i.e. mainly Asian session). Profit Factor = 3.84 (Gross Profit=$15081.28 & Gross loss was only -$3925.87). And the best part IS... Absolute DD was only $297.04 with Maximal drawdown at $1295.62 (19.35%)!

Now will ya take a look at that graph!!! How much more straight can that get! :)

 

http://img834.imageshack.us/img834/4881/cablerun24hfxopenjan4to.gif

Link to comment
Share on other sites

use the "code" button in the posts

 

I still can't find the code button. I press reply, go advanced... then where exactly is it? What is it supposed to do? I'm pretty sure my vision is ok. I'm trying to work out and put muruku's coding from post #507 in myself.

 

Non Farm Payrolls this week so it'll be interesting to see what happens to the demo accounts on Friday.

Edited by tomislav
Link to comment
Share on other sites

I still can't find the code button. I press reply, go advanced... then where exactly is it? What is it supposed to do? I'm pretty sure my vision is ok. I'm trying to work out and put muruku's coding from post #507 in myself.

 

Non Farm Payrolls this week so it'll be interesting to see what happens to the demo accounts on Friday.

 

Hi,

 

http://indo-investasi.com/images/Eloquent/editor/code.png

 

8-)

Link to comment
Share on other sites

I'm gonna be out of town for about a week and will unavailable until I return. So, someone else will have to help y'all with the modifications until then. Before I leave though, I wanted to share a backtest of one of my 'radical' optimized settings for the latest version I had worked on, i.e., CableMuruku_24H_teknomage

 

Starting with a balance of just $2000 (i always look for the lowest balance I can safely begin with this robot), my mod would've made a profit of $11,155.40 over 9 months, i.e. from Jan to Sept '10. Lot size was 0.1 with IncLot=0.1... however, my mod implements the extra IncLot only during the main trading session (i.e. mainly Asian session). Profit Factor = 3.84 (Gross Profit=$15081.28 & Gross loss was only -$3925.87). And the best part IS... Absolute DD was only $297.04 with Maximal drawdown at $1295.62 (19.35%)!

Now will ya take a look at that graph!!! How much more straight can that get! :)

 

http://img834.imageshack.us/img834/4881/cablerun24hfxopenjan4to.gif

 

Hi teknomage,

please show us which version ( on which post , I can't find. Is this http://www.4shared.com/file/T75gfYLB/CableLarikan_ok_24HCTWhile.html ? ) the EA you used. Thanks

Link to comment
Share on other sites

I still can't find the code button. I press reply, go advanced... then where exactly is it? What is it supposed to do? I'm pretty sure my vision is ok. I'm trying to work out and put muruku's coding from post #507 in myself.

 

Non Farm Payrolls this week so it'll be interesting to see what happens to the demo accounts on Friday.

 

 

the button is "#" or you may just type in straight text 

 

http://img405.imageshack.us/img405/1749/codebuttonii.jpg

Link to comment
Share on other sites

Thanks again I had to go and change settings on account settings. It wasn't turned on. See now I can do this... :)) and this :-?

 

Just a quick mention on demos and to avoid any future heartache. I'm running Standard Cable Larikan ok 24h from post #322 by leonytham. The one that I posted CableLarikan ok 24HCTWhile has been opening up trades in the other direction so I'm not going to use it anymore. It's happened twice for me. The demo started to red line. I'm going to remove it from the thread.

CableLarikan ok 24hClose Trades from #492 should be fine and CableLarikan ok 24H from #322. Demo them both and if they behave the same then consider using them.

 

A few words on getting trades closed asap. There is a basket profit EA that you can adjust to have all trades close when a certain amount of profit is reached. It has a SL as well. It's in the thread (I don't remember where) so you'll have to go looking.

Good Luck.

 

P.S Demo using Cable Larikan ok 24H from post #322 is up to $12,657 from $3000 in 9 trading days on 0.1 lots only.

Edited by tomislav
Link to comment
Share on other sites

And here's another version with the mysterious While loop posted by muruku some time back. Once again thanks to teknomage for telling me to include the */ at the end to make it work.

This one is called CableLarikan ok 24HCTWhile - CT for closing trades option and While for the While Loop. I would really appreciate any feedback on it.

My intention here is to gain an efficient trading system so I can therefore make fiscal gain from the foreign exchange and then deposit funds into my bank account. I'm helping and sharing as much as my ability allows.

 

http://www.4shared.com/file/T75gfYLB/CableLarikan_ok_24HCTWhile.html

 

Thanks tomislav for the compilation,

 

1 question, if i turn not to trade hours to "True", then "telaga Emas" to False??

 

and wat TF recommended for this?

 

Thanks!!

Link to comment
Share on other sites

Originally posted by Teknomage.

That's already included in the original 24H version as well as my mod. ProfitMode=2 will close all trades based on Total Profit in pips and ProfitMode=3 will do the same for TotalProfit in dollars...

 

I would be grateful if someone could tell me at what level profit mode 2 and 3 close at and how to set the levels. What is Telaga EMAS.

Thanks in advance

Many thanks.

Link to comment
Share on other sites

Thanks for the modifications to 1.2f have noticed that when it has orders they don't seem to appear in the text on screen with open orders. I had a brilliant week last week and has been nothing happening this week. Has anyone else has the same result or am I getting errors or having broker issues?

Thanks for your reply

Link to comment
Share on other sites

Ok this is weird had worked great last week and Monday this week after that nothing really at all, has the pending orders but seem to keep being canceled. I'm assuming the broker is cancelling the trades, as I'm running it on a smaller account with same settings and has trades open and so does the demo.

I might contact the broker and ask what the hell is going on. Anyone recommend a good broker.

Link to comment
Share on other sites

Ok this is weird had worked great last week and Monday this week after that nothing really at all, has the pending orders but seem to keep being canceled. I'm assuming the broker is cancelling the trades, as I'm running it on a smaller account with same settings and has trades open and so does the demo.

I might contact the broker and ask what the hell is going on. Anyone recommend a good broker.

 

http://www.allforex.eu/Ranking.php

http://www.forexonlinelearning.com/forex-hedging-brokers/

Link to comment
Share on other sites

I'm gonna be out of town for about a week and will unavailable until I return. So, someone else will have to help y'all with the modifications until then. Before I leave though, I wanted to share a backtest of one of my 'radical' optimized settings for the latest version I had worked on, i.e., CableMuruku_24H_teknomage

 

Starting with a balance of just $2000 (i always look for the lowest balance I can safely begin with this robot), my mod would've made a profit of $11,155.40 over 9 months, i.e. from Jan to Sept '10. Lot size was 0.1 with IncLot=0.1... however, my mod implements the extra IncLot only during the main trading session (i.e. mainly Asian session). Profit Factor = 3.84 (Gross Profit=$15081.28 & Gross loss was only -$3925.87). And the best part IS... Absolute DD was only $297.04 with Maximal drawdown at $1295.62 (19.35%)!

Now will ya take a look at that graph!!! How much more straight can that get! :)

 

http://img834.imageshack.us/img834/4881/cablerun24hfxopenjan4to.gif

 

Great stuff here. I simply like this strategy.

 

Cheers

Link to comment
Share on other sites

the pending orders seem to keep being canceled. I'm assuming the broker is cancelling the trades

 

No, the EA is doing that. It was one of the changes in 1.2f for safety. If the ATR filter kicks in, the pending orders are cancelled. Can't blame this one on the broker.

 

There is a new parm, DeletePOATR. Set this to FALSE and you should again see the behavior you want.

 

I did notice that there's an error in the file read code for the random magic number. He has FileReadInteger where I think it needs to be FileReadString. Probably best to avoid using RandomMagic until this gets sorted.

Edited by BobR
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...