İş Gereklilikleri

Hello. I have a custom NinjaScript indicator that is not compiling correctly. Can anyone take a look at it and see if you can resolve the errors? This code plots offset lines above and below the 14 ema,


using System; using System.Windows.Media; namespace GeneralTradingApp { public class ProfitTargetTickOffset { public int TickCount { get; set; } public Brush UpperLineColor { get; set; } public Brush LowerLineColor { get; set; } public ProfitTargetTickOffset(int tickCount, Brush upperColor, Brush lowerColor) { TickCount = tickCount; UpperLineColor = upperColor ?? Brushes.SlateGray; LowerLineColor = lowerColor ?? Brushes.SlateGray; } public void CalculateLines(double emaValue, double tickSize) { double upperLine = emaValue + TickCount * tickSize; double lowerLine = emaValue - TickCount * tickSize; Console.WriteLine($"Upper Line: {upperLine}, Color: {UpperLineColor}"); Console.WriteLine($"Lower Line: {lowerLine}, Color: {LowerLineColor}"); } } class Program { static void Main() { // Example usage ProfitTargetTickOffset offset = new ProfitTargetTickOffset(24, Brushes.Blue, Brushes.Red); double exampleEMAValue = 1200.5; // Replace with actual logic for EMA calculation double tickSize = 0.01; // Replace with actual tick size offset.CalculateLines(exampleEMAValue, tickSize); } } }


Dosyalar:

PNG
snip_1.PNG
21.1 Kb
PNG
snip_2.PNG
21.0 Kb

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(3)
Projeler
1
0%
Arabuluculuk
5
0% / 100%
Süresi dolmuş
0
Serbest
2
Geliştirici 2
Derecelendirme
(11)
Projeler
15
20%
Arabuluculuk
6
0% / 100%
Süresi dolmuş
3
20%
Serbest
3
Geliştirici 3
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Benzer siparişler
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
Need a HFT scalping EA 30 - 100 USD
Require the development of a high-speed HFT, fully automated trading Expert Advisor (EA) for MetaTrader 5 , optimized for live trading on both Deriv and Exness . The EA must be designed for fast execution, low latency, and reliability on real-money accounts , with full compatibility across broker-specific contract specifications, tick sizes, tick values, pricing formats, and volume rules. It should automatically

Proje bilgisi

Bütçe
30+ USD
Son teslim tarihi
from 1 to 5 gün