Re: Something interesting please post here (Metatrader)

3624
SijjiN wrote: Mon Feb 12, 2024 8:30 pm That is Pine Script for TradingView Buddy.
Pine Script™ is TradingView’s programming language.
That script had errors, it didn’t work, this one has been fixed!
Maybe there are specialists here who can convert it to MT4 ???
These users thanked the author dmnik for the post:
SijjiN
Who knows others is wise
Who knows himself is enlightened


Re: Something interesting please post here (Metatrader)

3630
Jedidiah wrote: Sun Dec 18, 2022 9:43 am eurusd-m30-alpari-international-limited.png

Please check out the Investing.com Economic Calendar indicator with the following usefull options:

TimeZone Selection
Box Alert before event
Country Filter (8 contries and EU)
News Importance Filter(L,M,H)
advanced display settings(flags, background, fonts, subwindow etc)



Code:
input string CalendarDirectory = "Investing.com News"; // Calendar Directory
input string CalendarName = "Investing.com "; // Calendar Name
input int DownloadPause = 120; // Pause Between Downloads(sec)
input ENUM_TIMEZONE TimeMode = 0; // Time Mode
input int TimeZone = 3; // Time Zone
input bool AlertOn = false; // AlertOn
input double AlertTimeGap = 1; // News & Alert Time Gap(min)
input bool PrintInLog = false; // Print in Log
input bool DisplayPanel = true; // Display Information Panel
input bool DisplayFlags = true; // Display Flags Option
input bool DisplayLines = true; // Display Lines Option
input bool DisplayText = false; // Display Text Option
input bool DisplayEvents = true; // Display Events Option
input int LineStyle = 3; // Line Style
input int MaxEventLength = 27; // News Max Length(in symbols)
input bool SaveHTMFormat = false; // Save HTM Format

input string countryFilter = " Currency Filter(None-Off, Color-On): ";

input color EUR = clrPink; // Euro Zone(EUR)
input color USD = clrDodgerBlue; // US(USD)
input color JPY = clrOrange; // Japan(JPY)
input color GBP = clrRed; // UK(GBP)
input color CHF = clrMagenta; // Switzerland(CHF)
input color AUD = clrGreen; // Australia(AUD)
input color CAD = clrTomato; // Canada(CAD)
input color NZD = clrGray; // New Zealand(NZD)
input color CNY = clrOrange; // China(CNY)

input string impFilter = " Importance Filter: ";
input string NewsImportance = "L,M,H"; // News Importance Filter ("" - all)

input string graphSets = " Graph Settings: ";
input int window = 0; // Window: 0-chart window,1-1st subwindow,2-2nd subwindow and so on
input int step_X = 20;
input int step_Y = 20;
input int offset_X = 30;
input int offset_Y = 30;
input string textFontName = "Arial";
input string headFontName = "Arial Black";
input int fontSize = 8;
input color textColor = clrSilver;
input color timeColor = clrSilver;
input color lowImportanceColor = clrLightBlue;
input color medImportanceColor = clrOrange;
input color highImportanceColor = clrRed;
input bool useImportanceColor = false;
input color betterNewsColor = clrGreenYellow; // Better News Color
input color worseNewsColor = clrTomato; // Worse News Color
input uchar upcomNewsArrowCode = 108;
input color upcomNewsArrowColor = clrMediumSeaGreen;
input color backgroundColor = C'0,50,70'; // Background Color: None-off, color-on
input int backgroundBorder = -1; // Background Border: -1-off,0...2-on

Attachment 27504


UPDATES:

2017.09.14 - fixed versions v1.2 600+ uploaded.
2019.02.21 - updated versions v1.3 for MT4 and MT5 uploaded.
Hi,

This looks great. Does anyone have an MT5 news indicator that will automatically stop EA trading within a time bracket around announcements and close open trades at that time horizon? Thanks


Who is online

Users browsing this forum: Ahrefs [Bot], Applebot [Crawler], cladi53, DotNetDotCom [Bot], Google [Bot], mrtools, Narutopips, Proximic [Bot], tmostafa007 and 55 guests