DislikedSo, if you think that it's lame, obviously you are a noob and don't have any idea what could happen in real live trading...Ignored
i dont think anyone enjoys being called dirty names.
and hey, you really dont know me.
I will code your pivot EAs for no charge 28 replies
I will code your scalping EAs for no charge 163 replies
Oanda MT4 - Indicators and EAs not showing 2 replies
EAs and indicators relating to moutaki... 22 replies
InterbankFX has loaded its MT4 platform with custom EAs, indicators and scripts 1 reply
DislikedSo, if you think that it's lame, obviously you are a noob and don't have any idea what could happen in real live trading...Ignored
Disliked{quote} Looks like you're the stupid one! You don't even know what this indictaor is for!!!Learn to code!!! And learn to read code!!! Anyways, I got that code a very long time ago from a broker. I didn't bother to look at the code, because it's working as it's suppossed to...
Ignored
Disliked{quote} you talk really bad to people... i dont think anyone enjoys being called dirty names. and hey, you really dont know me.Ignored
Dislikedthe most important piece of the trading bot puzzle is the bias... am i long or short or neutral? the most important piece of the trading puzzle is the indicator function.. if it does not function properly, the bot will fizzle.. hint: moving averages and free indicators will never work.Ignored
Dislikedthe most important piece of the trading bot puzzle is the bias... am i long or short or neutral? the most important piece of the trading puzzle is the indicator function.. if it does not function properly, the bot will fizzle.. hint: moving averages and free indicators will never work.Ignored
Disliked{quote} hahahaha... I am an automated trading user and totally agree about the function of indicators, but some of your statements about MA and free indicators are not proven or you can't use them. ^_^Ignored
Disliked{quote} hahahaha... I am an automated trading user and totally agree about the function of indicators, but some of your statements about MA and free indicators are not proven or you can't use them. ^_^Ignored
Disliked{quote} And what else is new??? hint: post your lame advice somewhere else... Commercial indicators will not work either... they will only take your money from you!Ignored
Disliked{quote} Okay if you think moving averages and/or the basic free indicators are good, then I will wait here while you run around and count, how many people you know that have a trading program based on moving averages and/or the basic free indicators and they are consistently profitable... I'm going to save you the trouble... You don't know anyone that has a consistently profitable trading program based on moving averages and or free indicators. Thank youIgnored
Disliked{quote} Nobody is consistently profitable! Do you realise who is the richest person on Earth? Is that person profitable??? The answer is: -> GUESS WHAT?? ===>>> NO That person is spendnig YOUR money!!! And the funny thing is ===>>> YOU APPLAUD THAT PERSON!Ignored
Disliked{quote} Show us that one who is consistently profitable. With hard evidence. You opinion doesn't count as evidence!!! You are either a stupid AI, or living in a fantasy world. The whole world is running on credit, and you think that someone is consistently profitable... This is not even funny - it's tragic! PS. If you are actually from Texas, USA, then yeah, you are living in a bubble... sad...Ignored
Disliked{quote} Your reply proves my point! Your argument is:"Lol" What does that argument show? It only shows how stupid you actually are! EOTIgnored
//+------------------------------------------------------------------+
//| Gemini_Gold_Analysis.mq5 |
//| Copyright 2026, AI Trading Lab |
//+------------------------------------------------------------------+
#property copyright "Copyright 2026"
#property version "2.00"
#property indicator_chart_window
//--- Input Parameters
input string InpApiKey = "YOUR_GEMINI_API_KEY_HERE"; // Insert your Gemini API Key
input int InpUpdateHours = 4; // Refresh Interval (Hours)
input color InpTextColor = clrCyan; // Text Color
input int InpFontSize = 10; // Font Size
input int InpXOffset = 30; // Horizontal spacing from left
input int InpYOffset = 50; // Vertical spacing from top
//--- Global Variables
datetime last_update_time = 0;
int total_lines = 0;
const int UPDATE_INTERVAL_SEC = InpUpdateHours * 3600;
//+------------------------------------------------------------------+
//| Initialization Function |
//+------------------------------------------------------------------+
int OnInit()
{
// Immediate execution on launch
FetchGeminiAnalysis();
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Deinitialization Function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
ClearChartLabels();
}
//+------------------------------------------------------------------+
//| OnCalculate Execution Loop |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
const int prev_calculated,
const datetime &time[],
const double &open[],
const double &high[],
const double &low[],
const double &close[],
const long &tick_volume[],
const long &volume[],
const int &spread[])
{
// Check if 4 hours have elapsed
datetime current_time = TimeCurrent();
if(current_time - last_update_time >= UPDATE_INTERVAL_SEC)
{
FetchGeminiAnalysis();
}
return(rates_total);
}
//+------------------------------------------------------------------+
//| Core Network Request Function to Gemini API |
//+------------------------------------------------------------------+
void FetchGeminiAnalysis()
{
char post_data[];
char result_data[];
string response_headers;
int timeout = 10000; // 10 seconds network timeout limit
last_update_time = TimeCurrent();
// Hardcoded target search query for June 2026 economic environment
string prompt = "Considering geopolitical news and the economic news released in June 2026, "
"generate a highly concise 4-line summary of direction for spot gold prices on H1 chart.";
// Build valid JSON payload structurally accepted by Gemini API models
string payload = "{\"contents\": [{\"parts\": [{\"text\": \"" + prompt + "\"}]}]}";
StringToCharArray(payload, post_data, 0, WHOLE_ARRAY, CP_UTF8);
// API Endpoint construction using your unique authorization key
string url = "https://googleapis.com" + InpApiKey;
string headers = "Content-Type: application/json\r\n";
ResetLastError();
int res = WebRequest("POST", url, headers, timeout, post_data, result_data, response_headers);
if(res == 200)
{
string raw_json = CharArrayToString(result_data, 0, WHOLE_ARRAY, CP_UTF8);
string parsed_text = ExtractTextFromJson(raw_json);
RenderTextToChart(parsed_text);
}
else
{
RenderTextToChart("API Error Code: " + IntegerToString(res) + " - Check your API key or connections.");
}
}
//+------------------------------------------------------------------+
//| Quick Raw Text Extraction from JSON Structure |
//+------------------------------------------------------------------+
string ExtractTextFromJson(string json)
{
// Finds text returned inside the nested JSON string array safely
string search_key = "\"text\": \"";
int start_pos = StringFind(json, search_key);
if(start_pos == -1) return "Failed to interpret server JSON response.";
start_pos += StringLen(search_key);
int end_pos = StringFind(json, "\"", start_pos);
if(end_pos == -1) return "Failed to map trailing JSON characters.";
string clean_text = StringSubstr(json, start_pos, end_pos - start_pos);
// Clean basic JSON line breaks
StringReplace(clean_text, "\\n", "\n");
return clean_text;
}
//+------------------------------------------------------------------+
//| Display text on chart with vertical layout splits |
//+------------------------------------------------------------------+
void RenderTextToChart(string text)
{
ClearChartLabels();
string lines[];
// Split string by line breaks so text doesn't overflow horizontally off chart
ushort separator = StringGetCharacter("\n", 0);
total_lines = StringSplit(text, separator, lines);
for(int i = 0; i < total_lines; i++)
{
string object_name = "Gemini_Line_" + IntegerToString(i);
ObjectCreate(0, object_name, OBJ_LABEL, 0, 0, 0);
ObjectSetInteger(0, object_name, OBJPROP_XDISTANCE, InpXOffset);
// Stacks lines perfectly below each other by using a multiplier
ObjectSetInteger(0, object_name, OBJPROP_YDISTANCE, InpYOffset + (i * (InpFontSize + 6)));
ObjectSetInteger(0, object_name, OBJPROP_COLOR, InpTextColor);
ObjectSetInteger(0, object_name, OBJPROP_FONTSIZE, InpFontSize);
ObjectSetString(0, object_name, OBJPROP_FONT, "Arial");
ObjectSetString(0, object_name, OBJPROP_TEXT, lines[i]);
}
ChartRedraw(0);
}
//+------------------------------------------------------------------+
//| Chart Canvas Cleanup Routine |
//+------------------------------------------------------------------+
void ClearChartLabels()
{
for(int i = 0; i < 50; i++)
{
string object_name = "Gemini_Line_" + IntegerToString(i);
if(ObjectFind(0, object_name) >= 0)
{
ObjectDelete(0, object_name);
}
}
} input double ABminimum = 0.681; // AB at least 0.681 of XA input double ABmaximum = 0.768; input double BCminimum = 0.268; input double BCmaximun = 0.318; etc ...
Dislikedplease verify and provide step by step workflow //+------------------------------------------------------------------+ //| Gemini_Gold_Analysis.mq5 | //| Copyright 2026, AI Trading Lab | //+------------------------------------------------------------------+ #property copyright "Copyright 2026" #property version "2.00" #property indicator_chart_window //--- Input Parameters input string InpApiKey = "YOUR_GEMINI_API_KEY_HERE"; // Insert your Gemini API Key input int InpUpdateHours = 4; // Refresh Interval (Hours) input color InpTextColor = clrCyan;...Ignored
//+------------------------------------------------------------------+
//| Chart Canvas Cleanup Routine |
//+------------------------------------------------------------------+
void ClearChartLabels() {
ObjectsDeleteAll(0, "Gemini_Line_");
ChartRedraw(0);
} DislikedHi all, Where can i get ZUP mql4 Indicator that i can change the range of AB retrace like minimum range, maximum range of XA. also retracement range of BC (minimum and maximum) of leg AB, etc Example : input double ABminimum = 0.681; // AB at least 0.681 of XA input double ABmaximum = 0.768; input double BCminimum = 0.268; input double BCmaximun = 0.318; etc ... since it is based on ZigZag , and some Fibo number maybe ... that i want to compare with other Indicator like Stochastic Indicator Any clue is welcome ... Thanks a lot in advanceIgnored