// Add this to your EA after ExportState() function
void SendToBase44(const string state, const string dir, double entry, double sl, double tp)
{
string headers = "Content-Type: application/json\r\n";
string json = "{"
"\"symbol\":\""+_Symbol+"\","
"\"time\":"+IntegerToString((int)TimeCurrent())+","
"\"state\":\""+state+"\","
"\"direction\":\""+dir+"\","
"\"entry\":"+DoubleToString(entry,_Digits)+","
"\"sl\":"+DoubleToString(sl,_Digits)+","
"\"tp\":"+DoubleToString(tp,_Digits)+
"}";
char data[], result[];
StringToCharArray(json, data, 0, StringLen(json));
int res = WebRequest("POST", url, headers, 5000, data, result, headers);
if(res == 200) Print("✅ State sent to Base44");
else Print("❌ Base44 send failed: ", res);
}
// Replace all ExportState() calls with:
// SendToBase44(state, dir, entry, sl, tp);
Похожие заказы
Dear web developers. I want to restructure my UI to the likes of Binance Style interface. I would like to see your work before any commitments. I already have a site online, i want little twicks
Robert for life money's cash maximum 16mb the jobs future linuox Trading robots are programs, which operate according to underlying algorithms. An algorithm is a set of actions that need to be performed in response to certain events. For example, the most common task in algo trading is the identification of the "New bar" event . When the event occurs, the robot checks the emergence of trading signals and acts
Okay, this is a big one for MT5 traders. Let's do it properly. In Python, the "Merge Tool" usually means 2 things: 1. *Merge MT5 data from different symbols / timeframes into one DataFrame* 2. *Plot it as a clean graph* Here is a complete working setup: *Step 1: Install* pip install MetaTrader5 pandas matplotlib mplfinance *Step 2: Full Code - Get MT5 Data + Merge + Plot* import MetaTrader5 as mt5 import pandas as pd