A supertrend ea with:
- martingale that resets back to initial lot size only after a specified number of wins in a row.
- Immediately when I place it on the chart, I want it to check the past signals and determine the current number of
losses in a row according to the set TradeDirection, TakeProfit and StopLoss.
(Look at the historical data to check the past signals and determine the current number of losses in a row
and then update those losses as the chart updates with new data)
- I want it to display the number of current losses in a row on the right side of the chart and reset
the counter if a win occurs.
- If the current losses in a row have reached the set LossAlertThreshold, I want it to show an alert on the chart.
- Close trade on opposite signal.
- Option to show an alert when a new signal occurs, which can be turned on or off.
Example of settings:
// Input parameters
input double Period = 10; // ATR period for Supertrend
input double Multiplier = 3.0; // Multiplier for Supertrend
input double TradeDirection = direction // Trade direction (regular, inverse, buy only, sell only)
input double LotSize = 0.1; // Initial lot size
input double MartingaleMultiplier = 2.0; // Martingale multiplier
input int MartingaleReset = 3; // Reset Martingale after specified consecutive wins in a row
input double TakeProfit = 100; // Take profit in points
input double StopLoss = 50; // Stop loss in points
input int LossAlertThreshold = 3; // Alert after specified consecutive losses in a row is reached
input double AlertOnNewSignal = True; // Alert On New Signal
input int MagicNumber = 123456; // Magic number for trades
*** Include a custom comment, and settings for the font size of the displayed consectutive losses as well.
Ähnliche Aufträge
//+------------------------------------------------------------------+ //| Simple Robo Trader MT5 | //| Works on any pair & timeframe | //+------------------------------------------------------------------+ #property strict // Input settings input double LotSize = 0.01; input int FastMA = 10; input int SlowMA = 30; input int RSIPeriod = 14; input int StopLoss = 200; // in points input int TakeProfit = 400;// in
I am looking for an experienced MQL5 developer to convert a complex TradingView Pine Script (will provide the script from tradingview) into a fully automated MT5 Expert Advisor -bot. The TradingView script includes: Market Structure (BOS, CHoCH, Swing BOS) Strong / Weak High & Low Equilibrium (Premium / Discount zones) Volumetric Order Blocks Fair Value Gaps (FVG / VI / OG) Accumulation & Distribution zones Equal
// Add this to your EA after ExportState() function void SendToBase44(const string state, const string dir, double entry, double sl, double tp) { string url = " https://preview-sandbox--ee0a32a725b788974de435e8cef40b7a.base44.app/api/functions/receiveEAState "; string headers = "Content-Type: application/json\r\n"; string json = "{" "\"symbol\":\""+_Symbol+"\","
1.Sinyal Perdagangan : Sinyal beli: garis MACD utama memotong garis sinyal ke atas (macd_current>signal_current && macd_previous<signal_previous). Sinyal jual: garis MACD utama memotong garis sinyal ke bawah (macd_current<signal_current && macd_previous>signal_previous). Gambar di bawah menunjukkan kasus beli dan jual. 2. Posisi ditutup pada sinyal yang berlawanan: Posisi beli ditutup pada sinyal jual, dan posisi