Skip to content

Commit

Permalink
Removes trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Jan 20, 2025
1 parent fd7eea3 commit 2ef2e5e
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 59 deletions.
38 changes: 19 additions & 19 deletions Misc/NTREND.mq4
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//Available @ https://fxcodebase.com/code/viewtopic.php?f=38&t=73852

//+------------------------------------------------------------------------------------------------+
//| Copyright © 2023, Gehtsoft USA LLC |
//| Copyright © 2023, Gehtsoft USA LLC |
//| http://fxcodebase.com |
//+------------------------------------------------------------------------------------------------+
//| Developed by : Mario Jemic |
//| Developed by : Mario Jemic |
//| [email protected] |
//| https://AppliedMachineLearning.systems |
//| https://mario-jemic.com/ |
Expand All @@ -14,7 +14,7 @@
//| Our work would not be possible without your support. |
//+------------------------------------------------------------------------------------------------+
//| Paypal: https://goo.gl/9Rj74e |
//| Patreon : https://goo.gl/GdXWeN |
//| Patreon : https://goo.gl/GdXWeN |
//+------------------------------------------------------------------------------------------------+


Expand Down Expand Up @@ -134,50 +134,50 @@ int start() {
g_ibuf_208[li_12] = EMPTY_VALUE;
if (li_12 == 0) {
if (dtBarTime != Time[0]) {
dtBarTime = Time[0];
dtBarTime = Time[0];
if (SendAlert) Alert("NTrend alert! ",StringConcatenate(Symbol()," - Trend UP"));
if (SendEmail) SendMail("NTrend alert! ",StringConcatenate("Alert for ",Symbol()));
}
}
}
gi_156 = 1;
}
if (Close[li_12] < gd_132 && Close[li_12] < gd_124 && gi_156 != 2) {
g_ibuf_208[li_12] = gd_132;
g_ibuf_204[li_12] = EMPTY_VALUE;
if (li_12 == 0) {
if (dtBarTime != Time[0]) {
dtBarTime = Time[0];
dtBarTime = Time[0];
if (SendAlert) Alert("NTrend alert! ",StringConcatenate(Symbol()," - Trend DOWN"));
if (SendEmail) SendMail("NTrend alert! ",StringConcatenate("Alert for ",Symbol()));
}
}
}
gi_156 = 2;
}
}

return (0);
}

//+------------------------------------------------------------------------------------------------+
//| We appreciate your support. |
//| We appreciate your support. |
//+------------------------------------------------------------------------------------------------+
//| Paypal: https://goo.gl/9Rj74e |
//| Patreon : https://goo.gl/GdXWeN |
//| Patreon : https://goo.gl/GdXWeN |
//+------------------------------------------------------------------------------------------------+
//| Developed by : Mario Jemic |
//| Developed by : Mario Jemic |
//| [email protected] |
//| https://AppliedMachineLearning.systems |
//| https://mario-jemic.com/ |
//+------------------------------------------------------------------------------------------------+

//+------------------------------------------------------------------------------------------------+
//|BitCoin : 15VCJTLaz12Amr7adHSBtL9v8XomURo9RF |
//|Ethereum : 0x8C110cD61538fb6d7A2B47858F0c0AaBd663068D |
//|BitCoin : 15VCJTLaz12Amr7adHSBtL9v8XomURo9RF |
//|Ethereum : 0x8C110cD61538fb6d7A2B47858F0c0AaBd663068D |
//|SOL Address : 4tJXw7JfwF3KUPSzrTm1CoVq6Xu4hYd1vLk3VF2mjMYh |
//|Cardano/ADA : addr1v868jza77crzdc87khzpppecmhmrg224qyumud6utqf6f4s99fvqv |
//|Cardano/ADA : addr1v868jza77crzdc87khzpppecmhmrg224qyumud6utqf6f4s99fvqv |
//|Dogecoin Address : DBGXP1Nc18ZusSRNsj49oMEYFQgAvgBVA8 |
//|SHIB Address : 0x1817D9ebb000025609Bf5D61E269C64DC84DA735 |
//|Binance(ERC20 & BSC only) : 0xe84751063de8ade7c5fbff5e73f6502f02af4e2c |
//|BitCoin Cash : 1BEtS465S3Su438Kc58h2sqvVvHK9Mijtg |
//|LiteCoin : LLU8PSY2vsq7B9kRELLZQcKf5nJQrdeqwD |
//+------------------------------------------------------------------------------------------------+
//|SHIB Address : 0x1817D9ebb000025609Bf5D61E269C64DC84DA735 |
//|Binance(ERC20 & BSC only) : 0xe84751063de8ade7c5fbff5e73f6502f02af4e2c |
//|BitCoin Cash : 1BEtS465S3Su438Kc58h2sqvVvHK9Mijtg |
//|LiteCoin : LLU8PSY2vsq7B9kRELLZQcKf5nJQrdeqwD |
//+------------------------------------------------------------------------------------------------+
48 changes: 24 additions & 24 deletions Misc/half trend.mq4
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//Available @ https://fxcodebase.com/code/viewtopic.php?f=38&t=73852

//+------------------------------------------------------------------------------------------------+
//| Copyright © 2023, Gehtsoft USA LLC |
//| Copyright © 2023, Gehtsoft USA LLC |
//| http://fxcodebase.com |
//+------------------------------------------------------------------------------------------------+
//| Developed by : Mario Jemic |
//| Developed by : Mario Jemic |
//| [email protected] |
//| https://AppliedMachineLearning.systems |
//| https://mario-jemic.com/ |
Expand All @@ -14,7 +14,7 @@
//| Our work would not be possible without your support. |
//+------------------------------------------------------------------------------------------------+
//| Paypal: https://goo.gl/9Rj74e |
//| Patreon : https://goo.gl/GdXWeN |
//| Patreon : https://goo.gl/GdXWeN |
//+------------------------------------------------------------------------------------------------+


Expand Down Expand Up @@ -56,7 +56,7 @@ double arrup[],arrdwn[];
int init()
{
IndicatorBuffers(7); // +1 buffer - trend[]

SetIndexBuffer(0,up);
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(1,down);
Expand All @@ -69,7 +69,7 @@ int init()
SetIndexEmptyValue(0,0.0);
SetIndexEmptyValue(1,0.0);
SetIndexEmptyValue(6,0.0);

if(ShowBars)
{
SetIndexStyle(2,DRAW_HISTOGRAM, STYLE_SOLID);
Expand All @@ -89,9 +89,9 @@ int init()
{
SetIndexStyle(4,DRAW_NONE);
SetIndexStyle(5,DRAW_NONE);
}
}


nexttrend=0;
minhighprice= High[Bars-1];
maxlowprice = Low[Bars-1];
Expand All @@ -112,7 +112,7 @@ int start()
if(counted_bars<0) return(-1);
if(counted_bars>0) counted_bars--;
int limit = MathMin(Bars-counted_bars,Bars-1);

for(int i=Bars-1; i>=0; i--)
{
lowprice_i=iLow(Symbol(),Period(),iLowest(Symbol(),Period(),MODE_LOW,Amplitude,i));
Expand Down Expand Up @@ -168,7 +168,7 @@ int start()
{
down[i]=up[i+1];
down[i+1]=down[i];
arrdwn[i] = down[i] + 2*atr;
arrdwn[i] = down[i] + 2*atr;
}
else
{
Expand All @@ -184,7 +184,7 @@ int start()
}
//+------------------------------------------------------------------+
//+-------------------------------------------------------------------
//|
//|
//+-------------------------------------------------------------------
//
//
Expand All @@ -199,7 +199,7 @@ void manageAlerts()
int whichBar;
if (alertsOnCurrent)
whichBar = 0;
else whichBar = 1;
else whichBar = 1;
if (arrup[whichBar] != EMPTY_VALUE) doAlert(whichBar,"up");
if (arrdwn[whichBar] != EMPTY_VALUE) doAlert(whichBar,"down");
}
Expand All @@ -216,7 +216,7 @@ void doAlert(int forBar, string doWhat)
static string previousAlert="nothing";
static datetime previousTime;
// string message;

if (previousAlert != doWhat || previousTime != Time[forBar]) {
previousAlert = doWhat;
previousTime = Time[forBar];
Expand All @@ -237,25 +237,25 @@ void doAlert(int forBar, string doWhat)
}

//+------------------------------------------------------------------------------------------------+
//| We appreciate your support. |
//| We appreciate your support. |
//+------------------------------------------------------------------------------------------------+
//| Paypal: https://goo.gl/9Rj74e |
//| Patreon : https://goo.gl/GdXWeN |
//| Patreon : https://goo.gl/GdXWeN |
//+------------------------------------------------------------------------------------------------+
//| Developed by : Mario Jemic |
//| Developed by : Mario Jemic |
//| [email protected] |
//| https://AppliedMachineLearning.systems |
//| https://mario-jemic.com/ |
//+------------------------------------------------------------------------------------------------+

//+------------------------------------------------------------------------------------------------+
//|BitCoin : 15VCJTLaz12Amr7adHSBtL9v8XomURo9RF |
//|Ethereum : 0x8C110cD61538fb6d7A2B47858F0c0AaBd663068D |
//|BitCoin : 15VCJTLaz12Amr7adHSBtL9v8XomURo9RF |
//|Ethereum : 0x8C110cD61538fb6d7A2B47858F0c0AaBd663068D |
//|SOL Address : 4tJXw7JfwF3KUPSzrTm1CoVq6Xu4hYd1vLk3VF2mjMYh |
//|Cardano/ADA : addr1v868jza77crzdc87khzpppecmhmrg224qyumud6utqf6f4s99fvqv |
//|Cardano/ADA : addr1v868jza77crzdc87khzpppecmhmrg224qyumud6utqf6f4s99fvqv |
//|Dogecoin Address : DBGXP1Nc18ZusSRNsj49oMEYFQgAvgBVA8 |
//|SHIB Address : 0x1817D9ebb000025609Bf5D61E269C64DC84DA735 |
//|Binance(ERC20 & BSC only) : 0xe84751063de8ade7c5fbff5e73f6502f02af4e2c |
//|BitCoin Cash : 1BEtS465S3Su438Kc58h2sqvVvHK9Mijtg |
//|LiteCoin : LLU8PSY2vsq7B9kRELLZQcKf5nJQrdeqwD |
//+------------------------------------------------------------------------------------------------+
//|SHIB Address : 0x1817D9ebb000025609Bf5D61E269C64DC84DA735 |
//|Binance(ERC20 & BSC only) : 0xe84751063de8ade7c5fbff5e73f6502f02af4e2c |
//|BitCoin Cash : 1BEtS465S3Su438Kc58h2sqvVvHK9Mijtg |
//|LiteCoin : LLU8PSY2vsq7B9kRELLZQcKf5nJQrdeqwD |
//+------------------------------------------------------------------------------------------------+
32 changes: 16 additions & 16 deletions Misc/half_trend+ntrend(nrp).mq4
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//Available @ https://fxcodebase.com/code/viewtopic.php?f=38&t=73852

//+------------------------------------------------------------------------------------------------+
//| Copyright © 2023, Gehtsoft USA LLC |
//| Copyright © 2023, Gehtsoft USA LLC |
//| http://fxcodebase.com |
//+------------------------------------------------------------------------------------------------+
//| Developed by : Mario Jemic |
//| Developed by : Mario Jemic |
//| [email protected] |
//| https://AppliedMachineLearning.systems |
//| https://mario-jemic.com/ |
Expand All @@ -14,15 +14,15 @@
//| Our work would not be possible without your support. |
//+------------------------------------------------------------------------------------------------+
//| Paypal: https://goo.gl/9Rj74e |
//| Patreon : https://goo.gl/GdXWeN |
//| Patreon : https://goo.gl/GdXWeN |
//+------------------------------------------------------------------------------------------------+


#property copyright "Copyright © 2023, Gehtsoft USA LLC"
#property link "http://fxcodebase.com"
#property version "1.0"


#property indicator_chart_window
#property indicator_buffers 9
#property indicator_color1 DeepSkyBlue // up[]
Expand Down Expand Up @@ -349,25 +349,25 @@ void doAlert(int forBar, string doWhat)
}
//+------------------------------------------------------------------+
//+------------------------------------------------------------------------------------------------+
//| We appreciate your support. |
//| We appreciate your support. |
//+------------------------------------------------------------------------------------------------+
//| Paypal: https://goo.gl/9Rj74e |
//| Patreon : https://goo.gl/GdXWeN |
//| Patreon : https://goo.gl/GdXWeN |
//+------------------------------------------------------------------------------------------------+
//| Developed by : Mario Jemic |
//| Developed by : Mario Jemic |
//| [email protected] |
//| https://AppliedMachineLearning.systems |
//| https://mario-jemic.com/ |
//+------------------------------------------------------------------------------------------------+

//+------------------------------------------------------------------------------------------------+
//|BitCoin : 15VCJTLaz12Amr7adHSBtL9v8XomURo9RF |
//|Ethereum : 0x8C110cD61538fb6d7A2B47858F0c0AaBd663068D |
//|BitCoin : 15VCJTLaz12Amr7adHSBtL9v8XomURo9RF |
//|Ethereum : 0x8C110cD61538fb6d7A2B47858F0c0AaBd663068D |
//|SOL Address : 4tJXw7JfwF3KUPSzrTm1CoVq6Xu4hYd1vLk3VF2mjMYh |
//|Cardano/ADA : addr1v868jza77crzdc87khzpppecmhmrg224qyumud6utqf6f4s99fvqv |
//|Cardano/ADA : addr1v868jza77crzdc87khzpppecmhmrg224qyumud6utqf6f4s99fvqv |
//|Dogecoin Address : DBGXP1Nc18ZusSRNsj49oMEYFQgAvgBVA8 |
//|SHIB Address : 0x1817D9ebb000025609Bf5D61E269C64DC84DA735 |
//|Binance(ERC20 & BSC only) : 0xe84751063de8ade7c5fbff5e73f6502f02af4e2c |
//|BitCoin Cash : 1BEtS465S3Su438Kc58h2sqvVvHK9Mijtg |
//|LiteCoin : LLU8PSY2vsq7B9kRELLZQcKf5nJQrdeqwD |
//+------------------------------------------------------------------------------------------------+
//|SHIB Address : 0x1817D9ebb000025609Bf5D61E269C64DC84DA735 |
//|Binance(ERC20 & BSC only) : 0xe84751063de8ade7c5fbff5e73f6502f02af4e2c |
//|BitCoin Cash : 1BEtS465S3Su438Kc58h2sqvVvHK9Mijtg |
//|LiteCoin : LLU8PSY2vsq7B9kRELLZQcKf5nJQrdeqwD |
//+------------------------------------------------------------------------------------------------+

0 comments on commit 2ef2e5e

Please sign in to comment.