Re-post: Supertrend Expert Advisor with alerts, loss count & martingale

Specification

I'm on a tight budget.

Supertrend EA Requirements

Main Features:

Martingale System:

The EA should increase the lot size after a loss.

The Martingale should reset back to the initial lot size only after a specified number of consecutive wins.

.........................

Historical Analysis on Initialization:

When the EA is placed on the chart, it should immediately check past signals based on TradeDirection, TakeProfit, and StopLoss.

It should calculate and display the current number of consecutive losses in a row.

This counter should update in real-time as new data arrives.

.........................

Loss Counter Display:

Show the current number of consecutive losses on the right side of the chart.

Reset the counter when a win occurs.

.........................

Loss Alerts:

If consecutive losses reach the LossAlertThreshold, display an alert on the chart.

.........................

Trade Management:

Close open trades when an opposite Supertrend signal appears.

.........................

Signal Alerts:

Option to display an alert when a new signal occurs.

This alert should be toggleable (can be turned on/off in settings).

.........................

Customization Options:

Custom trade comment.

Adjustable font size for the displayed consecutive losses.


// Supertrend Settings
input double Period = 10;                // ATR period for Supertrend  
input double Multiplier = 3.0;            // Multiplier for Supertrend  

// Trade Settings
input int TradeDirection = 0;             // Trade direction (0 = regular, 1 = inverse, 2 = buy only, 3 = sell only)  
input double LotSize = 0.1;               // Initial lot size  
input double TakeProfit = 100;            // Take profit in points  
input double StopLoss = 50;               // Stop loss in points  

// Martingale Settings
input double MartingaleMultiplier = 2.0;  // Martingale multiplier  
input int MartingaleReset = 3;            // Reset Martingale after specified consecutive wins  

// Alerts & Display
input int LossAlertThreshold = 3;         // Alert after specified consecutive losses  
input bool AlertOnNewSignal = true;       // Toggle alert on new signal  
input int FontSize = 12;                  // Font size for loss counter display  
input bool EnableEmailNotifications = false;    // Send email alerts  
input bool EnablePushNotifications = false;    // Send mobile push notifications 

// Other Settings
input string CustomComment = "Supertrend EA";  // Custom trade comment  
input int MagicNumber = 123456;                 // Magic number for trade identification  

Responded

1
Developer 1
Rating
(33)
Projects
35
20%
Arbitration
5
40% / 40%
Overdue
0
Free
Published: 1 code
2
Developer 2
Rating
(12)
Projects
12
17%
Arbitration
2
0% / 50%
Overdue
1
8%
Free
3
Developer 3
Rating
(13)
Projects
20
40%
Arbitration
3
0% / 67%
Overdue
3
15%
Free
4
Developer 4
Rating
(18)
Projects
26
0%
Arbitration
4
0% / 100%
Overdue
5
19%
Free
5
Developer 5
Rating
(54)
Projects
102
23%
Arbitration
12
25% / 17%
Overdue
13
13%
Free
6
Developer 6
Rating
(469)
Projects
487
75%
Arbitration
6
67% / 17%
Overdue
0
Free
7
Developer 7
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
8
Developer 8
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
9
Developer 9
Rating
(574)
Projects
945
47%
Arbitration
309
58% / 27%
Overdue
125
13%
Free
Similar orders
I am seeking an expert MQL5 developer for a paid architectural consultation. I am currently in the process of building a trading platform and need a deep dive with a specialist who understands the "under the hood" mechanics of high-frequency execution and systematic bot design. Topics for Discussion: Engine Logic: Best practices for building a robust, low-latency execution engine on MT5. Risk Frameworks: Implementing
Ninjatrdaer Script 500 - 1000 USD
I am looking to purchase a ninjatrader script, if there is any for sale, i mean a ready made ninjatrdaer script that trade futures, i need the seller to show me a backtest of the system, you know send some results, I would like to see a 1 year and YTD backtest
I need a MetaTrader 5 Expert Advisor for XAUUSD. Trend Filter : Trade only in the direction of the main trend. Patterns (Buy) : Hammer, Inverted Hammer, Doji, Bullish Harami, Bullish Engulfing + Green confirmation candle close above high. Patterns (Sell) : Shooting Star, Doji, Bearish Harami, Bearish Engulfing + Red confirmation candle close below low. Entry Rule : Wait for one Pullback candle (Red for Buy, Green for
Mk 30+ USD
I need a fully automated trading robot designed to generate consistent profits while strictly controlling risk and minimizing losses. The robot should use a combination of strategies, including trend-following, scalping, and price action, and must be able to adapt to different market conditions such as trending and ranging markets. It should analyze the market using indicators like Moving Averages, RSI, MACD, and
1. IF price forms: - Higher highs + higher lows → TREND = BUY - Lower highs + lower lows → TREND = SELL ELSE → NO TRADE 2. IF: - Trend = BUY - Price retraces to support zone - Bullish engulfing candle forms - TDI green crosses above red (optional) THEN: - Execute BUY 3. IF: - Trend = SELL - Price retraces to resistance - Bearish engulfing forms - TDI confirms THEN: - Execute SELL 4. Risk per trade = 1% of account Lot
Hi, Before ordering, I want to verify the quality of your ICT/SMC logic. Do you have an existing indicator or strategy (your own work) that I can test on TradingView? If yes, please provide: 1. A demo (invite-only script or video) 2. Proof it is NON-repainting (explained clearly) 3. Live or replay demonstration (not static screenshots) Specifically I want to see: * Clean swing structure (no consecutive highs/lows) *
I want to find a Developer to perform this work and settle payments in this Application. I undertake not to communicate with Applicants anywhere else except this Application, including third-party messengers, personal correspondence or emails. I understand that violators will be banned from publishing Orders in the Freelance service
have the Beatrix Inventor Expert Advisor (EA) that was profitable in the past but has been losing money recently. I need an experienced EA developer/optimizer to study the trade history (especially Stop Loss hits, drawdown periods, SL/TP behavior, win/loss ratio, etc.) and recommend + implement specific tweaks so it becomes consistently profitable again. Your job: 1. Deep analysis of why the EA is no longer
I want robot that can help me trade and make some money so that I can be able to learn from it while I'm still in depot account now.Is how it gonna help me with some money

Project information

Budget
30+ USD
Deadline
from 1 to 30 day(s)