• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 8:36am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 8:36am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

Basket Knights - A Basket Trading Round Table 1,231 replies

BASKET TRADE Management: Using multiple trade management EA's on basket trades 8 replies

TMS basket: Dashboard for a basket of MA-Filtered RSI Signals 135 replies

Do you have the balls to Lose, But not the balls to Win? 63 replies

My first attempt at T101's basket method... 2 replies

  • Commercial Content
  • /
  • Reply to Thread
  • Subscribe
  • 205
Attachments: T101 Basket Trader with ONE of Nanningbob's Balls
Exit Attachments

T101 Basket Trader with ONE of Nanningbob's Balls

  • Last Post
  •  
  • 1 78Page 91011 33
  • 1 8Page 910 33
  •  
  • Post #161
  • Quote
  • Sep 12, 2011 3:15pm Sep 12, 2011 3:15pm
  •  jmw1970
  • Joined Sep 2010 | Status: Trader & MQL Coder | 776 Posts
Hi Dragosd1

i have just looked better at your chart and noticed something

you are still using the OLD bot

please ensure you upgrade to v2

v1.x works but not nearly as well as v2

Regards, John

Quoting dragosd1
Disliked
I'm not very confortable with how the chart looks, sa will wait for a defined movement. That means I will wait for the downtrend to establish again as it should(below HA), and play retracements again. Closed for $25 profit. I love how you can visually place and control orders with it...Today I have $260 in bank with this on demo.
Ignored
  • Post #162
  • Quote
  • Sep 12, 2011 3:16pm Sep 12, 2011 3:16pm
  •  dragosd1
  • | Joined Feb 2008 | Status: Member | 572 Posts
Quoting jmw1970
Disliked
The T101 indi is the same one that I originally fixed and posted to the thread when i started this thread.

thought i would just put it in with the rest of the stuff in the zip file.

glad you are liking the bot, you should maybe start to think about TLE design to make it even better
Ignored
Well, I have to read again the guide, I think I didn't understand exactly how they work... I mean, we determine the market bias, by selecting (Long, Short, Range, etc) and they are used accordingly?
Ooops, I've started questions, before reading all, sorry, ignore that...
I don't say
  • Post #163
  • Quote
  • Sep 12, 2011 3:54pm Sep 12, 2011 3:54pm
  •  magft
  • | Joined Apr 2011 | Status: Member | 208 Posts
John

This truly is an amazing piece of work, ive got it up and running no problems. The manaul is very informative and easy to follow. I really like the idea of the TLE's this is a stroke of genius and hopefully means we can find some serious money makers.

When i have a bit more time i'll have a go at creating a TLE, your code is very easy to follow and understand, i want to use currency index to aid in basket direction.



Regards

Mike
  • Post #164
  • Quote
  • Sep 12, 2011 7:11pm Sep 12, 2011 7:11pm
  •  sidhujag
  • Joined Apr 2009 | Status: Non-Member | 4,699 Posts
Hey John,

Nice coding! very well defined and scalable. I like the fact that we can implement our own strategies but still use the basket management with visual identifiers of SL/TP.

I have 2 questions:

1) Right now we have to modify the MarketRead manually in the code? There is no extern for this? I tried to modify on screen but it replaced it again with NA. I modified the DefaultMktRead, recompiled, set some boolean's to true and it worked.

2) I know you didn't work on the t101 price indi.... but we have no way of knowing our risk:reward without knowing what 1 pip of movement on our offline chart represents in money value.

For example I am looking at a counter trend basket while the price is at a high. I would like to apply some MM to the trade and say I want to risk 3% of my equity @ 0.1 lots per pair. I have no idea of where to put my SL because I don't know how many points on the T101 graph this represents.

I've looked at the UseWeights code, and it is supposed to do this for me, but taking some test trades over night and seeing the PnL versus pip movement, it is not consistent. IE: using 0.1 lots and I would expect a +$1000 buy basket PnL to represent me being 1000 pips in profit, especially due to the fact that I've applied my weights to each pair so I can represent each pip of movement on each pair based on the currency denominated by my account. (USD). However my trade was say 1500 pips in profit but I had a +$2500 balance. I can work out the ratio but don't know if that's the right solution.

Not sure if you would be able to offer any hints, suggestions?

Thanks,
Jag
  • Post #165
  • Quote
  • Sep 12, 2011 7:21pm Sep 12, 2011 7:21pm
  •  Traderduke
  • Joined Oct 2009 | Status: Member | 255 Posts
John,
An excellant piece of programming. I epecially like the !TLE portion and look forward to coming up with a winning TLE. This HAMA is especially fruitful on most charts and it has MTF. I'm wishing I had skipped dinner and gotten in earlier.
Attached Image (click to enlarge)
Click to Enlarge

Name: 2011-09-12_191557-newTMv2.png
Size: 46 KB
Attached File
File Type: mq4 RK-ml-HAMA T3 new - mtf & alert.mq4   14 KB | 276 downloads
  • Post #166
  • Quote
  • Sep 12, 2011 7:38pm Sep 12, 2011 7:38pm
  •  jmw1970
  • Joined Sep 2010 | Status: Trader & MQL Coder | 776 Posts
The market read will be replaced automatically by NA if the UseMarketRead flag is set to false, this has to be set to true to use market read, otherwise no matter how many times you press the button it will always return to NA

you are correct, i didn't design the T101 price indi, and I like you are somewhat frustrated by the inability to get a true pip reading.

To be honest I have not examined the code of the indi that much (apart to put in my fix) and am not sure how this weighting coding works

for instance I know that the wicks (hi / lo) are not always achieved on the offline chart, even though they are shown - but I am not sure if the same can be said for difference between open & close

if the values between open and close do truly reflect the total movement between all the pairs, then it shouldn't be to difficult to extrapulate the correct pip / dollar amount based on tick value from each pair that make up the basket

I will think further on this, and if I have any insights I will post them to this thread

Regards, John

Quoting sidhujag
Disliked
Hey John,

Nice coding! very well defined and scalable. I like the fact that we can implement our own strategies but still use the basket management with visual identifiers of SL/TP.

I have 2 questions:

1) Right now we have to modify the MarketRead manually in the code? There is no extern for this? I tried to modify on screen but it replaced it again with NA. I modified the DefaultMktRead, recompiled, set some boolean's to true and it worked.

2) I know you didn't work on the t101 price indi.... but we have no way of knowing our risk:reward...
Ignored
  • Post #167
  • Quote
  • Sep 12, 2011 8:25pm Sep 12, 2011 8:25pm
  •  dragosd1
  • | Joined Feb 2008 | Status: Member | 572 Posts
Now I understand how it works and I really admire this piece of art you did.
So, like into a car, you can put different engines to run, hahaha.

That's super, but I have not the slightest ideea how to assemble my "TLE engine".
I'm not a coder, and still I have to study and test a bit this entry strategy using ZigZag. More, I have no ideea how to read a repainting indicator, I think I have seen somewhere a piece of code for reading this into an EA, I'm gonna look for it...
I don't say
  • Post #168
  • Quote
  • Sep 12, 2011 8:48pm Sep 12, 2011 8:48pm
  •  sidhujag
  • Joined Apr 2009 | Status: Non-Member | 4,699 Posts
Quoting jmw1970
Disliked
The market read will be replaced automatically by NA if the UseMarketRead flag is set to false, this has to be set to true to use market read, otherwise no matter how many times you press the button it will always return to NA

you are correct, i didn't design the T101 price indi, and I like you are somewhat frustrated by the inability to get a true pip reading.

To be honest I have not examined the code of the indi that much (apart to put in my fix) and am not sure how this weighting coding works

for instance I know that the wicks (hi / lo) are...
Ignored
John,

I have set UseMarketRead to true before trying this. So am I supposed to be able to change the value by going to object properties and setting to the tag shown in the pdf.. ie: "Short" for trading short only? Or do I replace it with 2 for Short.

What do you mean the hi/low wicks are not always achieved? I ran across multiple brokers and the indi seemed to be pretty stable +- a few hundred points across all brokers.

The UseWeighting should do exactly that... it has a function called GetTickValue() which gets the tick value for each pair based on your account base currency. It then adds all the weights together:

if (UseWeighting) {
double weight_calc=0;
for(int j = 0; j < length; j++) {
weight_calc = weight_calc + GetTickValue (Pair[j],i);
}
}

Then finds the mean average of all the weights and applies it to each pair.
A bit of a elegant solution to the problem but very confusing. This is because each tick will run all pair's calculations every time so averaging had to be done to avoid cluttered code:

if (UseWeighting) {
double weight=GetTickValue (Pair[j],shift)/weight_calc;

A_Pair[j] = A_Pair[j]*weight;
A_Pair_H[j] = A_Pair_H[j]*weight;
A_Pair_L[j] = A_Pair_L[j]*weight;
A_Pair_O[j] = A_Pair_O[j]*weight;
A_Pair_V[j] = A_Pair_V[j]*weight;
}

Thanks,
Jag
  • Post #169
  • Quote
  • Sep 12, 2011 8:58pm Sep 12, 2011 8:58pm
  •  jmw1970
  • Joined Sep 2010 | Status: Trader & MQL Coder | 776 Posts
there is no need to go into object properties,

if you have left the default fonts, then all "buttons" are displayed in a digital face - market read is a button

so long as you have UseMarketRead set to true, then you can "press" the market read button and it will cycle through the options.

For me I noticed when using 14 pair basket, the wick on the current candle (both upper & lower) would suddenly extend further without the bid line actually going there, it always seemed to be ok within the candle body but it was something i noticed with the wicks

regarding the weighting - be aware the weighting is only the weighting at this point in time, not the weighting when the candle was created - if you have a USD acct. for instance all the pair crosses that don't have usd in them will be affected by this weighting, but as the weighting is based on exchange rate it will of course change

regards, john



Quoting sidhujag
Disliked
John,

I have set UseMarketRead to true before trying this. So am I supposed to be able to change the value by going to object properties and setting to the tag shown in the pdf.. ie: "Short" for trading short only? Or do I replace it with 2 for Short.

What do you mean the hi/low wicks are not always achieved? I ran across multiple brokers and the indi seemed to be pretty stable +- a few hundred points across all brokers.

Jag
Ignored
  • Post #170
  • Quote
  • Sep 12, 2011 10:39pm Sep 12, 2011 10:39pm
  •  sidhujag
  • Joined Apr 2009 | Status: Non-Member | 4,699 Posts
Quoting jmw1970
Disliked
there is no need to go into object properties,

if you have left the default fonts, then all "buttons" are displayed in a digital face - market read is a button

so long as you have UseMarketRead set to true, then you can "press" the market read button and it will cycle through the options.

For me I noticed when using 14 pair basket, the wick on the current candle (both upper & lower) would suddenly extend further without the bid line actually going there, it always seemed to be ok within the candle body but it was something i noticed with...
Ignored
Aahh gotcha!.. yea I wouldn't worry about the price/pip too much so long as you use some conservative MM you should be ok.

You're right in that weighting will have effects for running trades, however for the ticks they are applied based on an offset when it is drawing the candles in the indicator so previous candles are affected.

Anyways great job on the code again.. I look forward to creating some strategies for everyone to share. The best thing I can think of to do is look for S/R and apply some kind of risk management around levels with a trend bias based on your own analysis. With this I think as long as you stick to your rules you can make money.
  • Post #171
  • Quote
  • Sep 13, 2011 4:42am Sep 13, 2011 4:42am
  •  jmw1970
  • Joined Sep 2010 | Status: Trader & MQL Coder | 776 Posts
basket (8 pair) sell, entered on sell stop
Attached Image (click to enlarge)
Click to Enlarge

Name: whole screen.gif
Size: 103 KB
  • Post #172
  • Quote
  • Sep 13, 2011 5:47am Sep 13, 2011 5:47am
  •  kgblock
  • | Joined Mar 2011 | Status: Member | 24 Posts
Very nice thank you. I really like it, but did not manage the technical part.
I got here:
http://img5.imagetwist.com/i/00506/uzz63x3851yl.JPG

And I do not know the way forward.. But I would hate to bother you.
I've not worked with offline chart.
But I am very happy for any advice, because I like it too.
If I was a fool for you, and you not have time, so I will not be angry.
It is quite difficult, but I want to learn.
101 I understand marketing.
Thank you very much for your time
  • Post #173
  • Quote
  • Sep 13, 2011 5:51am Sep 13, 2011 5:51am
  •  jmw1970
  • Joined Sep 2010 | Status: Trader & MQL Coder | 776 Posts
first of all, switch the chart to candles, I cannot see anything with a line chart

although at first glance, i would suggest

stop mt4
using explorer go into your mt4 installation / history / your server / and delete the ##T101## files

then restart mt4

you should get a screen then like the ones i have been posting

Quoting kgblock
Disliked
Very nice thank you. I really like it, but did not manage the technical part.
I got here:


And I do not know the way forward.. But I would hate to bother you.
I've not worked with offline chart.
But I am very happy for any advice, because I like it too.
Ignored
  • Post #174
  • Quote
  • Sep 13, 2011 5:53am Sep 13, 2011 5:53am
  •  dragosd1
  • | Joined Feb 2008 | Status: Member | 572 Posts
Quoting kgblock
Disliked
Very nice thank you. I really like it, but did not manage the technical part.
I got here:
http://img5.imagetwist.com/i/00506/uzz63x3851yl.JPG

And I do not know the way forward.. But I would hate to bother you.
I've not worked with offline chart.
But I am very happy for any advice, because I like it too.
If I was a fool for you, and you not have time, so I will not be angry.
It is quite difficult, but I want to learn.
101 I understand marketing.
Thank you very much for your time
Ignored
Reload the Heiken_Ashi indi on this chart, then restart Mt4, it should look fine after.
I don't say
  • Post #175
  • Quote
  • Sep 13, 2011 6:05am Sep 13, 2011 6:05am
  •  jmw1970
  • Joined Sep 2010 | Status: Trader & MQL Coder | 776 Posts
Dear All

I have found a small cosmetic (no problem with the logic) but when NOT using basket 14

when a basket is open sometimes it will not show all the pairs current profit / loss

This is a one line fix, that has been changed for the next upload.

For people who are not using Basket 14 who wish to have fix this in their version do the following:-

Find the following code in the bot, it is in the Show_Pair_Rankings() function.

Inserted Code
   // First of all get rid of any pairs that no longer have an order 
   ArrayCopy(PairRank3,PairRank,0,0,WHOLE_ARRAY);
   ArraySort(PairRank,0,0,MODE_DESCEND);
   ArrayInitialize(PairRank2,(-1));
   i2 = 0;
   for (i=0; i<PairsInBasket; i++)
      if (PairRank[i][1] != -1)
         {
         PairRank2[i2][0] = PairRank[i][0];
         PairRank2[i2][1] = PairRank[i][1];
         i2++;
         }

and change the ONE line so that it looks like this (changed line in red)

Inserted Code
   // First of all get rid of any pairs that no longer have an order 
   ArrayCopy(PairRank3,PairRank,0,0,WHOLE_ARRAY);
   ArraySort(PairRank,0,0,MODE_DESCEND);
   ArrayInitialize(PairRank2,(-1));
   i2 = 0;
[color=Red]   for (i=0; i<MaxPairs; i++)
[/color]      if (PairRank[i][1] != -1)
         {
         PairRank2[i2][0] = PairRank[i][0];
         PairRank2[i2][1] = PairRank[i][1];
         i2++;
         }

as mentioned, this bug does not affect logic and does not need to be applied if you are using Basket 14

Regards, John
  • Post #176
  • Quote
  • Sep 13, 2011 6:18am Sep 13, 2011 6:18am
  •  bluewing
  • | Joined Apr 2009 | Status: Member | 15 Posts
hi & good day,
still unable to catch-up with these functions. can someone help. yes i know its pretty basic but yet I'm stuck at this. for example with 0.01 lot size I want the basket to close at 8 USD (TP), what will be the setting? I've change the defaultTPvalue from 100 USD to 8 USD but when load it, the amount 100 USD still there instead of 8 USD. or maybe I miss something here.


rgds,
nahmy
  • Post #177
  • Quote
  • Sep 13, 2011 6:38am Sep 13, 2011 6:38am
  •  kgblock
  • | Joined Mar 2011 | Status: Member | 24 Posts
Thank you very much.
Graf appeared.
Now we need to understand just why 3 scripts are and 2 indicators.
When I click on the indicator, nothing happens. But they are running on a chart.
You are very kind to help me.
I try to open a shop and I do not know it.
Once again thanks very much

http://img5.imagetwist.com/i/00506/9qud3w1j98rz.JPG
  • Post #178
  • Quote
  • Sep 13, 2011 6:43am Sep 13, 2011 6:43am
  •  jmw1970
  • Joined Sep 2010 | Status: Trader & MQL Coder | 776 Posts
the default tp value is used when one hasn't previously be set, ie. first time only

once a tp has been set then the only way to change it is via F3

press F3 and look for the variable name !T101 Take Profit Value

change this to 8usd

I will make a change to the bot for the next release that it ALWAYS resets the global variables on reload to the defaults (except the current trailing value - otherwise trailing would be lost on currently open baskets)

regards, John

Quoting bluewing
Disliked
hi & good day,
still unable to catch-up with these functions. can someone help. yes i know its pretty basic but yet I'm stuck at this. for example with 0.01 lot size I want the basket to close at 8 USD (TP), what will be the setting? I've change the defaultTPvalue from 100 USD to 8 USD but when load it, the amount 100 USD still there instead of 8 USD. or maybe I miss something here.


rgds,
nahmy
Ignored
  • Post #179
  • Quote
  • Sep 13, 2011 6:45am Sep 13, 2011 6:45am
  •  jmw1970
  • Joined Sep 2010 | Status: Trader & MQL Coder | 776 Posts
you really need to read the 2 manuals

all this is explained in both manuals

i have no problem in helping you get the screen looking at least correct - BUT i will not spend time answering queries which I have already explained in the manuals



Quoting kgblock
Disliked
Thank you very much.
Graf appeared.
Now we need to understand just why 3 scripts are and 2 indicators.
When I click on the indicator, nothing happens. But they are running on a chart.
You are very kind to help me.
I try to open a shop and I do not know it.
Once again thanks very much
Ignored
  • Post #180
  • Quote
  • Sep 13, 2011 6:47am Sep 13, 2011 6:47am
  •  dragosd1
  • | Joined Feb 2008 | Status: Member | 572 Posts
Ok, has happened twice today, so it's not me...
Bot has closed 2 sets on it's own will, even if use of TLE is denied in settings...both in loss. No ideea why this is happening, maybe I should remove TLE's from indis? See if happens again?

And, yes, it's the V2 release...
I don't say
  • Commercial Content
  • /
  • T101 Basket Trader with ONE of Nanningbob's Balls
  • Reply to Thread
    • 1 78Page 91011 33
    • 1 8Page 910 33
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2021