Trading Systems Coding: Introduction
Trading Systems Coding: Introduction
https://www.interactivebrokers.com/en/?f=%2Fen%2Ftrading%2Fpdfhighlights%2FPDF-Forex.php
Risk Management
SEO
http://www.semrush.com/siteaudit/guest
http://www.semrush.com/activation_successful.html
http://www.semrush.com/
http://www.seoquake.com/pages/articles.php
https://www.cenopady.cz/
Google PageRank
Zobrazují se příspěvky se štítkemsystem. Zobrazit všechny příspěvky
Zobrazují se příspěvky se štítkemsystem. Zobrazit všechny příspěvky
sobota 27. září 2014
čtvrtek 28. srpna 2014
The Pros And Cons Of Automated Trading Systems
The Pros And Cons Of Automated Trading Systems
The Pros And Cons Of Automated Trading Systems
What Is An Automated Trading System?
Automated trading systems, also referred to as mechanical trading systems, algorithmic trading, automated trading or system trading, allow traders to establish specific rules for both trade entries and exits that, once programmed, can be automatically executed via a computer...
Trading Systems Coding: Introduction
čtvrtek 24. dubna 2014
Current Forex Trading Signals
Current Forex Trading Signals
Introduction to Forex News Gun and Diamonds Trading Signals
Forum: Forex News Gun
Forum: Current Forex Trading Signals - forexpeacearmy.com
Introduction to Forex News Gun and Diamonds Trading Signals
úterý 18. března 2014
BunnyGirl Cross system
BunnyGirl Cross systém
BunnyGirl Cross systém - Obchodní strategie - BunnyGirl
Strategie BunnyGirl
BunnyGirl Cross systém
Bunnygirl Cross Indicator Update
BunnyGirl money management questions
pátek 1. října 2010
Ten Errors of a Newcomer in Trading
Ten "Errors" of a Newcomer in Trading
...Third, ten "errors" of a newcomer in trading described in [1] turn not to be errors at all, but proper steps. Let us look through them one by one [1].
1. Trading when market has just opened
Since we have given up all hope to guess the trend direction, there is no need to wait for a proper moment - we should enter the market as soon as it is feasible. It would also make sense to open two positions of the same volume, but differently directed - a short one and a long one. One of them will gain profits earlier, another one can do it later, when the price returns and goes a profitable direction. At that, at the moment of opening and until either of the two positions is closed, the trade can be 100% hedged, the risk approaches to zero (we can only lose on commission, if any, on spread, and on the difference between the swaps of long and short positions provided it takes more than a day until we close them).
2. Undue hurry in taking profit
It is never too early to take the profit! We will not make our situation worse by this. If we have fixed the profit in, for example, a long position and the price has decreased by a value exceeding the spread+commission, we can buy again – we will be able to double the profit taken on the same segment, but we surely won't lose the profit fixed before! For example, we bought at 1.2300, closed at 1.2340; then the price fell to 1.2320 – buy. If the price goes upagain, we will earn again in the range between 1. 2320 and 1.2340. If we had not fixed the profit at 1.2340, we would have at 1.2320 just twenty unclear pips instead of forty appreciable ones.
3. Adding lots in a losing position
… is sometimes just necessary if a losing position is a result of deviation from mean, i.e., the probability of return to the mean increased. Lots should be added to a posing position, and the further the price goes in a "wrong way", the more lots should be added.
4. Closing positions starting with the best one
This issue has much in common with issue 2. It is better to close profitable positions, not losing ones – the latter ones can become profitable if we don't close them now!
5. Revenge
This feeling does not occur if one does not close losing positions or closes them together with the profitable ones, obtaining a total positive result as it was done in a trading system [4], the test results of which are given at the end of this present article. Besides, only humans can feel revenge. Having created an automated trading system, we will protect ourselves against emotional steps.
6. The most preferable positions
When adding lots to a losing position, the latest "addition" will, of course, be the most preferable. If the price goes on falling (we are now speaking about a long position), we add again. But it is the last "adding" that must give us the total plus – it will be in the very bottom, at the very beginning of a turn.
7. Trading by the principle of 'bought for ever'
Trading by such principle is possible for two reasons. First, as I have already noticed, one should not be in a hurry to close a losing position if even it is very "old" - one should just wait until better time comes (see Clauses 1 and 4). Second, one can earn using swaps – 350% per annum - which is not bad, as well. [3:356]
8. Closing of a profitable strategic position on the first day
Here we repeat Clause 2 – it is never too early to close a profitable position.
9. Closing a position when alerted to open an opposite position
Highly respected Collector in his article [1] does not exclude such a possibility. The author of this present article does not consider this to be an error - it's just an element of a trading system.
10. Doubts
In my opinion, there are no traders without doubts. George Soros said once (rephrasing the Napoleon's well-knwon saying): "One jumps into the market, then figures out what to do next". The idea is ok but the first part - "close all positions". I would rephrase it as follows: Let your PC to manage them and go for a walk.
So, the "Ten Commandments" postulated in [1] or anywhere else by anybody should not be considered as the ultimate truth or a cure-all solution against losses. At present, there is only one way to make fewer mistakes for a beginning or an advanced trader – model his or her own trading systems on his or her PC and check them on historical data – this does not guarantee faultless operations, but arms with accurate computation, not with implicit faith.
Explanation of Trading Strategy ...
more
...Third, ten "errors" of a newcomer in trading described in [1] turn not to be errors at all, but proper steps. Let us look through them one by one [1].
1. Trading when market has just opened
Since we have given up all hope to guess the trend direction, there is no need to wait for a proper moment - we should enter the market as soon as it is feasible. It would also make sense to open two positions of the same volume, but differently directed - a short one and a long one. One of them will gain profits earlier, another one can do it later, when the price returns and goes a profitable direction. At that, at the moment of opening and until either of the two positions is closed, the trade can be 100% hedged, the risk approaches to zero (we can only lose on commission, if any, on spread, and on the difference between the swaps of long and short positions provided it takes more than a day until we close them).
2. Undue hurry in taking profit
It is never too early to take the profit! We will not make our situation worse by this. If we have fixed the profit in, for example, a long position and the price has decreased by a value exceeding the spread+commission, we can buy again – we will be able to double the profit taken on the same segment, but we surely won't lose the profit fixed before! For example, we bought at 1.2300, closed at 1.2340; then the price fell to 1.2320 – buy. If the price goes upagain, we will earn again in the range between 1. 2320 and 1.2340. If we had not fixed the profit at 1.2340, we would have at 1.2320 just twenty unclear pips instead of forty appreciable ones.
3. Adding lots in a losing position
… is sometimes just necessary if a losing position is a result of deviation from mean, i.e., the probability of return to the mean increased. Lots should be added to a posing position, and the further the price goes in a "wrong way", the more lots should be added.
4. Closing positions starting with the best one
This issue has much in common with issue 2. It is better to close profitable positions, not losing ones – the latter ones can become profitable if we don't close them now!
5. Revenge
This feeling does not occur if one does not close losing positions or closes them together with the profitable ones, obtaining a total positive result as it was done in a trading system [4], the test results of which are given at the end of this present article. Besides, only humans can feel revenge. Having created an automated trading system, we will protect ourselves against emotional steps.
6. The most preferable positions
When adding lots to a losing position, the latest "addition" will, of course, be the most preferable. If the price goes on falling (we are now speaking about a long position), we add again. But it is the last "adding" that must give us the total plus – it will be in the very bottom, at the very beginning of a turn.
7. Trading by the principle of 'bought for ever'
Trading by such principle is possible for two reasons. First, as I have already noticed, one should not be in a hurry to close a losing position if even it is very "old" - one should just wait until better time comes (see Clauses 1 and 4). Second, one can earn using swaps – 350% per annum - which is not bad, as well. [3:356]
8. Closing of a profitable strategic position on the first day
Here we repeat Clause 2 – it is never too early to close a profitable position.
9. Closing a position when alerted to open an opposite position
Highly respected Collector in his article [1] does not exclude such a possibility. The author of this present article does not consider this to be an error - it's just an element of a trading system.
10. Doubts
In my opinion, there are no traders without doubts. George Soros said once (rephrasing the Napoleon's well-knwon saying): "One jumps into the market, then figures out what to do next". The idea is ok but the first part - "close all positions". I would rephrase it as follows: Let your PC to manage them and go for a walk.
So, the "Ten Commandments" postulated in [1] or anywhere else by anybody should not be considered as the ultimate truth or a cure-all solution against losses. At present, there is only one way to make fewer mistakes for a beginning or an advanced trader – model his or her own trading systems on his or her PC and check them on historical data – this does not guarantee faultless operations, but arms with accurate computation, not with implicit faith.
Explanation of Trading Strategy ...
more
pátek 20. srpna 2010
pátek 7. května 2010
How To Start An Automated Online Forex Trading System
How To Start An Automated Online Forex Trading System
How To Start An Automated Online Forex Trading System
How To Start An Automated Online Forex Trading System
system
Nejaky mozny system
Dl_Trend
Dl
Dlouhodobý trend
int g_period_76 = 13;
int g_period_80 = 34;
double g_ibuf_84[];
double g_ibuf_88[];
double g_ibuf_92[];
double g_ibuf_96[];
int init() {
SetIndexStyle(0, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexBuffer(0, g_ibuf_84);
SetIndexStyle(1, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexBuffer(1, g_ibuf_88);
SetIndexStyle(2, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexBuffer(2, g_ibuf_92);
SetIndexStyle(3, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexBuffer(3, g_ibuf_96);
IndicatorDigits(Digits + 1);
string ls_0 = "Dlouhodobý trend";
IndicatorShortName(ls_0);
SetIndexLabel(0, ls_0);
SetIndexLabel(1, ls_0);
SetIndexLabel(2, ls_0);
SetIndexLabel(3, ls_0);
return (0);
}
}
int l_ind_counted_20 = IndicatorCounted();
if (l_ind_counted_20 < 0) return (-1);
for (int li_24 = Bars - Max(l_ind_counted_20 - 1, 1); li_24 >= 0; li_24--) {
ld_0 = iMA(NULL, 0, g_period_76, 0, MODE_EMA, PRICE_MEDIAN, li_24) - iMA(NULL, 0, g_period_80, 0, MODE_EMA, PRICE_MEDIAN, li_24);
if (ld_0 > 0.0) {
if ((g_ibuf_84[li_24 + 1] != 0.0 && ld_0 >= g_ibuf_84[li_24 + 1]) || (g_ibuf_88[li_24 + 1] != 0.0 && ld_0 > g_ibuf_88[li_24 + 1])) {
g_ibuf_84[li_24] = ld_0;
g_ibuf_88[li_24] = 0;
} else {
g_ibuf_84[li_24] = 0;
g_ibuf_88[li_24] = ld_0;
}
} else {
if ((g_ibuf_92[li_24 + 1] != 0.0 && ld_0 >= g_ibuf_92[li_24 + 1]) || (g_ibuf_96[li_24 + 1] != 0.0 && ld_0 > g_ibuf_96[li_24 + 1])) {
g_ibuf_92[li_24] = ld_0;
g_ibuf_96[li_24] = 0;
} else {
g_ibuf_92[li_24] = 0;
g_ibuf_96[li_24] = ld_0;
}
}
}
return (0);
}
int Max(int ai_0, int ai_4) {
if (ai_0 > ai_4) return (ai_0);
return (ai_4);
}
Dl_Trend_A (black)
double g_ibuf_76[];
double g_ibuf_80[];
int g_period_84 = 13;
int g_period_88 = 34;
extern bool Alerts = TRUE;
int gi_96 = 0;
int gi_100 = 0;
int init() {
SetIndexStyle(0, DRAW_ARROW, EMPTY);
SetIndexArrow(0, SYMBOL_THUMBSUP);
SetIndexBuffer(0, g_ibuf_76);
SetIndexStyle(1, DRAW_ARROW, EMPTY);
SetIndexArrow(1, SYMBOL_THUMBSDOWN);
SetIndexBuffer(1, g_ibuf_80);
return (0);
}
int deinit() {
return (0);
}
int start() {
int li_0;
double l_ima_4;
double l_ima_12;
double l_ima_20;
double l_ima_28;
double l_ima_36;
double l_ima_44;
double ld_52;
double ld_60;
}
int li_80 = IndicatorCounted();
if (li_80 < 0) return (-1);
if (li_80 > 0) li_80--;
int li_84 = Bars - li_80;
for (int li_88 = 0; li_88 <= li_84; li_88++) {
li_0 = li_88;
ld_52 = 0;
ld_60 = 0;
for (li_0 = li_88; li_0 <= li_88 + 9; li_0++) ld_60 += MathAbs(High[li_0] - Low[li_0]);
ld_52 = ld_60 / 10.0;
l_ima_4 = iMA(NULL, 0, g_period_84, 0, MODE_EMA, PRICE_CLOSE, li_88);
l_ima_20 = iMA(NULL, 0, g_period_84, 0, MODE_EMA, PRICE_CLOSE, li_88 + 1);
l_ima_36 = iMA(NULL, 0, g_period_84, 0, MODE_EMA, PRICE_CLOSE, li_88 - 1);
l_ima_12 = iMA(NULL, 0, g_period_88, 0, MODE_EMA, PRICE_CLOSE, li_88);
l_ima_28 = iMA(NULL, 0, g_period_88, 0, MODE_EMA, PRICE_CLOSE, li_88 + 1);
l_ima_44 = iMA(NULL, 0, g_period_88, 0, MODE_EMA, PRICE_CLOSE, li_88 - 1);
if (l_ima_4 > l_ima_12 && l_ima_20 < l_ima_28 && l_ima_36 > l_ima_44) {
g_ibuf_76[li_88] = Low[li_88] - ld_52 / 2.0;
if (li_88 <= 2 && Alerts && !gi_96) {
SendMail("xxxx", "Dlouhodoby trend nad nulou!!!(Long)" + Symbol());
Alert(Symbol(), " ", Period(), " Dlouhodobý trend nad nulou!!!(Long) ");
gi_96 = TRUE;
gi_100 = FALSE;
}
} else {
if (l_ima_4 < l_ima_12 && l_ima_20 > l_ima_28 && l_ima_36 < l_ima_44) {
g_ibuf_80[li_88] = High[li_88] + ld_52 / 2.0;
if (li_88 <= 2 && Alerts && !gi_100) {
SendMail("xxxx", "Dlouhodoby trend pod nulou!!!(Short)" + Symbol());
Alert(Symbol(), " ", Period(), " Dlouhodobý trend pod nulou!!!(Short) ");
gi_100 = TRUE;
gi_96 = FALSE;
}
}
}
}
return (0);
}
Kr_Trend_D
Trend D
int gi_76 = 21;
extern int CountBars = 3000;
double g_ibuf_84[];
double g_ibuf_88[];
double g_ibuf_92[];
int gi_96;
int g_count_100;
int gi_104;
bool gi_108;
int g_ind_counted_112;
datetime g_time_116;
datetime g_time_120;
datetime g_time_124;
double gd_128;
double gd_136;
double gd_144;
double gd_152;
double gd_368;
double gd_376;
double gd_384;
double gd_392;
double gd_400;
double gd_408;
double gd_416;
int init() {
SetIndexStyle(0, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexStyle(1, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexStyle(2, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexBuffer(0, g_ibuf_84);
SetIndexBuffer(1, g_ibuf_88);
SetIndexBuffer(2, g_ibuf_92);
IndicatorShortName("Krátkodobý trend/H");
SetIndexDrawBegin(0, Bars - CountBars);
SetIndexDrawBegin(1, Bars - CountBars);
SetIndexDrawBegin(2, Bars - CountBars);
IndicatorDigits(MarketInfo(Symbol(), MODE_DIGITS));
if (gi_76 - 1 >= 5) gi_104 = gi_76 - 1;
else gi_104 = 5;
gd_408 = 3 / (gi_76 + 2.0);
gd_416 = 1.0 - gd_408;
return (0);
}
}
g_ind_counted_112 = IndicatorCounted();
if (g_ind_counted_112 < 0) return (-1);
if (g_ind_counted_112 > gi_76) gi_96 = Bars - g_ind_counted_112 - 1;
else gi_96 = Bars - gi_76 - 1;
g_time_124 = Time[gi_96 + 1];
if (g_time_124 != g_time_116 && gi_96 < Bars - gi_76 - 1) {
if (g_time_124 == g_time_120) {
gd_312 = gd_208;
gd_320 = gd_216;
gd_328 = gd_224;
gd_336 = gd_232;
gd_384 = gd_280;
gd_392 = gd_288;
gd_400 = gd_296;
} else return (-1);
}
if (gi_76 - 1 >= 5) gi_104 = gi_76 - 1;
else gi_104 = 5;
gd_408 = 3 / (gi_76 + 2.0);
gd_416 = 1.0 - gd_408;
while (gi_96 >= 0) {
if (g_count_100 == 0) {
g_count_100 = 1;
gi_108 = FALSE;
} else {
if (g_count_100 >= gi_104) g_count_100 = gi_104 + 1;
else g_count_100++;
gd_136 = Close[gi_96] - (Close[gi_96 + 1]);
gd_192 = MathAbs(gd_136);
gd_312 = gd_416 * gd_312 + gd_408 * gd_136;
gd_320 = gd_408 * gd_312 + gd_416 * gd_320;
gd_176 = 1.5 * gd_312 - gd_320 / 2.0;
gd_328 = gd_416 * gd_328 + gd_408 * gd_176;
gd_336 = gd_408 * gd_328 + gd_416 * gd_336;
gd_144 = 1.5 * gd_328 - gd_336 / 2.0;
gd_344 = gd_416 * gd_344 + gd_408 * gd_144;
gd_352 = gd_408 * gd_344 + gd_416 * gd_352;
gd_152 = 1.5 * gd_344 - gd_352 / 2.0;
gd_360 = gd_416 * gd_360 + gd_408 * gd_192;
gd_368 = gd_408 * gd_360 + gd_416 * gd_368;
gd_160 = 1.5 * gd_360 - gd_368 / 2.0;
gd_376 = gd_416 * gd_376 + gd_408 * gd_160;
gd_384 = gd_408 * gd_376 + gd_416 * gd_384;
gd_184 = 1.5 * gd_376 - gd_384 / 2.0;
gd_392 = gd_416 * gd_392 + gd_408 * gd_184;
gd_400 = gd_408 * gd_392 + gd_416 * gd_400;
gd_168 = 1.5 * gd_392 - gd_400 / 2.0;
if (g_count_100 <= gi_104 && gd_136 != 0.0) gi_108 = TRUE;
if (g_count_100 == gi_104 && gi_108 == FALSE) g_count_100 = 0;
}
if (g_count_100 > gi_104 && gd_168 > 0.0000000001) {
gd_128 = 50.0 * (gd_152 / gd_168 + 1.0);
if (gd_128 > 100.0) gd_128 = 100.0;
if (gd_128 < 0.0) gd_128 = 0.0;
} else gd_128 = 50.0;
gd_304 = gd_128 / 50.0 - 1.0;
if (gi_96 == 1) {
g_time_120 = Time[1];
g_time_116 = Time[0];
gd_208 = gd_312;
gd_216 = gd_320;
gd_224 = gd_328;
gd_232 = gd_336;
gd_272 = gd_376;
gd_280 = gd_384;
gd_288 = gd_392;
gd_296 = gd_400;
}
gd_200 = gd_304 - (g_ibuf_84[gi_96 + 1]) - (g_ibuf_88[gi_96 + 1]) - (g_ibuf_92[gi_96 + 1]);
g_ibuf_84[gi_96] = 0.0;
g_ibuf_88[gi_96] = 0.0;
g_ibuf_92[gi_96] = 0.0;
if (gd_200 > 0.0) g_ibuf_84[gi_96] = gd_304;
else {
if (gd_200 < 0.0) g_ibuf_88[gi_96] = gd_304;
else g_ibuf_92[gi_96] = gd_304;
}
gi_96--;
Kr_Trend_H
int gi_76 = 13;
extern int CountBars = 3000;
double g_ibuf_84[];
double g_ibuf_88[];
double g_ibuf_92[];
int gi_96;
int g_count_100;
int gi_104;
bool gi_108;
int g_ind_counted_112;
datetime g_time_116;
datetime g_time_120;
datetime g_time_124;
double gd_128;
double gd_136;
double gd_144;
double gd_152;
double gd_160;
double gd_168;
double gd_176;
double gd_328;
double gd_336;
double gd_344;
double gd_352;
double gd_360;
double gd_368;
double gd_376;
double gd_384;
double gd_392;
double gd_400;
double gd_408;
double gd_416;
int init() {
SetIndexStyle(0, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexStyle(1, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexStyle(2, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexBuffer(0, g_ibuf_84);
SetIndexBuffer(1, g_ibuf_88);
SetIndexBuffer(2, g_ibuf_92);
IndicatorShortName("Krátkodobý trend/H");
SetIndexDrawBegin(0, Bars - CountBars);
SetIndexDrawBegin(1, Bars - CountBars);
SetIndexDrawBegin(2, Bars - CountBars);
IndicatorDigits(MarketInfo(Symbol(), MODE_DIGITS));
if (gi_76 - 1 >= 5) gi_104 = gi_76 - 1;
else gi_104 = 5;
gd_408 = 3 / (gi_76 + 2.0);
gd_416 = 1.0 - gd_408;
return (0);
}
}
g_ind_counted_112 = IndicatorCounted();
if (g_ind_counted_112 < 0) return (-1);
if (g_ind_counted_112 > gi_76) gi_96 = Bars - g_ind_counted_112 - 1;
else gi_96 = Bars - gi_76 - 1;
g_time_124 = Time[gi_96 + 1];
if (g_time_124 != g_time_116 && gi_96 < Bars - gi_76 - 1) {
if (g_time_124 == g_time_120) {
gd_312 = gd_208;
gd_320 = gd_216;
gd_328 = gd_224;
gd_336 = gd_232;
gd_344 = gd_240;
gd_352 = gd_248;
gd_360 = gd_256;
gd_368 = gd_264;
gd_376 = gd_272;
gd_384 = gd_280;
gd_392 = gd_288;
gd_400 = gd_296;
} else return (-1);
}
if (gi_76 - 1 >= 5) gi_104 = gi_76 - 1;
else gi_104 = 5;
gd_408 = 3 / (gi_76 + 2.0);
gd_416 = 1.0 - gd_408;
while (gi_96 >= 0) {
if (g_count_100 == 0) {
g_count_100 = 1;
gi_108 = FALSE;
} else {
if (g_count_100 >= gi_104) g_count_100 = gi_104 + 1;
else g_count_100++;
gd_136 = Close[gi_96] - (Close[gi_96 + 1]);
gd_192 = MathAbs(gd_136);
gd_312 = gd_416 * gd_312 + gd_408 * gd_136;
gd_320 = gd_408 * gd_312 + gd_416 * gd_320;
gd_176 = 1.5 * gd_312 - gd_320 / 2.0;
gd_328 = gd_416 * gd_328 + gd_408 * gd_176;
gd_336 = gd_408 * gd_328 + gd_416 * gd_336;
gd_144 = 1.5 * gd_328 - gd_336 / 2.0;
gd_344 = gd_416 * gd_344 + gd_408 * gd_144;
gd_352 = gd_408 * gd_344 + gd_416 * gd_352;
gd_152 = 1.5 * gd_344 - gd_352 / 2.0;
gd_360 = gd_416 * gd_360 + gd_408 * gd_192;
gd_368 = gd_408 * gd_360 + gd_416 * gd_368;
gd_160 = 1.5 * gd_360 - gd_368 / 2.0;
gd_376 = gd_416 * gd_376 + gd_408 * gd_160;
gd_384 = gd_408 * gd_376 + gd_416 * gd_384;
gd_184 = 1.5 * gd_376 - gd_384 / 2.0;
gd_392 = gd_416 * gd_392 + gd_408 * gd_184;
gd_400 = gd_408 * gd_392 + gd_416 * gd_400;
gd_168 = 1.5 * gd_392 - gd_400 / 2.0;
if (g_count_100 <= gi_104 && gd_136 != 0.0) gi_108 = TRUE;
if (g_count_100 == gi_104 && gi_108 == FALSE) g_count_100 = 0;
}
if (g_count_100 > gi_104 && gd_168 > 0.0000000001) {
gd_128 = 50.0 * (gd_152 / gd_168 + 1.0);
if (gd_128 > 100.0) gd_128 = 100.0;
if (gd_128 < 0.0) gd_128 = 0.0;
} else gd_128 = 50.0;
gd_304 = gd_128 / 50.0 - 1.0;
if (gi_96 == 1) {
g_time_120 = Time[1];
g_time_116 = Time[0];
gd_208 = gd_312;
gd_216 = gd_320;
gd_224 = gd_328;
gd_232 = gd_336;
gd_240 = gd_344;
gd_248 = gd_352;
gd_256 = gd_360;
gd_264 = gd_368;
gd_272 = gd_376;
gd_280 = gd_384;
gd_288 = gd_392;
gd_296 = gd_400;
}
gd_200 = gd_304 - (g_ibuf_84[gi_96 + 1]) - (g_ibuf_88[gi_96 + 1]) - (g_ibuf_92[gi_96 + 1]);
g_ibuf_84[gi_96] = 0.0;
g_ibuf_88[gi_96] = 0.0;
g_ibuf_92[gi_96] = 0.0;
if (gd_200 > 0.0) g_ibuf_84[gi_96] = gd_304;
else {
if (gd_200 < 0.0) g_ibuf_88[gi_96] = gd_304;
else g_ibuf_92[gi_96] = gd_304;
}
gi_96--;
}
return (0);
}
_Trend
extern int SpreadThreshold = 6;
extern bool D_ADX = TRUE;
int init() {
IndicatorShortName("Trend (" + Symbol() + ")");
return (0);
}
int deinit() {
ObjectsDeleteAll(0, OBJ_LABEL);
ObjectDelete("Trend-1");
ObjectDelete("Trend-2");
ObjectDelete("Trend-3");
ObjectDelete("Trend-4");
ObjectDelete("Trend-5");
ObjectDelete("Trend-6");
ObjectDelete("Trend-7");
ObjectDelete("Trend-8");
ObjectDelete("Trend-9");
ObjectDelete("Trend-10");
ObjectDelete("Trend-11");
ObjectDelete("Trend-12");
ObjectDelete("Trend-2a");
ObjectDelete("Trend-4a");
ObjectDelete("Trend-6a");
ObjectDelete("Trend-8a");
ObjectDelete("Trend-10a");
ObjectDelete("Trend-12a");
return (0);
}
int start() {
color l_color_0;
color l_color_4;
color l_color_8;
color l_color_12;
color l_color_16;
color l_color_20;
string l_text_24;
string l_text_32;
string l_text_40;
string l_text_48;
string ls_unused_56;
string l_text_64;
}
double l_iadx_84 = iADX(NULL, PERIOD_M5, 14, PRICE_CLOSE, MODE_MAIN, 0);
double l_iadx_92 = iADX(NULL, PERIOD_M5, 14, PRICE_CLOSE, MODE_PLUSDI, 0);
double l_iadx_100 = iADX(NULL, PERIOD_M5, 14, PRICE_CLOSE, MODE_MINUSDI, 0);
double l_iadx_108 = iADX(NULL, PERIOD_M15, 14, PRICE_CLOSE, MODE_MAIN, 0);
double l_iadx_116 = iADX(NULL, PERIOD_M15, 14, PRICE_CLOSE, MODE_PLUSDI, 0);
double l_iadx_124 = iADX(NULL, PERIOD_M15, 14, PRICE_CLOSE, MODE_MINUSDI, 0);
double l_iadx_132 = iADX(NULL, PERIOD_M30, 14, PRICE_CLOSE, MODE_MAIN, 0);
double l_iadx_140 = iADX(NULL, PERIOD_M30, 14, PRICE_CLOSE, MODE_PLUSDI, 0);
double l_iadx_148 = iADX(NULL, PERIOD_M30, 14, PRICE_CLOSE, MODE_MINUSDI, 0);
double l_iadx_156 = iADX(NULL, PERIOD_H1, 14, PRICE_CLOSE, MODE_MAIN, 0);
double l_iadx_164 = iADX(NULL, PERIOD_H1, 14, PRICE_CLOSE, MODE_PLUSDI, 0);
double l_iadx_172 = iADX(NULL, PERIOD_H1, 14, PRICE_CLOSE, MODE_MINUSDI, 0);
double l_iadx_180 = iADX(NULL, PERIOD_H4, 14, PRICE_CLOSE, MODE_MAIN, 0);
double l_iadx_188 = iADX(NULL, PERIOD_H4, 14, PRICE_CLOSE, MODE_PLUSDI, 0);
double l_iadx_196 = iADX(NULL, PERIOD_H4, 14, PRICE_CLOSE, MODE_MINUSDI, 0);
double l_iadx_204 = iADX(NULL, PERIOD_D1, 14, PRICE_CLOSE, MODE_MAIN, 0);
double l_iadx_212 = iADX(NULL, PERIOD_D1, 14, PRICE_CLOSE, MODE_PLUSDI, 0);
double l_iadx_220 = iADX(NULL, PERIOD_D1, 14, PRICE_CLOSE, MODE_MINUSDI, 0);
if (l_iadx_84 < 23.0 && l_iadx_84 != 0.0) l_color_0 = LightSkyBlue;
if (l_iadx_84 >= 23.0 && l_iadx_92 > l_iadx_100) l_color_0 = Lime;
if (l_iadx_84 >= 23.0 && l_iadx_92 < l_iadx_100) l_color_0 = Red;
if (l_iadx_108 < 23.0 && l_iadx_108 != 0.0) l_color_4 = LightSkyBlue;
if (l_iadx_108 >= 23.0 && l_iadx_116 > l_iadx_124) l_color_4 = Lime;
if (l_iadx_108 >= 23.0 && l_iadx_116 < l_iadx_124) l_color_4 = Red;
if (l_iadx_132 < 23.0 && l_iadx_132 != 0.0) l_color_8 = LightSkyBlue;
if (l_iadx_132 >= 23.0 && l_iadx_140 > l_iadx_148) l_color_8 = Lime;
if (l_iadx_132 >= 23.0 && l_iadx_140 < l_iadx_148) l_color_8 = Red;
if (l_iadx_156 < 23.0 && l_iadx_156 != 0.0) l_color_12 = LightSkyBlue;
if (l_iadx_156 >= 23.0 && l_iadx_164 > l_iadx_172) l_color_12 = Lime;
if (l_iadx_156 >= 23.0 && l_iadx_164 < l_iadx_172) l_color_12 = Red;
if (l_iadx_180 < 23.0 && l_iadx_180 != 0.0) l_color_16 = LightSkyBlue;
if (l_iadx_180 >= 23.0 && l_iadx_188 > l_iadx_196) l_color_16 = Lime;
if (l_iadx_180 >= 23.0 && l_iadx_188 < l_iadx_196) l_color_16 = Red;
if (l_iadx_204 < 23.0 && l_iadx_204 != 0.0) l_color_20 = LightSkyBlue;
if (l_iadx_204 >= 23.0 && l_iadx_212 > l_iadx_220) l_color_20 = Lime;
if (l_iadx_204 >= 23.0 && l_iadx_212 < l_iadx_220) l_color_20 = Red;
string l_iadx_228 = l_iadx_84;
string l_iadx_236 = l_iadx_108;
string l_iadx_244 = l_iadx_132;
string l_iadx_252 = l_iadx_156;
string l_iadx_260 = l_iadx_180;
string l_iadx_268 = l_iadx_204;
if (l_iadx_84 < 23.0 && l_iadx_84 != 0.0) l_text_24 = "h";
if (l_iadx_84 >= 23.0 && l_iadx_84 < 28.0 && l_iadx_92 > l_iadx_100) l_text_24 = "ě";
if (l_iadx_84 >= 23.0 && l_iadx_84 < 28.0 && l_iadx_92 < l_iadx_100) l_text_24 = "î";
if (l_iadx_84 >= 28.0 && l_iadx_92 > l_iadx_100) l_text_24 = "é";
if (l_iadx_84 >= 28.0 && l_iadx_92 < l_iadx_100) l_text_24 = "ę";
if (l_iadx_108 < 23.0 && l_iadx_108 != 0.0) l_text_32 = "h";
if (l_iadx_108 >= 23.0 && l_iadx_108 < 28.0 && l_iadx_116 > l_iadx_124) l_text_32 = "ě";
if (l_iadx_108 >= 23.0 && l_iadx_108 < 28.0 && l_iadx_116 < l_iadx_124) l_text_32 = "î";
if (l_iadx_108 >= 28.0 && l_iadx_116 > l_iadx_124) l_text_32 = "é";
if (l_iadx_108 >= 28.0 && l_iadx_116 < l_iadx_124) l_text_32 = "ę";
if (l_iadx_132 < 23.0 && l_iadx_132 != 0.0) l_text_40 = "h";
if (l_iadx_132 >= 23.0 && l_iadx_132 < 28.0 && l_iadx_140 > l_iadx_148) l_text_40 = "ě";
if (l_iadx_132 >= 23.0 && l_iadx_132 < 28.0 && l_iadx_140 < l_iadx_148) l_text_40 = "î";
if (l_iadx_132 >= 28.0 && l_iadx_140 > l_iadx_148) l_text_40 = "é";
if (l_iadx_132 >= 28.0 && l_iadx_140 < l_iadx_148) l_text_40 = "ę";
if (l_iadx_156 < 23.0 && l_iadx_156 != 0.0) l_text_48 = "h";
if (l_iadx_156 >= 23.0 && l_iadx_156 < 28.0 && l_iadx_164 > l_iadx_172) l_text_48 = "ě";
if (l_iadx_156 >= 23.0 && l_iadx_156 < 28.0 && l_iadx_164 < l_iadx_172) l_text_48 = "î";
if (l_iadx_156 >= 28.0 && l_iadx_172 > l_iadx_172) l_text_48 = "é";
if (l_iadx_156 >= 28.0 && l_iadx_164 < l_iadx_172) l_text_48 = "ę";
if (l_iadx_180 < 23.0 && l_iadx_180 != 0.0) ls_unused_56 = "h";
if (l_iadx_180 >= 23.0 && l_iadx_180 < 28.0 && l_iadx_188 > l_iadx_196) ls_unused_56 = "ě";
if (l_iadx_180 >= 23.0 && l_iadx_180 < 28.0 && l_iadx_188 < l_iadx_196) ls_unused_56 = "î";
if (l_iadx_180 >= 28.0 && l_iadx_188 > l_iadx_196) ls_unused_56 = "é";
if (l_iadx_180 >= 28.0 && l_iadx_188 < l_iadx_196) ls_unused_56 = "ę";
if (l_iadx_204 < 23.0 && l_iadx_204 != 0.0) l_text_64 = "h";
if (l_iadx_204 >= 23.0 && l_iadx_204 < 28.0 && l_iadx_212 > l_iadx_220) l_text_64 = "ě";
if (l_iadx_204 >= 23.0 && l_iadx_204 < 28.0 && l_iadx_212 < l_iadx_220) l_text_64 = "î";
if (l_iadx_204 >= 28.0 && l_iadx_212 > l_iadx_220) l_text_64 = "é";
if (l_iadx_204 >= 28.0 && l_iadx_212 < l_iadx_220) l_text_64 = "ę";
ObjectCreate("Trend-1", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-1", "5 min:", 9, "Lucida Sans Regular", LightSteelBlue);
ObjectSet("Trend-1", OBJPROP_CORNER, 0);
ObjectSet("Trend-1", OBJPROP_XDISTANCE, 185);
ObjectSet("Trend-1", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-2", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-2", " ADX " + StringSubstr(l_iadx_228, 0, 5) + " ", 9, "Lucida Sands Regular", l_color_0);
ObjectSet("Trend-2", OBJPROP_CORNER, 0);
ObjectSet("Trend-2", OBJPROP_XDISTANCE, 225);
ObjectSet("Trend-2", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-2a", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-2a", l_text_24, 9, "Wingdings", l_color_0);
ObjectSet("Trend-2a", OBJPROP_CORNER, 0);
ObjectSet("Trend-2a", OBJPROP_XDISTANCE, 288);
ObjectSet("Trend-2a", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-3", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-3", "15 min:", 9, "Lucida Sans Regular", LightSteelBlue);
ObjectSet("Trend-3", OBJPROP_CORNER, 0);
ObjectSet("Trend-3", OBJPROP_XDISTANCE, 318);
ObjectSet("Trend-3", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-4", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-4", " ADX " + StringSubstr(l_iadx_236, 0, 5) + " ", 9, "Lucida Sands Regular", l_color_4);
ObjectSet("Trend-4", OBJPROP_CORNER, 0);
ObjectSet("Trend-4", OBJPROP_XDISTANCE, 363);
ObjectSet("Trend-4", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-4a", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-4a", l_text_32, 9, "Wingdings", l_color_4);
ObjectSet("Trend-4a", OBJPROP_CORNER, 0);
ObjectSet("Trend-4a", OBJPROP_XDISTANCE, 426);
ObjectSet("Trend-4a", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-5", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-5", "30 min:", 9, "Lucida Sans Regular", LightSteelBlue);
ObjectSet("Trend-5", OBJPROP_CORNER, 0);
ObjectSet("Trend-5", OBJPROP_XDISTANCE, 453);
ObjectSet("Trend-5", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-6", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-6", " ADX " + StringSubstr(l_iadx_244, 0, 5) + " ", 9, "Lucida Sands Regular", l_color_8);
ObjectSet("Trend-6", OBJPROP_CORNER, 0);
ObjectSet("Trend-6", OBJPROP_XDISTANCE, 496);
ObjectSet("Trend-6", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-6a", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-6a", l_text_40, 9, "Wingdings", l_color_8);
ObjectSet("Trend-6a", OBJPROP_CORNER, 0);
ObjectSet("Trend-6a", OBJPROP_XDISTANCE, 557);
ObjectSet("Trend-6a", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-7", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-7", "1 H:", 9, "Lucida Sans Regular", LightSteelBlue);
ObjectSet("Trend-7", OBJPROP_CORNER, 0);
ObjectSet("Trend-7", OBJPROP_XDISTANCE, 580);
ObjectSet("Trend-7", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-8", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-8", " ADX " + StringSubstr(l_iadx_252, 0, 5) + " ", 9, "Lucida Sands Regular", l_color_12);
ObjectSet("Trend-8", OBJPROP_CORNER, 0);
ObjectSet("Trend-8", OBJPROP_XDISTANCE, 610);
ObjectSet("Trend-8", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-8a", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-8a", l_text_48, 9, "Wingdings", l_color_12);
ObjectSet("Trend-8a", OBJPROP_CORNER, 0);
ObjectSet("Trend-8a", OBJPROP_XDISTANCE, 672);
ObjectSet("Trend-8a", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-9", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-9", "4 H:", 9, "Lucida Sans Regular", LightSteelBlue);
ObjectSet("Trend-9", OBJPROP_CORNER, 0);
ObjectSet("Trend-9", OBJPROP_XDISTANCE, 702);
ObjectSet("Trend-9", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-10", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-10", " ADX " + StringSubstr(l_iadx_260, 0, 5) + " ", 9, "Lucida Sands Regular", l_color_16);
ObjectSet("Trend-10", OBJPROP_CORNER, 0);
ObjectSet("Trend-10", OBJPROP_XDISTANCE, 732);
ObjectSet("Trend-10", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-10a", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-10a", l_text_64, 9, "Wingdings", l_color_20);
ObjectSet("Trend-10a", OBJPROP_CORNER, 0);
ObjectSet("Trend-10a", OBJPROP_XDISTANCE, 793);
ObjectSet("Trend-10a", OBJPROP_YDISTANCE, 2);
if (D_ADX == TRUE) {
ObjectCreate("Trend-11", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-11", "Denní:", 9, "Lucida Sans Regular", LightSteelBlue);
ObjectSet("Trend-11", OBJPROP_CORNER, 0);
ObjectSet("Trend-11", OBJPROP_XDISTANCE, 823);
ObjectSet("Trend-11", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-12", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-12", " ADX " + StringSubstr(l_iadx_268, 0, 5) + " ", 9, "Lucida Sands Regular", l_color_20);
ObjectSet("Trend-12", OBJPROP_CORNER, 0);
ObjectSet("Trend-12", OBJPROP_XDISTANCE, 863);
ObjectSet("Trend-12", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-12a", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-12a", l_text_64, 9, "Wingdings", l_color_20);
ObjectSet("Trend-12a", OBJPROP_CORNER, 0);
ObjectSet("Trend-12a", OBJPROP_XDISTANCE, 923);
ObjectSet("Trend-12a", OBJPROP_YDISTANCE, 2);
}
return (0);
}
Dl_Trend
Dl
Dlouhodobý trend
int g_period_76 = 13;
int g_period_80 = 34;
double g_ibuf_84[];
double g_ibuf_88[];
double g_ibuf_92[];
double g_ibuf_96[];
int init() {
SetIndexStyle(0, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexBuffer(0, g_ibuf_84);
SetIndexStyle(1, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexBuffer(1, g_ibuf_88);
SetIndexStyle(2, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexBuffer(2, g_ibuf_92);
SetIndexStyle(3, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexBuffer(3, g_ibuf_96);
IndicatorDigits(Digits + 1);
string ls_0 = "Dlouhodobý trend";
IndicatorShortName(ls_0);
SetIndexLabel(0, ls_0);
SetIndexLabel(1, ls_0);
SetIndexLabel(2, ls_0);
SetIndexLabel(3, ls_0);
return (0);
}
}
int l_ind_counted_20 = IndicatorCounted();
if (l_ind_counted_20 < 0) return (-1);
for (int li_24 = Bars - Max(l_ind_counted_20 - 1, 1); li_24 >= 0; li_24--) {
ld_0 = iMA(NULL, 0, g_period_76, 0, MODE_EMA, PRICE_MEDIAN, li_24) - iMA(NULL, 0, g_period_80, 0, MODE_EMA, PRICE_MEDIAN, li_24);
if (ld_0 > 0.0) {
if ((g_ibuf_84[li_24 + 1] != 0.0 && ld_0 >= g_ibuf_84[li_24 + 1]) || (g_ibuf_88[li_24 + 1] != 0.0 && ld_0 > g_ibuf_88[li_24 + 1])) {
g_ibuf_84[li_24] = ld_0;
g_ibuf_88[li_24] = 0;
} else {
g_ibuf_84[li_24] = 0;
g_ibuf_88[li_24] = ld_0;
}
} else {
if ((g_ibuf_92[li_24 + 1] != 0.0 && ld_0 >= g_ibuf_92[li_24 + 1]) || (g_ibuf_96[li_24 + 1] != 0.0 && ld_0 > g_ibuf_96[li_24 + 1])) {
g_ibuf_92[li_24] = ld_0;
g_ibuf_96[li_24] = 0;
} else {
g_ibuf_92[li_24] = 0;
g_ibuf_96[li_24] = ld_0;
}
}
}
return (0);
}
int Max(int ai_0, int ai_4) {
if (ai_0 > ai_4) return (ai_0);
return (ai_4);
}
Dl_Trend_A (black)
double g_ibuf_76[];
double g_ibuf_80[];
int g_period_84 = 13;
int g_period_88 = 34;
extern bool Alerts = TRUE;
int gi_96 = 0;
int gi_100 = 0;
int init() {
SetIndexStyle(0, DRAW_ARROW, EMPTY);
SetIndexArrow(0, SYMBOL_THUMBSUP);
SetIndexBuffer(0, g_ibuf_76);
SetIndexStyle(1, DRAW_ARROW, EMPTY);
SetIndexArrow(1, SYMBOL_THUMBSDOWN);
SetIndexBuffer(1, g_ibuf_80);
return (0);
}
int deinit() {
return (0);
}
int start() {
int li_0;
double l_ima_4;
double l_ima_12;
double l_ima_20;
double l_ima_28;
double l_ima_36;
double l_ima_44;
double ld_52;
double ld_60;
}
int li_80 = IndicatorCounted();
if (li_80 < 0) return (-1);
if (li_80 > 0) li_80--;
int li_84 = Bars - li_80;
for (int li_88 = 0; li_88 <= li_84; li_88++) {
li_0 = li_88;
ld_52 = 0;
ld_60 = 0;
for (li_0 = li_88; li_0 <= li_88 + 9; li_0++) ld_60 += MathAbs(High[li_0] - Low[li_0]);
ld_52 = ld_60 / 10.0;
l_ima_4 = iMA(NULL, 0, g_period_84, 0, MODE_EMA, PRICE_CLOSE, li_88);
l_ima_20 = iMA(NULL, 0, g_period_84, 0, MODE_EMA, PRICE_CLOSE, li_88 + 1);
l_ima_36 = iMA(NULL, 0, g_period_84, 0, MODE_EMA, PRICE_CLOSE, li_88 - 1);
l_ima_12 = iMA(NULL, 0, g_period_88, 0, MODE_EMA, PRICE_CLOSE, li_88);
l_ima_28 = iMA(NULL, 0, g_period_88, 0, MODE_EMA, PRICE_CLOSE, li_88 + 1);
l_ima_44 = iMA(NULL, 0, g_period_88, 0, MODE_EMA, PRICE_CLOSE, li_88 - 1);
if (l_ima_4 > l_ima_12 && l_ima_20 < l_ima_28 && l_ima_36 > l_ima_44) {
g_ibuf_76[li_88] = Low[li_88] - ld_52 / 2.0;
if (li_88 <= 2 && Alerts && !gi_96) {
SendMail("xxxx", "Dlouhodoby trend nad nulou!!!(Long)" + Symbol());
Alert(Symbol(), " ", Period(), " Dlouhodobý trend nad nulou!!!(Long) ");
gi_96 = TRUE;
gi_100 = FALSE;
}
} else {
if (l_ima_4 < l_ima_12 && l_ima_20 > l_ima_28 && l_ima_36 < l_ima_44) {
g_ibuf_80[li_88] = High[li_88] + ld_52 / 2.0;
if (li_88 <= 2 && Alerts && !gi_100) {
SendMail("xxxx", "Dlouhodoby trend pod nulou!!!(Short)" + Symbol());
Alert(Symbol(), " ", Period(), " Dlouhodobý trend pod nulou!!!(Short) ");
gi_100 = TRUE;
gi_96 = FALSE;
}
}
}
}
return (0);
}
Kr_Trend_D
Trend D
int gi_76 = 21;
extern int CountBars = 3000;
double g_ibuf_84[];
double g_ibuf_88[];
double g_ibuf_92[];
int gi_96;
int g_count_100;
int gi_104;
bool gi_108;
int g_ind_counted_112;
datetime g_time_116;
datetime g_time_120;
datetime g_time_124;
double gd_128;
double gd_136;
double gd_144;
double gd_152;
double gd_368;
double gd_376;
double gd_384;
double gd_392;
double gd_400;
double gd_408;
double gd_416;
int init() {
SetIndexStyle(0, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexStyle(1, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexStyle(2, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexBuffer(0, g_ibuf_84);
SetIndexBuffer(1, g_ibuf_88);
SetIndexBuffer(2, g_ibuf_92);
IndicatorShortName("Krátkodobý trend/H");
SetIndexDrawBegin(0, Bars - CountBars);
SetIndexDrawBegin(1, Bars - CountBars);
SetIndexDrawBegin(2, Bars - CountBars);
IndicatorDigits(MarketInfo(Symbol(), MODE_DIGITS));
if (gi_76 - 1 >= 5) gi_104 = gi_76 - 1;
else gi_104 = 5;
gd_408 = 3 / (gi_76 + 2.0);
gd_416 = 1.0 - gd_408;
return (0);
}
}
g_ind_counted_112 = IndicatorCounted();
if (g_ind_counted_112 < 0) return (-1);
if (g_ind_counted_112 > gi_76) gi_96 = Bars - g_ind_counted_112 - 1;
else gi_96 = Bars - gi_76 - 1;
g_time_124 = Time[gi_96 + 1];
if (g_time_124 != g_time_116 && gi_96 < Bars - gi_76 - 1) {
if (g_time_124 == g_time_120) {
gd_312 = gd_208;
gd_320 = gd_216;
gd_328 = gd_224;
gd_336 = gd_232;
gd_384 = gd_280;
gd_392 = gd_288;
gd_400 = gd_296;
} else return (-1);
}
if (gi_76 - 1 >= 5) gi_104 = gi_76 - 1;
else gi_104 = 5;
gd_408 = 3 / (gi_76 + 2.0);
gd_416 = 1.0 - gd_408;
while (gi_96 >= 0) {
if (g_count_100 == 0) {
g_count_100 = 1;
gi_108 = FALSE;
} else {
if (g_count_100 >= gi_104) g_count_100 = gi_104 + 1;
else g_count_100++;
gd_136 = Close[gi_96] - (Close[gi_96 + 1]);
gd_192 = MathAbs(gd_136);
gd_312 = gd_416 * gd_312 + gd_408 * gd_136;
gd_320 = gd_408 * gd_312 + gd_416 * gd_320;
gd_176 = 1.5 * gd_312 - gd_320 / 2.0;
gd_328 = gd_416 * gd_328 + gd_408 * gd_176;
gd_336 = gd_408 * gd_328 + gd_416 * gd_336;
gd_144 = 1.5 * gd_328 - gd_336 / 2.0;
gd_344 = gd_416 * gd_344 + gd_408 * gd_144;
gd_352 = gd_408 * gd_344 + gd_416 * gd_352;
gd_152 = 1.5 * gd_344 - gd_352 / 2.0;
gd_360 = gd_416 * gd_360 + gd_408 * gd_192;
gd_368 = gd_408 * gd_360 + gd_416 * gd_368;
gd_160 = 1.5 * gd_360 - gd_368 / 2.0;
gd_376 = gd_416 * gd_376 + gd_408 * gd_160;
gd_384 = gd_408 * gd_376 + gd_416 * gd_384;
gd_184 = 1.5 * gd_376 - gd_384 / 2.0;
gd_392 = gd_416 * gd_392 + gd_408 * gd_184;
gd_400 = gd_408 * gd_392 + gd_416 * gd_400;
gd_168 = 1.5 * gd_392 - gd_400 / 2.0;
if (g_count_100 <= gi_104 && gd_136 != 0.0) gi_108 = TRUE;
if (g_count_100 == gi_104 && gi_108 == FALSE) g_count_100 = 0;
}
if (g_count_100 > gi_104 && gd_168 > 0.0000000001) {
gd_128 = 50.0 * (gd_152 / gd_168 + 1.0);
if (gd_128 > 100.0) gd_128 = 100.0;
if (gd_128 < 0.0) gd_128 = 0.0;
} else gd_128 = 50.0;
gd_304 = gd_128 / 50.0 - 1.0;
if (gi_96 == 1) {
g_time_120 = Time[1];
g_time_116 = Time[0];
gd_208 = gd_312;
gd_216 = gd_320;
gd_224 = gd_328;
gd_232 = gd_336;
gd_272 = gd_376;
gd_280 = gd_384;
gd_288 = gd_392;
gd_296 = gd_400;
}
gd_200 = gd_304 - (g_ibuf_84[gi_96 + 1]) - (g_ibuf_88[gi_96 + 1]) - (g_ibuf_92[gi_96 + 1]);
g_ibuf_84[gi_96] = 0.0;
g_ibuf_88[gi_96] = 0.0;
g_ibuf_92[gi_96] = 0.0;
if (gd_200 > 0.0) g_ibuf_84[gi_96] = gd_304;
else {
if (gd_200 < 0.0) g_ibuf_88[gi_96] = gd_304;
else g_ibuf_92[gi_96] = gd_304;
}
gi_96--;
Kr_Trend_H
int gi_76 = 13;
extern int CountBars = 3000;
double g_ibuf_84[];
double g_ibuf_88[];
double g_ibuf_92[];
int gi_96;
int g_count_100;
int gi_104;
bool gi_108;
int g_ind_counted_112;
datetime g_time_116;
datetime g_time_120;
datetime g_time_124;
double gd_128;
double gd_136;
double gd_144;
double gd_152;
double gd_160;
double gd_168;
double gd_176;
double gd_328;
double gd_336;
double gd_344;
double gd_352;
double gd_360;
double gd_368;
double gd_376;
double gd_384;
double gd_392;
double gd_400;
double gd_408;
double gd_416;
int init() {
SetIndexStyle(0, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexStyle(1, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexStyle(2, DRAW_HISTOGRAM, STYLE_SOLID);
SetIndexBuffer(0, g_ibuf_84);
SetIndexBuffer(1, g_ibuf_88);
SetIndexBuffer(2, g_ibuf_92);
IndicatorShortName("Krátkodobý trend/H");
SetIndexDrawBegin(0, Bars - CountBars);
SetIndexDrawBegin(1, Bars - CountBars);
SetIndexDrawBegin(2, Bars - CountBars);
IndicatorDigits(MarketInfo(Symbol(), MODE_DIGITS));
if (gi_76 - 1 >= 5) gi_104 = gi_76 - 1;
else gi_104 = 5;
gd_408 = 3 / (gi_76 + 2.0);
gd_416 = 1.0 - gd_408;
return (0);
}
}
g_ind_counted_112 = IndicatorCounted();
if (g_ind_counted_112 < 0) return (-1);
if (g_ind_counted_112 > gi_76) gi_96 = Bars - g_ind_counted_112 - 1;
else gi_96 = Bars - gi_76 - 1;
g_time_124 = Time[gi_96 + 1];
if (g_time_124 != g_time_116 && gi_96 < Bars - gi_76 - 1) {
if (g_time_124 == g_time_120) {
gd_312 = gd_208;
gd_320 = gd_216;
gd_328 = gd_224;
gd_336 = gd_232;
gd_344 = gd_240;
gd_352 = gd_248;
gd_360 = gd_256;
gd_368 = gd_264;
gd_376 = gd_272;
gd_384 = gd_280;
gd_392 = gd_288;
gd_400 = gd_296;
} else return (-1);
}
if (gi_76 - 1 >= 5) gi_104 = gi_76 - 1;
else gi_104 = 5;
gd_408 = 3 / (gi_76 + 2.0);
gd_416 = 1.0 - gd_408;
while (gi_96 >= 0) {
if (g_count_100 == 0) {
g_count_100 = 1;
gi_108 = FALSE;
} else {
if (g_count_100 >= gi_104) g_count_100 = gi_104 + 1;
else g_count_100++;
gd_136 = Close[gi_96] - (Close[gi_96 + 1]);
gd_192 = MathAbs(gd_136);
gd_312 = gd_416 * gd_312 + gd_408 * gd_136;
gd_320 = gd_408 * gd_312 + gd_416 * gd_320;
gd_176 = 1.5 * gd_312 - gd_320 / 2.0;
gd_328 = gd_416 * gd_328 + gd_408 * gd_176;
gd_336 = gd_408 * gd_328 + gd_416 * gd_336;
gd_144 = 1.5 * gd_328 - gd_336 / 2.0;
gd_344 = gd_416 * gd_344 + gd_408 * gd_144;
gd_352 = gd_408 * gd_344 + gd_416 * gd_352;
gd_152 = 1.5 * gd_344 - gd_352 / 2.0;
gd_360 = gd_416 * gd_360 + gd_408 * gd_192;
gd_368 = gd_408 * gd_360 + gd_416 * gd_368;
gd_160 = 1.5 * gd_360 - gd_368 / 2.0;
gd_376 = gd_416 * gd_376 + gd_408 * gd_160;
gd_384 = gd_408 * gd_376 + gd_416 * gd_384;
gd_184 = 1.5 * gd_376 - gd_384 / 2.0;
gd_392 = gd_416 * gd_392 + gd_408 * gd_184;
gd_400 = gd_408 * gd_392 + gd_416 * gd_400;
gd_168 = 1.5 * gd_392 - gd_400 / 2.0;
if (g_count_100 <= gi_104 && gd_136 != 0.0) gi_108 = TRUE;
if (g_count_100 == gi_104 && gi_108 == FALSE) g_count_100 = 0;
}
if (g_count_100 > gi_104 && gd_168 > 0.0000000001) {
gd_128 = 50.0 * (gd_152 / gd_168 + 1.0);
if (gd_128 > 100.0) gd_128 = 100.0;
if (gd_128 < 0.0) gd_128 = 0.0;
} else gd_128 = 50.0;
gd_304 = gd_128 / 50.0 - 1.0;
if (gi_96 == 1) {
g_time_120 = Time[1];
g_time_116 = Time[0];
gd_208 = gd_312;
gd_216 = gd_320;
gd_224 = gd_328;
gd_232 = gd_336;
gd_240 = gd_344;
gd_248 = gd_352;
gd_256 = gd_360;
gd_264 = gd_368;
gd_272 = gd_376;
gd_280 = gd_384;
gd_288 = gd_392;
gd_296 = gd_400;
}
gd_200 = gd_304 - (g_ibuf_84[gi_96 + 1]) - (g_ibuf_88[gi_96 + 1]) - (g_ibuf_92[gi_96 + 1]);
g_ibuf_84[gi_96] = 0.0;
g_ibuf_88[gi_96] = 0.0;
g_ibuf_92[gi_96] = 0.0;
if (gd_200 > 0.0) g_ibuf_84[gi_96] = gd_304;
else {
if (gd_200 < 0.0) g_ibuf_88[gi_96] = gd_304;
else g_ibuf_92[gi_96] = gd_304;
}
gi_96--;
}
return (0);
}
_Trend
extern int SpreadThreshold = 6;
extern bool D_ADX = TRUE;
int init() {
IndicatorShortName("Trend (" + Symbol() + ")");
return (0);
}
int deinit() {
ObjectsDeleteAll(0, OBJ_LABEL);
ObjectDelete("Trend-1");
ObjectDelete("Trend-2");
ObjectDelete("Trend-3");
ObjectDelete("Trend-4");
ObjectDelete("Trend-5");
ObjectDelete("Trend-6");
ObjectDelete("Trend-7");
ObjectDelete("Trend-8");
ObjectDelete("Trend-9");
ObjectDelete("Trend-10");
ObjectDelete("Trend-11");
ObjectDelete("Trend-12");
ObjectDelete("Trend-2a");
ObjectDelete("Trend-4a");
ObjectDelete("Trend-6a");
ObjectDelete("Trend-8a");
ObjectDelete("Trend-10a");
ObjectDelete("Trend-12a");
return (0);
}
int start() {
color l_color_0;
color l_color_4;
color l_color_8;
color l_color_12;
color l_color_16;
color l_color_20;
string l_text_24;
string l_text_32;
string l_text_40;
string l_text_48;
string ls_unused_56;
string l_text_64;
}
double l_iadx_84 = iADX(NULL, PERIOD_M5, 14, PRICE_CLOSE, MODE_MAIN, 0);
double l_iadx_92 = iADX(NULL, PERIOD_M5, 14, PRICE_CLOSE, MODE_PLUSDI, 0);
double l_iadx_100 = iADX(NULL, PERIOD_M5, 14, PRICE_CLOSE, MODE_MINUSDI, 0);
double l_iadx_108 = iADX(NULL, PERIOD_M15, 14, PRICE_CLOSE, MODE_MAIN, 0);
double l_iadx_116 = iADX(NULL, PERIOD_M15, 14, PRICE_CLOSE, MODE_PLUSDI, 0);
double l_iadx_124 = iADX(NULL, PERIOD_M15, 14, PRICE_CLOSE, MODE_MINUSDI, 0);
double l_iadx_132 = iADX(NULL, PERIOD_M30, 14, PRICE_CLOSE, MODE_MAIN, 0);
double l_iadx_140 = iADX(NULL, PERIOD_M30, 14, PRICE_CLOSE, MODE_PLUSDI, 0);
double l_iadx_148 = iADX(NULL, PERIOD_M30, 14, PRICE_CLOSE, MODE_MINUSDI, 0);
double l_iadx_156 = iADX(NULL, PERIOD_H1, 14, PRICE_CLOSE, MODE_MAIN, 0);
double l_iadx_164 = iADX(NULL, PERIOD_H1, 14, PRICE_CLOSE, MODE_PLUSDI, 0);
double l_iadx_172 = iADX(NULL, PERIOD_H1, 14, PRICE_CLOSE, MODE_MINUSDI, 0);
double l_iadx_180 = iADX(NULL, PERIOD_H4, 14, PRICE_CLOSE, MODE_MAIN, 0);
double l_iadx_188 = iADX(NULL, PERIOD_H4, 14, PRICE_CLOSE, MODE_PLUSDI, 0);
double l_iadx_196 = iADX(NULL, PERIOD_H4, 14, PRICE_CLOSE, MODE_MINUSDI, 0);
double l_iadx_204 = iADX(NULL, PERIOD_D1, 14, PRICE_CLOSE, MODE_MAIN, 0);
double l_iadx_212 = iADX(NULL, PERIOD_D1, 14, PRICE_CLOSE, MODE_PLUSDI, 0);
double l_iadx_220 = iADX(NULL, PERIOD_D1, 14, PRICE_CLOSE, MODE_MINUSDI, 0);
if (l_iadx_84 < 23.0 && l_iadx_84 != 0.0) l_color_0 = LightSkyBlue;
if (l_iadx_84 >= 23.0 && l_iadx_92 > l_iadx_100) l_color_0 = Lime;
if (l_iadx_84 >= 23.0 && l_iadx_92 < l_iadx_100) l_color_0 = Red;
if (l_iadx_108 < 23.0 && l_iadx_108 != 0.0) l_color_4 = LightSkyBlue;
if (l_iadx_108 >= 23.0 && l_iadx_116 > l_iadx_124) l_color_4 = Lime;
if (l_iadx_108 >= 23.0 && l_iadx_116 < l_iadx_124) l_color_4 = Red;
if (l_iadx_132 < 23.0 && l_iadx_132 != 0.0) l_color_8 = LightSkyBlue;
if (l_iadx_132 >= 23.0 && l_iadx_140 > l_iadx_148) l_color_8 = Lime;
if (l_iadx_132 >= 23.0 && l_iadx_140 < l_iadx_148) l_color_8 = Red;
if (l_iadx_156 < 23.0 && l_iadx_156 != 0.0) l_color_12 = LightSkyBlue;
if (l_iadx_156 >= 23.0 && l_iadx_164 > l_iadx_172) l_color_12 = Lime;
if (l_iadx_156 >= 23.0 && l_iadx_164 < l_iadx_172) l_color_12 = Red;
if (l_iadx_180 < 23.0 && l_iadx_180 != 0.0) l_color_16 = LightSkyBlue;
if (l_iadx_180 >= 23.0 && l_iadx_188 > l_iadx_196) l_color_16 = Lime;
if (l_iadx_180 >= 23.0 && l_iadx_188 < l_iadx_196) l_color_16 = Red;
if (l_iadx_204 < 23.0 && l_iadx_204 != 0.0) l_color_20 = LightSkyBlue;
if (l_iadx_204 >= 23.0 && l_iadx_212 > l_iadx_220) l_color_20 = Lime;
if (l_iadx_204 >= 23.0 && l_iadx_212 < l_iadx_220) l_color_20 = Red;
string l_iadx_228 = l_iadx_84;
string l_iadx_236 = l_iadx_108;
string l_iadx_244 = l_iadx_132;
string l_iadx_252 = l_iadx_156;
string l_iadx_260 = l_iadx_180;
string l_iadx_268 = l_iadx_204;
if (l_iadx_84 < 23.0 && l_iadx_84 != 0.0) l_text_24 = "h";
if (l_iadx_84 >= 23.0 && l_iadx_84 < 28.0 && l_iadx_92 > l_iadx_100) l_text_24 = "ě";
if (l_iadx_84 >= 23.0 && l_iadx_84 < 28.0 && l_iadx_92 < l_iadx_100) l_text_24 = "î";
if (l_iadx_84 >= 28.0 && l_iadx_92 > l_iadx_100) l_text_24 = "é";
if (l_iadx_84 >= 28.0 && l_iadx_92 < l_iadx_100) l_text_24 = "ę";
if (l_iadx_108 < 23.0 && l_iadx_108 != 0.0) l_text_32 = "h";
if (l_iadx_108 >= 23.0 && l_iadx_108 < 28.0 && l_iadx_116 > l_iadx_124) l_text_32 = "ě";
if (l_iadx_108 >= 23.0 && l_iadx_108 < 28.0 && l_iadx_116 < l_iadx_124) l_text_32 = "î";
if (l_iadx_108 >= 28.0 && l_iadx_116 > l_iadx_124) l_text_32 = "é";
if (l_iadx_108 >= 28.0 && l_iadx_116 < l_iadx_124) l_text_32 = "ę";
if (l_iadx_132 < 23.0 && l_iadx_132 != 0.0) l_text_40 = "h";
if (l_iadx_132 >= 23.0 && l_iadx_132 < 28.0 && l_iadx_140 > l_iadx_148) l_text_40 = "ě";
if (l_iadx_132 >= 23.0 && l_iadx_132 < 28.0 && l_iadx_140 < l_iadx_148) l_text_40 = "î";
if (l_iadx_132 >= 28.0 && l_iadx_140 > l_iadx_148) l_text_40 = "é";
if (l_iadx_132 >= 28.0 && l_iadx_140 < l_iadx_148) l_text_40 = "ę";
if (l_iadx_156 < 23.0 && l_iadx_156 != 0.0) l_text_48 = "h";
if (l_iadx_156 >= 23.0 && l_iadx_156 < 28.0 && l_iadx_164 > l_iadx_172) l_text_48 = "ě";
if (l_iadx_156 >= 23.0 && l_iadx_156 < 28.0 && l_iadx_164 < l_iadx_172) l_text_48 = "î";
if (l_iadx_156 >= 28.0 && l_iadx_172 > l_iadx_172) l_text_48 = "é";
if (l_iadx_156 >= 28.0 && l_iadx_164 < l_iadx_172) l_text_48 = "ę";
if (l_iadx_180 < 23.0 && l_iadx_180 != 0.0) ls_unused_56 = "h";
if (l_iadx_180 >= 23.0 && l_iadx_180 < 28.0 && l_iadx_188 > l_iadx_196) ls_unused_56 = "ě";
if (l_iadx_180 >= 23.0 && l_iadx_180 < 28.0 && l_iadx_188 < l_iadx_196) ls_unused_56 = "î";
if (l_iadx_180 >= 28.0 && l_iadx_188 > l_iadx_196) ls_unused_56 = "é";
if (l_iadx_180 >= 28.0 && l_iadx_188 < l_iadx_196) ls_unused_56 = "ę";
if (l_iadx_204 < 23.0 && l_iadx_204 != 0.0) l_text_64 = "h";
if (l_iadx_204 >= 23.0 && l_iadx_204 < 28.0 && l_iadx_212 > l_iadx_220) l_text_64 = "ě";
if (l_iadx_204 >= 23.0 && l_iadx_204 < 28.0 && l_iadx_212 < l_iadx_220) l_text_64 = "î";
if (l_iadx_204 >= 28.0 && l_iadx_212 > l_iadx_220) l_text_64 = "é";
if (l_iadx_204 >= 28.0 && l_iadx_212 < l_iadx_220) l_text_64 = "ę";
ObjectCreate("Trend-1", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-1", "5 min:", 9, "Lucida Sans Regular", LightSteelBlue);
ObjectSet("Trend-1", OBJPROP_CORNER, 0);
ObjectSet("Trend-1", OBJPROP_XDISTANCE, 185);
ObjectSet("Trend-1", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-2", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-2", " ADX " + StringSubstr(l_iadx_228, 0, 5) + " ", 9, "Lucida Sands Regular", l_color_0);
ObjectSet("Trend-2", OBJPROP_CORNER, 0);
ObjectSet("Trend-2", OBJPROP_XDISTANCE, 225);
ObjectSet("Trend-2", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-2a", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-2a", l_text_24, 9, "Wingdings", l_color_0);
ObjectSet("Trend-2a", OBJPROP_CORNER, 0);
ObjectSet("Trend-2a", OBJPROP_XDISTANCE, 288);
ObjectSet("Trend-2a", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-3", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-3", "15 min:", 9, "Lucida Sans Regular", LightSteelBlue);
ObjectSet("Trend-3", OBJPROP_CORNER, 0);
ObjectSet("Trend-3", OBJPROP_XDISTANCE, 318);
ObjectSet("Trend-3", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-4", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-4", " ADX " + StringSubstr(l_iadx_236, 0, 5) + " ", 9, "Lucida Sands Regular", l_color_4);
ObjectSet("Trend-4", OBJPROP_CORNER, 0);
ObjectSet("Trend-4", OBJPROP_XDISTANCE, 363);
ObjectSet("Trend-4", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-4a", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-4a", l_text_32, 9, "Wingdings", l_color_4);
ObjectSet("Trend-4a", OBJPROP_CORNER, 0);
ObjectSet("Trend-4a", OBJPROP_XDISTANCE, 426);
ObjectSet("Trend-4a", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-5", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-5", "30 min:", 9, "Lucida Sans Regular", LightSteelBlue);
ObjectSet("Trend-5", OBJPROP_CORNER, 0);
ObjectSet("Trend-5", OBJPROP_XDISTANCE, 453);
ObjectSet("Trend-5", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-6", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-6", " ADX " + StringSubstr(l_iadx_244, 0, 5) + " ", 9, "Lucida Sands Regular", l_color_8);
ObjectSet("Trend-6", OBJPROP_CORNER, 0);
ObjectSet("Trend-6", OBJPROP_XDISTANCE, 496);
ObjectSet("Trend-6", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-6a", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-6a", l_text_40, 9, "Wingdings", l_color_8);
ObjectSet("Trend-6a", OBJPROP_CORNER, 0);
ObjectSet("Trend-6a", OBJPROP_XDISTANCE, 557);
ObjectSet("Trend-6a", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-7", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-7", "1 H:", 9, "Lucida Sans Regular", LightSteelBlue);
ObjectSet("Trend-7", OBJPROP_CORNER, 0);
ObjectSet("Trend-7", OBJPROP_XDISTANCE, 580);
ObjectSet("Trend-7", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-8", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-8", " ADX " + StringSubstr(l_iadx_252, 0, 5) + " ", 9, "Lucida Sands Regular", l_color_12);
ObjectSet("Trend-8", OBJPROP_CORNER, 0);
ObjectSet("Trend-8", OBJPROP_XDISTANCE, 610);
ObjectSet("Trend-8", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-8a", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-8a", l_text_48, 9, "Wingdings", l_color_12);
ObjectSet("Trend-8a", OBJPROP_CORNER, 0);
ObjectSet("Trend-8a", OBJPROP_XDISTANCE, 672);
ObjectSet("Trend-8a", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-9", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-9", "4 H:", 9, "Lucida Sans Regular", LightSteelBlue);
ObjectSet("Trend-9", OBJPROP_CORNER, 0);
ObjectSet("Trend-9", OBJPROP_XDISTANCE, 702);
ObjectSet("Trend-9", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-10", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-10", " ADX " + StringSubstr(l_iadx_260, 0, 5) + " ", 9, "Lucida Sands Regular", l_color_16);
ObjectSet("Trend-10", OBJPROP_CORNER, 0);
ObjectSet("Trend-10", OBJPROP_XDISTANCE, 732);
ObjectSet("Trend-10", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-10a", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-10a", l_text_64, 9, "Wingdings", l_color_20);
ObjectSet("Trend-10a", OBJPROP_CORNER, 0);
ObjectSet("Trend-10a", OBJPROP_XDISTANCE, 793);
ObjectSet("Trend-10a", OBJPROP_YDISTANCE, 2);
if (D_ADX == TRUE) {
ObjectCreate("Trend-11", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-11", "Denní:", 9, "Lucida Sans Regular", LightSteelBlue);
ObjectSet("Trend-11", OBJPROP_CORNER, 0);
ObjectSet("Trend-11", OBJPROP_XDISTANCE, 823);
ObjectSet("Trend-11", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-12", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-12", " ADX " + StringSubstr(l_iadx_268, 0, 5) + " ", 9, "Lucida Sands Regular", l_color_20);
ObjectSet("Trend-12", OBJPROP_CORNER, 0);
ObjectSet("Trend-12", OBJPROP_XDISTANCE, 863);
ObjectSet("Trend-12", OBJPROP_YDISTANCE, 2);
ObjectCreate("Trend-12a", OBJ_LABEL, WindowFind("Trend (" + Symbol() + ")"), 0, 0);
ObjectSetText("Trend-12a", l_text_64, 9, "Wingdings", l_color_20);
ObjectSet("Trend-12a", OBJPROP_CORNER, 0);
ObjectSet("Trend-12a", OBJPROP_XDISTANCE, 923);
ObjectSet("Trend-12a", OBJPROP_YDISTANCE, 2);
}
return (0);
}
The Indicators for Simplicity Forex System
The Indicators for Simplicity Forex System
BolingerBands_Stop_v1 (BBStops_v1) can be downloaded
Heiken Ashi Smoothed (HAS) can be downloaded
SilverTrend_Signal can be downloaded
SignalBars_v6 can be downloaded
Fibo_Piv_v2 can be downloaded
BolingerBands_Stop_v1 (BBStops_v1) can be downloaded
Heiken Ashi Smoothed (HAS) can be downloaded
SilverTrend_Signal can be downloaded
SignalBars_v6 can be downloaded
Fibo_Piv_v2 can be downloaded
čtvrtek 13. srpna 2009
Jak správně backtestovat systém FinWin?
Jak správně backtestovat systém FinWin?
Jak správně backtestovat obchodní systém FinWin
FinWin - otázky a odpovědi
Jak obchodní systém FinWin funguje
Re: Diskuze k článku: Aktualizované informace o systému FinWin
Styl obchodování, seznamte se
Trading
je strategií s cílem opakovaně realizovat malé kurzové zisky podle krátkodobých signálů technické analýzy. Zisky i ztráty se zamykají již při malých cenových změnách, obvyklé je použití pákového efektu (vzniká tehdy, když je při uzavření obchodu potřeba složit pouze určitý zlomek z hodnoty obchodu - pak relativně malá procentní změna kurzu vyvolá mnohonásobně vyšší procentní změnu výnosnosti kapitálu vloženého do obchodu při jeho uzavření.) Podstupované riziko je při této strategii velmi vysoké, očekávaný výnos se ovšem pohybuje od desítek do stovek procent. Investičními nástroji jsou kvalitní akcie s úvěrem na nákup nebo do krátkého prodeje, futures kontrakty a burzovní opce.
zdroj
Swing traderObchodník, který má čas obchodovat pouze pár minut denně a zároveň si potrpí na menší psychologickou zátěž. Procentuální zhodnocení jeho účtu je statisticky nižší než u intraday traderů, zato má ale vyšší pravděpodobnost, že bude dříve ziskový. Drží pozice v řádu dní až týdnů. Během několika minut po otevření trhu provede plánované vstupy nebo výstupy a následně se už může věnovat zcela jiné činnosti. Soustředí se na diverzifikaci a v rámci portfolia obchoduje různou pákou různé trhy, jako jsou akcie, ETF, opce, FOREX a další.
Intraday traderObchodník, který se trhům věnuje na plný úvazek (full time trader), což mu tvoří hlavní zdroj příjmů. Za větší psychologickou zátěž očekává řádově vyšší zhodnocení. Z pozice vystupuje vždy ve stejný den, jako do ní vstoupil. Pokud drží pozice jen minuty nebo sekundy je scalp trader. Má kvalitního brokera, nástroje i data. Soustředí se na jeden trh, který se snaží dokonale zvládnout. Hlavním trhem je emini (futures na akciové indexy nebo komodity) nebo FOREX. Obchodní signály jsou v převážné většině založeny na technické analýze.
zdroj: Ludvík Turek
OptionVue – opční software
Automatické Forex obchodní systémy - pozor na ně
Variace a vylepšení systému FinWin (3): pattern 0/v - názorný den
Jak správně backtestovat obchodní systém FinWin
FinWin - otázky a odpovědi
Jak obchodní systém FinWin funguje
Re: Diskuze k článku: Aktualizované informace o systému FinWin
Styl obchodování, seznamte se
Trading
je strategií s cílem opakovaně realizovat malé kurzové zisky podle krátkodobých signálů technické analýzy. Zisky i ztráty se zamykají již při malých cenových změnách, obvyklé je použití pákového efektu (vzniká tehdy, když je při uzavření obchodu potřeba složit pouze určitý zlomek z hodnoty obchodu - pak relativně malá procentní změna kurzu vyvolá mnohonásobně vyšší procentní změnu výnosnosti kapitálu vloženého do obchodu při jeho uzavření.) Podstupované riziko je při této strategii velmi vysoké, očekávaný výnos se ovšem pohybuje od desítek do stovek procent. Investičními nástroji jsou kvalitní akcie s úvěrem na nákup nebo do krátkého prodeje, futures kontrakty a burzovní opce.
zdroj
Swing traderObchodník, který má čas obchodovat pouze pár minut denně a zároveň si potrpí na menší psychologickou zátěž. Procentuální zhodnocení jeho účtu je statisticky nižší než u intraday traderů, zato má ale vyšší pravděpodobnost, že bude dříve ziskový. Drží pozice v řádu dní až týdnů. Během několika minut po otevření trhu provede plánované vstupy nebo výstupy a následně se už může věnovat zcela jiné činnosti. Soustředí se na diverzifikaci a v rámci portfolia obchoduje různou pákou různé trhy, jako jsou akcie, ETF, opce, FOREX a další.
Intraday traderObchodník, který se trhům věnuje na plný úvazek (full time trader), což mu tvoří hlavní zdroj příjmů. Za větší psychologickou zátěž očekává řádově vyšší zhodnocení. Z pozice vystupuje vždy ve stejný den, jako do ní vstoupil. Pokud drží pozice jen minuty nebo sekundy je scalp trader. Má kvalitního brokera, nástroje i data. Soustředí se na jeden trh, který se snaží dokonale zvládnout. Hlavním trhem je emini (futures na akciové indexy nebo komodity) nebo FOREX. Obchodní signály jsou v převážné většině založeny na technické analýze.
zdroj: Ludvík Turek
OptionVue – opční software
Automatické Forex obchodní systémy - pozor na ně
Variace a vylepšení systému FinWin (3): pattern 0/v - názorný den
Přihlásit se k odběru:
Příspěvky (Atom)