mirror of
https://github.com/rithsila/MT5-EA-Sniper-Strategy.git
synced 2026-08-22 15:18:14 +00:00
Organize project in different folders
This commit is contained in:
Binary file not shown.
+9
-4
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
#include <Indicators/BillWilliams.mqh>
|
#include <Indicators/BillWilliams.mqh>
|
||||||
#include <Indicators/Trend.mqh>
|
#include <Indicators/Trend.mqh>
|
||||||
|
#include <Libraries/NavLib.mq5>
|
||||||
|
|
||||||
CiAlligator* alligator;
|
CiAlligator* alligator;
|
||||||
CiMA* ma;
|
CiMA* ma;
|
||||||
@@ -55,6 +56,8 @@ void OnDeinit(const int reason)
|
|||||||
{
|
{
|
||||||
//---
|
//---
|
||||||
|
|
||||||
|
ObjectsDeleteAll(0);
|
||||||
|
Comment("");
|
||||||
}
|
}
|
||||||
//+------------------------------------------------------------------+
|
//+------------------------------------------------------------------+
|
||||||
//| Expert tick function |
|
//| Expert tick function |
|
||||||
@@ -82,6 +85,8 @@ void OnTick()
|
|||||||
comm = "Trade alert on " + symb;
|
comm = "Trade alert on " + symb;
|
||||||
comm += "\n";
|
comm += "\n";
|
||||||
comm += "";
|
comm += "";
|
||||||
|
|
||||||
|
Notify(comm);
|
||||||
|
|
||||||
|
|
||||||
if(sma < currentPrice)
|
if(sma < currentPrice)
|
||||||
@@ -143,11 +148,11 @@ void OnTick()
|
|||||||
//+------------------------------------------------------------------+
|
//+------------------------------------------------------------------+
|
||||||
void Notify(string message)
|
void Notify(string message)
|
||||||
{
|
{
|
||||||
|
Print("Message sent ", message);
|
||||||
SendNotification(message);
|
//SendNotification(message);
|
||||||
|
|
||||||
string headers;
|
string headers;
|
||||||
string url = "https://api.telegram.org/bot1203586996:AAF3GTCy2yVyvXsCjd9pODhJncTUG7NcOKw/sendMessage?chat_id=-457969372&text="+message;
|
string url = "https://api.telegram.org/bot5854676759:AAEGN1a1HQ-3uiVtv7FxEf7IXKrMATBzkQg/sendMessage?chat_id=-1001821417162&text="+message;
|
||||||
char data[],result[];
|
char data[],result[];
|
||||||
|
|
||||||
int res = WebRequest("GET",
|
int res = WebRequest("GET",
|
||||||
@@ -160,7 +165,7 @@ void Notify(string message)
|
|||||||
result,
|
result,
|
||||||
headers
|
headers
|
||||||
);
|
);
|
||||||
//Print(CharArrayToString(result)); // see the results
|
Print(CharArrayToString(result), " Res ", res, headers); // see the results
|
||||||
|
|
||||||
if(res==-1)
|
if(res==-1)
|
||||||
{
|
{
|
||||||
Binary file not shown.
BIN
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user