Auftrag beendet
Spezifikation
What I require is a break-of-trendline-alert made from the indicator Sub-window trendline alert. Below is a copy paste from some of the notes to this indicator if it is opened in meta-editor.
It explains what the indicator shows and how it is modified to fit other indicators.
The job is to modify the indicator Sub-window trendline alert and make two almost identical indicators, so that the stochastic data in the original is removed, and exchanged with data from
Complex_Pairs1 in the first indicator and the other is displaying data from the cluster indicator CFP. In addition both indicators needs a built/in email alert function.
The new indicator Complex_Pairs1 Trendline Alert
1) Must be hardcoded to display and use data from the indicator Complex_Pairs1.
2) Must have the same options to make external adjustments the indicator as complex_pairs1.
3) Must have the option for sending an email alert when the trendline is broken, as well as the option for popup and sound alerts.
The new indicator CFP Trendline Alert
1) Must be hardcoded to display and use data from the indicator CFP.
2) Must have the same options to make external adjustments the indicator as CFP.
3) Must have the option for sending an email alert when the trendline is broken, as well as the option for popup and sound alerts.
I'm running on a tight budget, and the notes in the coding of "sub-window trendline alert" suggests that this should be and easy job. Good offers are appreciated.
Regards
Tomas Thormann
Below is a copy paste from some of the coding of sub-window trendline alert (see the highlighted section).
««« FUNCTION OF INDICATOR: »»»»»»»»»»»»»»»»»»»»»
This needs dll to be turned on for the message box to work.
Trend line will not draw untill the window has been scaled. which when appling the indicator
to the chart for the first time it will take 2 incoming ticks to set the scale, as a result
the trend line may take a few seconds to show. There-after when making changes in the dialog
box etc.. The tendline will be draw instancely.
This trend line can be used as either a vertical or horizontal alert line as well as in its
typical style.
The alert trigger will active only once even in real time that is if the data line crosses
the trend line and goes back under it. it will trigger only once the first time it crosses.
If it goes under it and recrosses it will not trigger the second time. To reset the trigger
you must move the trend line even if you put it back in the same place it will reset. When
the trend line is first drawn in its default location the alert will not trigger untill you
move the line that will active the alerts function. When moving the trend line as in manually
draging it accross the data line it will not trigger emeandiately as there is a delay set
so the trigger will not get in the way when your tring to move the line, if you want to have
the trigger to go off by simply dragging it accross the data line then set 'TimeDelay'
parameter in the DEFAULT ATTRIBUTES: section to zero. This will turn off the delay. The
default is set to 30 which is in seconds and the largest delay is 60 seconds. Over that
we would miss movement on the one minute bar.
This code is hard coded with the built in iStochastic() indicator, parameter for it can
be changed with-in the DEFAULT ATTRIBUTES: section. Also if one wants these parameters
to be exposed as external all one has to do is add the keyword 'extern' above the type
declarations.
CreateData( );
If one wants to change the indicator from the stochastic, it can be done within the above
function. This can be done easily by hard coding in a different builtin indicator or a
custom indictor with the use of the iCustom() function. This can be done by any one with
just a little experience.
Other prarmeters that may need explaining are;
ValueOnClose = False;
This setting will set the alert function to trigger at the close of the bar on which the
cross occured. Therefore, any crosses in real time will not trigger if at the close the
data line crosse back. This is to alert you only when it is crossed and will not change.
CrossAbove = True;
This parameter tells the alert function if you want an alert when the data line crosses
Above the trend line. When set to False, it will reverse the alert to indicate when the
data line crosses Below the trend line.
RingCount = 2;
This parameter sets the number of times you want the alert sound wave to play, defalt is
two. but you can set it to any number you want up to 20. Remember that a high number can
be real pain. The sounds are tick based so there is no set time between them it will
depend on incoming ticks to set it off. They can be fast or real slow. Also no matter
what this variable is set to it can not be smaller then 1 or higher then 20. Numbers
out side of this boundary will default to its nearest limit.
The alert box will show up only once on an alert trigger not matter what RingCount is
set too. If you ckick the ok buttom but the RingCount has not completed yet it will not
display the box again untill the trend line is reset by moving it to a new location.