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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Scripts for Limit entry, Stop entry, Market entry 46 replies

TDI-ADX System (swing trading using TDI) 116 replies

Triple TDI alert and email 0 replies

Easy Does It off the TDI indicator - EDI TDI 134 replies

Entry and Exit Strategy any good? 5 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 21
Attachments: TDI breakout alert - for entry/exit
Exit Attachments
Tags: TDI breakout alert - for entry/exit
Cancel

TDI breakout alert - for entry/exit

  • Last Post
  •  
  • Page 1 23 4
  • Page 1 23 4
  •  
  • Post #1
  • Quote
  • First Post: Feb 11, 2011 2:52pm Feb 11, 2011 2:52pm
  •  bodisatva
  • | Joined Dec 2010 | Status: Member | 154 Posts
Plz see the picture, the request and the description is there
Attached Image (click to enlarge)
Click to Enlarge

Name: tdi.gif
Size: 35 KB
- May Buddha bless you.
  • Post #2
  • Quote
  • Feb 11, 2011 8:23pm Feb 11, 2011 8:23pm
  •  hanover
  • Joined Sep 2006 | Status: ... | 8,092 Posts
Quoting bodisatva
Disliked
Plz see the picture, the request and the description is there
Ignored
Try replacing your TDI indicator with the attached one. I won't be able to test it fully until the market opens again on Monday.

The new parameters work like this:

ChartAlerts: if true, sends the usual audible/visual alert to your MT4 chart.

EmailSubject: if non-blank, will send an e-mail to you with your entered text as the e-mail subject (but you must first press Ctrl-O, and complete the Email panel correctly). Email can also be re-routed to your cellphone - talk to your telecoms provider.

Alert0.....Alert9: you can set up to 10 independently operating alerts.

The format for each of these is as follows:
alert msg, condition1, condition2, condition3, ...... , condition10
i.e. up to 10 conditions may follow the alert message, separated by commas

For the alert to be triggered, ALL of the conditions must be met on the candle that's just completed, and at least one of the conditions must not have been met on the candle just prior to that.
The full alert text that gets displayed is: TDI ([symbol],[timeframe]) : alert msg

A condition can be any one of:
item1 > item2
item1 < item2
item1 >= item2
item1 <= item2


The items being compared can be any one of:
Y : the yellow line
G : the green line
R : the red line
U : the upper blue line
L : the lower blue line
a number between 0 and 100

These characters can be upper or lowercase, and you can include embedded spaces for improved readability, if you wish.

The default parameters have been set up for your requirements (assuming that I've understood correctly), i.e.

Alert 0: message: "buy", condition1: G>U
Alert 1: message: "exit long", condition1: G<U
Alert 2: message: "sell", condition1: G<L
Alert 3: message: "exit short", condition1: G>L

However, suppose you want to buy only if the green crosses above the upper blue line while the yellow line > 50. Then you'd change it like this:

Alert 0: buy, G>U, Y>50

Hope that makes sense.

I'll test the indicator more thoroughly when the market is open.
Attached File(s)
File Type: mq4 TDI alerts.mq4   80 KB | 4,027 downloads
 
 
  • Post #3
  • Quote
  • Feb 12, 2011 8:26am Feb 12, 2011 8:26am
  •  bodisatva
  • | Joined Dec 2010 | Status: Member | 154 Posts
Quoting hanover
Disliked

A condition can be any one of:

item1 >= item2
item1 <= item2
Ignored
Yes, I will test it also at market time. Could you explain the above conditions? Maybe you can give some example on a picture when I should use >= or <=.

According to the philosophy of the TDI creator when the channel is too narrow one should not do any trading. To create alert for that would be really difficult I guess.
- May Buddha bless you.
 
 
  • Post #4
  • Quote
  • Feb 12, 2011 8:34am Feb 12, 2011 8:34am
  •  bodisatva
  • | Joined Dec 2010 | Status: Member | 154 Posts
Hi Hanover,

one more question.

There is the 50 line but there is also the middle blue line that is an MA I guess. If I want to make an alert to trade let say the G>R but above the middle blue line what code should I use then?

tnx
- May Buddha bless you.
 
 
  • Post #5
  • Quote
  • Feb 12, 2011 3:43pm Feb 12, 2011 3:43pm
  •  hanover
  • Joined Sep 2006 | Status: ... | 8,092 Posts
Quoting bodisatva
Disliked
Hi Hanover,

one more question.

There is the 50 line but there is also the middle blue line that is an MA I guess. If I want to make an alert to trade let say the G>R but above the middle blue line what code should I use then?

tnx
Ignored
The colors in your screenshot are different to mine. I started with Dean Malone's original TDI indy. If you attach the indy that I posted, you'll notice that the middle line is yellow, and the two outer bands are blue. The RSI line is green, and its signal line is red. Those lines correspond to the Y, U, L, G and R parameter settings, respectively.

Don't worry about the >= (greater than or equal to) and <= (less than or equal to) operators. I doubt that anyone will ever use them. I could take them out of the indy if they're too confusing.

I don't know how one would define a 'channel too narrow' condition. I don't use TDI myself.
 
 
  • Post #6
  • Quote
  • Mar 7, 2011 4:14am Mar 7, 2011 4:14am
  •  johnsund
  • | Joined Oct 2009 | Status: Member | 140 Posts
Hanover - did you get a chance to test this? I am just getting it set up on several pair and several timeframes. It is exactly what I was looking for. Have you found any bugs? Thanks.
 
 
  • Post #7
  • Quote
  • Edited 4:16pm Mar 7, 2011 3:17pm | Edited 4:16pm
  •  hanover
  • Joined Sep 2006 | Status: ... | 8,092 Posts
Quoting johnsund
Disliked
Hanover - did you get a chance to test this? I am just getting it set up on several pair and several timeframes. It is exactly what I was looking for. Have you found any bugs? Thanks.
Ignored
John, I've read your PMs. I hope you don't mind my replying publicly. Two reasons for doing so: (1) this may be of interest to the 70+ people who've downloaded the indy, and (2) one can't attach material to PMs.

If I understand correctly, you have the settings as follows:
Alert0 = buy,G>R,G>Y,G>50
Alert1 = sell,G<R,G<Y,G<50

It's going to be very difficult to reproduce the problem you described, namely that the alerts work on some charts but not others. I will need to find charts of my own where the same conditions change on the candle that's just been completed.

I guess you realize that, for the alert to trigger, the following must apply: A new candle just begins to form (candle #0). The candle on it's immediate left (that's just completed) is candle #1, and the candle to its immediate left is candle #2. Now for the alert to trigger, ALL of the conditions must apply on candle #1, and at least one of the conditions must NOT apply on candle #2.

So, for example, if only G>R and G>Y conditions apply on #2, and then the condition G>50 is also met on #1 (while G>R and G>Y also remain good) when it completes, then the BUY alert should sound immediately #1 completes and #0 starts to form.

(Note: the indy that I posted is not 'intelligent' enough to test, and act upon, WHICH condition changed on candle #1, that ultimately caused all of them to be met. ANY one of the conditions will do.)

I don't understand what you mean when you say "When I loaded the indicator got 56 warnings when I pressed F5 to collate (I think that is the correct term)."

Immediately you attach ANY indy to your chart, or if you edit the indy's settings (press Ctrl-I etc), or change either the currency pair or the timeframne of the chart, the indy will reset itself. That's a MT4 feature/limitation that can't be avoided. When the TDI indy resets itself, it checks for alerts, just as if candle #1 had just completed and candle #0 is starting to form. Hence you could have alerts trigger when you attach the indy, because the conditions are met on the current state of candles #1 and #2. Perhaps that's what you mean by the "56 warnings"?

The NZDUSD,H4 screenshot below is an example. I got a SELL alert upon attaching the indy because all conditions are met on #1 (the green line has fallen fractionally below the red line), but G<R is not met on #2.

I hope this makes sense. I don't use TDI myself, so I'm not conversant with Dean Malone's strategies. I've tested the indy as best I can (I use Win XP, I can't test on Win 7 or Vista, BTW) and as far as I can tell, it works correctly, given that the above is understood. If it works on one chart (pair/timeframe), it should work on all of them, because it's the same code and each instance operates completely independently of the others.

However, I haven't tried attaching multiple instances of the indy to the same chart (but why would anybody want to do this, since you can set up multiple alerts in the same instance?)

If you can give me an example (pair/timeframe) where the indy is failing to alert when it should, or vice versa, then that will give me a starting point. Even if the candles have long since past (e.g. candle #8 meets all the criteria, but candle #9 doesn't), I can still test this easily enough. Let's just hope that our br0ker's OHLC data is similar enough, to allow the error to be reproduced.

Thanks,
David

[EDIT]
To answer your specific questions:
Does an alert trigger just once even though conditions continue to be met at the close of subsequent candles?
Or should an alert be generated whenever an alert condition continues to be true, regardless of whether it triggered previously?

No, the alert should trigger only once, as explained above.
Attached Image (click to enlarge)
Click to Enlarge

Name: johnsund1.JPG
Size: 81 KB
 
 
  • Post #8
  • Quote
  • Mar 7, 2011 4:27pm Mar 7, 2011 4:27pm
  •  johnsund
  • | Joined Oct 2009 | Status: Member | 140 Posts
Thanks for such a detailed response. You have hit the nail on the head in that when changing timeframes or adding pairs there is in effect a reset of the indicator, and therefore triggering an alert if the conditions you describe are met. I believe that it is working as designed and is doing what I need it to do. I found that out by having more alerts trigger than I could possibly utilize. Through trial and error I have found that the simpler the parameters that are set up the better. I was getting way too many alerts when using those described in my original PM. Have ended up with very simple parameters:

Alert to cell phone when green > 50 for long.
Alert to cell phone when green < 50 for short.

Using these simple parameters allows you to be alerted that THE primary parameter has been met without triggering alerts that do you no good if you want to follow Dean Malone's conservative approach of green > red > yellow > 50 on the TDI for long and opposite for short. This is because price crossing 50 is usually the last of the sequence to occur.

I should have asked the questions in public rather than via PM. Thanks again for your help and this very valuable indicator.
 
 
  • Post #9
  • Quote
  • Edited 9:12pm Mar 20, 2011 8:47pm | Edited 9:12pm
  •  michaelwen
  • | Joined Feb 2010 | Status: Member | 99 Posts
Quoting hanover
Disliked
John, I've read your PMs. I hope you don't mind my replying publicly. Two reasons for doing so: (1) this may be of interest to the 70+ people who've downloaded the indy, and (2) one can't attach material to PMs.

If I understand correctly, you have the settings as follows:
Alert0 = buy,G>R,G>Y,G>50
Alert1 = sell,G<R,G<Y,G<50

It's going to be very difficult to reproduce the problem you described, namely that the alerts work on some charts but not others. I will need to find charts of my own where the same conditions change on the...
Ignored
hello Hanover. thanks for this great indicator with alert. make us so much easy to spot the trade. and please see the attach. the problem that I have is , the alert did not sound and no pop out message when the all conditions appear. ( Alert 0: Buy G>R, G>50) . but when I refresh the chart . the alert and pop out message works. so what I am ask is dose this Alert have refresh problem? thanks
ops..... I might just solve my own problem. the alert and message show up at begin of new bar. so. I figure the alert only appear at begin of new bar. right?
Attached Image (click to enlarge)
Click to Enlarge

Name: usdjpy.jpg
Size: 90 KB
 
 
  • Post #10
  • Quote
  • Mar 20, 2011 9:00pm Mar 20, 2011 9:00pm
  •  johnsund
  • | Joined Oct 2009 | Status: Member | 140 Posts
Have been using your indicator with good results. Helps tremendously. A few abbrerations are showing up. Even though have not changed or added to a chart in any way an alert pops up that is true but in some prior time period. Could you please check the code to see if there is some cause of this occurence. It does not happen too often, but with some regularity.

Also, is it persmissable to have an alert like this with more than 1 conditon:

buy,G>R,G>50 meaning that you get a buy alert when both conditions of green over red and green over the 50 line are true. Right now I have seperate conditions in forms like these:

G>R, G>R meaning I get an alert when green is above red with the message as "TDI (EURUSD,M15) : G>R
G>50,G>50 meanining I get an alert when green crosses 50 line with the message as "TDI(EURUSD,M15) : G>50

So my basic question is can you have more than 1 condition in a string so that for an alert to trigger all of the conditions in the string must be true?

Thanks for your help. Have passed along a link to this thread on others and several are using it.
 
 
  • Post #11
  • Quote
  • Mar 20, 2011 9:28pm Mar 20, 2011 9:28pm
  •  hanover
  • Joined Sep 2006 | Status: ... | 8,092 Posts
Quoting michaelwen
Disliked
I figure the alert only appear at begin of new bar. right?
Ignored
Yes, that's correct. That's because you wouldn't want the alert to sound or e-mail you repeatedly on every price tick, just because the necessary conditions continue to be met (on the same bar).
 
 
  • Post #12
  • Quote
  • Mar 20, 2011 9:42pm Mar 20, 2011 9:42pm
  •  hanover
  • Joined Sep 2006 | Status: ... | 8,092 Posts
Quoting johnsund
Disliked
Have been using your indicator with good results. Helps tremendously. A few abbrerations are showing up. Even though have not changed or added to a chart in any way an alert pops up that is true but in some prior time period.
Ignored
Not sure what you mean by "in some prior time period". Does this mean the previous timeframe that you had the chart (e.g. M30), but you've now changed the timeframe (e.g. H1), yet you're still getting alerts that would apply to M30 happening on the H1 chart?

Quoting johnsund
Disliked
Also, is it persmissable to have an alert like this with more than 1 conditon:
Ignored
Here is an example of how it works (or at least, is supposed to work):

Alert0 = buy, G>50, R>50
Alert1 = buy, G>50, G>Y

Alert0 will trigger if both G>50 and R>50 for the most recently completed candle (#1), but at least one of these conditions doesn't apply in candle #2.

Alert1 will trigger if both G>50 and G>Y for the most recently completed candle (#1), but at least one of these conditions doesn't apply in candle #2.

Both Alert0 and Alert1 operate completely independently of each other. Hence, at the start of a new candle, you could potentially get either one of the alerts, or none, or both.

Hence it is effectively making the following statement:
IF (G>50 AND R>50) OR (G>50 AND G>Y) THEN BUY

For more info, see my earlier post (#7).

David
 
 
  • Post #13
  • Quote
  • Mar 21, 2011 4:43am Mar 21, 2011 4:43am
  •  michaelwen
  • | Joined Feb 2010 | Status: Member | 99 Posts
Quoting hanover
Disliked
Yes, that's correct. That's because you wouldn't want the alert to sound or e-mail you repeatedly on every price tick, just because the necessary conditions continue to be met (on the same bar).
Ignored
hanover, please take look at attach chart. 1 hr. your indicator set as : Alert 0= sell, G<R,G<50.
I keep the chart open since first of last three red bars. and at open of the third red bar , all the sell condition appear. but did not have alert sound and pop message show up. after I wait for 5 Min , still nothing. so I hit refresh botton of MT4. then the sell alert and pop message show up as TDI (EURGBP,1Hr) :sell.
from my last post question, about refresh problem. any idea? thanks.
and also another question. TDI green touch 50 line from open of second red bar, is that possible to make alert as soon as G<50,G<R appear, not wait for the bar close? thanks
Attached Image (click to enlarge)
Click to Enlarge

Name: eg.jpg
Size: 86 KB
 
 
  • Post #14
  • Quote
  • Mar 21, 2011 6:04am Mar 21, 2011 6:04am
  •  hanover
  • Joined Sep 2006 | Status: ... | 8,092 Posts
Quoting michaelwen
Disliked
hanover, please take look at attach chart. 1 hr. your indicator set as : Alert 0= sell, G<R,G<50.
I keep the chart open since first of last three red bars. and at open of the third red bar , all the sell condition appear. but did not have alert sound and pop message show up. after I wait for 5 Min , still nothing. so I hit refresh botton of MT4. then the sell alert and pop message show up as TDI (EURGBP,1Hr) :sell.
from my last post question, about refresh problem. any idea? thanks.
and also another question.
Ignored
I can't test the indy retrospectively, as per your chart, because the situation has already been and gone. It is too late.

However, I've just spent about 30 minutes testing the indy on an M1 chart, to ensure that there are plenty of signals without a refresh. As far as I can tell, it is working exactly as I described in posts #7 and #12, i.e. it generated plenty of alerts without the need to refresh. Please read these posts and make sure that you understand them. The concepts are not easy, but I've attempted to explain them as clearly as I can.

In MT4, ANY indy will always reset itself if you do any of the following:
1. Change either the currency pair, or the timeframe.
2. Re-attach the indy to the chart.
3. Edit the indy's settings (press Ctrl-I etc).

If you do any of these, the mechanism that counts whether the alert has triggered for the current bar gets reset, hence this will cause the alert to trigger again.

Quoting michaelwen
Disliked
TDI green touch 50 line from open of second red bar, is that possible to make alert as soon as G<50,G<R appear, not wait for the bar close? thanks
Ignored
I've modified the indy (attached), with a new parameter AlertCandle.
--- If you set AlertCandle to 1, it will behave as it did before, i.e. will trigger an alert if the conditions are met for candle #1, immediately the new candle #0 starts to form.
--- However, if you set AlertCandle to 0, it will trigger an alert immediately the conditions are met for candle #0, while it is still in the process of forming.

David
Attached File(s)
File Type: mq4 TDI alerts.mq4   80 KB | 1,952 downloads
 
 
  • Post #15
  • Quote
  • Mar 21, 2011 6:40am Mar 21, 2011 6:40am
  •  hanover
  • Joined Sep 2006 | Status: ... | 8,092 Posts
When you're satisfied that the indy works correctly, you're ready to move up to the advanced version! This is the version that I wrote for my friend Malcolm.

This is even more complex, so please make sure that you understand all of the concepts in posts #7 and #12 before you even consider reading on.

The advanced version includes these further concepts:

1. Instead of using tokens like G, Y, etc you now use G0, Y1, etc. G0 means the "value of the green line at candle #0", Y1 means the "value of the yellow line at candle #1", and so on. Hence you can now include tests like Y1>Y6, to test "if the yellow line has risen during the period of the last 5 completed candles".

An alert triggers immediately the condition(s) are met.

--- Hence G0>Y0 (assuming it's the only condition) will trigger an alert as soon as the green line crosses above the yellow line on the currently forming candle #0 (and provided that this condition wasn't met on the previous candle: #1).

--- While G1>Y1 (assuming it's the only condition) will trigger an alert if the condition is met for candle #1 (and provided that this condition wasn't met on the previous candle: #2), immediately the new candle #0 starts to form.

In other words, this takes the same facility provided by the AlertCandle as described in post #12, but extends the concept beyond candles #0 and #1.


2. The AnyCondChange parameter:

--- if TRUE, then the indy behaves exactly the same as described in post #7.
In other words, if ANY of the stated condition(s) change, an alert will trigger,
e.g. G1>R1, G1>Y1, Y1>50
would trigger an alert if all 3 conditions are met on candle #1, but at least one of them was not met on candle #2.

--- if FALSE, the first listed condition is the one that must change, in order to trigger the alert, while all of the other conditions continue to hold good. Using the same example:
e.g. G1>R1, G1>Y1, Y1>50
would trigger an alert only if the G1>Y1 and Y1>50 conditions were met on both candles #2 and #1, but the green line rose from below the red line on candle #2, to be above the red line on candle #1.

Hope that makes sense! I'm pretty sure that it all works 100%, as Malcolm has been using it for well over a month now, and I haven't heard from him to the contrary.

David
Attached File(s)
File Type: mq4 TDI alerts advanced.mq4   81 KB | 3,943 downloads
 
 
  • Post #16
  • Quote
  • Mar 21, 2011 6:52am Mar 21, 2011 6:52am
  •  johnsund
  • | Joined Oct 2009 | Status: Member | 140 Posts
David - that is a great addition to the indicator. It is especially helpful on the M30 and above where waiting for the previous candle to close can cause missed opportunities. Thanks for your help.
 
 
  • Post #17
  • Quote
  • Mar 21, 2011 7:19am Mar 21, 2011 7:19am
  •  johnsund
  • | Joined Oct 2009 | Status: Member | 140 Posts
David - out of curiosity what indicators do you use? Can you post a chart please. Thanks for all you do.
 
 
  • Post #18
  • Quote
  • Edited 7:49am Mar 21, 2011 7:22am | Edited 7:49am
  •  michaelwen
  • | Joined Feb 2010 | Status: Member | 99 Posts
David, thanks a lot! super!
Hanover, my understanding is TDI Alert ,ONLY alert ONCE, and Once Only, untill the next time all the preset condition been appear again. between two alert . when you change TF, refresh, add indi,ETC, those thing only will trigger the alert again, and this alert , it is alert been Trigger at pass bar where all the condition been meet. Not current bar volid for the alert. right?
another favor need ask. could you add Alert not only once, but make it is repeat for 1 Min if no action take. sometimes I was read bood or watch movie during the waiting. so only one Alert maybe can miss that sound. ( I am use the second TDI Alerts. the one you can change AlertCandle o/1) thanks again.
 
 
  • Post #19
  • Quote
  • Mar 21, 2011 8:12am Mar 21, 2011 8:12am
  •  hanover
  • Joined Sep 2006 | Status: ... | 8,092 Posts
John, Michael,

I will answer your latest posts tomorrow. It's after 1 a.m. here in New Zealand, and I'm heading off to bed !!

David
 
 
  • Post #20
  • Quote
  • Mar 21, 2011 10:29am Mar 21, 2011 10:29am
  •  michaelwen
  • | Joined Feb 2010 | Status: Member | 99 Posts
Hanover. just find interest thing happen, take look at attach chart. it is same TDI , at same pair , at same time, on both chart (from #14) I set Alertcondle 0. look at end of TDI picture, the green show different shape. then the alert going be different.
how is happen. I just try to put Yellow line from black color to yellow again, to see where was it at current time. when I hit ok . yellow line come out , but green line change to different shape. any idea? thanks for your works. #14 TDI works great . untill this happen.
Attached Image(s) (click to enlarge)
Click to Enlarge

Name: eg.jpg
Size: 114 KB
Click to Enlarge

Name: eg1.jpg
Size: 113 KB
 
 
  • Platform Tech
  • /
  • TDI breakout alert - for entry/exit
  • Reply to Thread
    • Page 1 23 4
    • Page 1 23 4
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 / ©2023