Spécifications

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); } } }


Dossiers :

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

Répondu

1
Développeur 1
Évaluation
(3)
Projets
1
0%
Arbitrage
5
0% / 100%
En retard
0
Gratuit
2
Développeur 2
Évaluation
(11)
Projets
15
20%
Arbitrage
6
0% / 100%
En retard
3
20%
Gratuit
3
Développeur 3
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
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
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
can anyone help me with building a complete automated pine code strategy and indicator that work for both FXs & CFDs and have a high winning rate proved through back testing. I have a very complex current code that developed mostly using AI but lots of gaps are there although it translate exactly what I have in my mind. So, you are free to decide whether wo build a complete new code or fix my current working code ( i
Olá, preciso de um programador para montar um indicador com base na sobrevenda do estocastico, volume macd, para uma estrategia de reversão e falso rompimento com regioes de OB validos minimas e maximas de H1, H4, D1 e canais para confluencias, quero que seja didatico visualmente e com cores, sons de alertas e algum sinal de call ou put como setas indicando reversões e falsos rompimentos e continuidade
Usdt clone 30 - 100 USD
FLASH USDT Generation on TRON (TRC20) with Extended Duration 10 August 2025 at 17:59 Python Design Consultation Python Specification 1. Objective To acquire or develop a technological solution that allows the generation of temporary “FLASH” USDT on the TRON (TRC20) network, with an on-chain lifespan equal to or greater than 180 days. 2. Functional Scope 2.1 FLASH USDT Generation Creation of temporary USDT tokens
Ninjatrader 80+ USD
hello great developer can you help me automate my prop trading accounts? I am using Ninjatrader to trade my prop accounts. Evaluation and funded accounts. Are you aware of prop trading ? This is how my input will be ... Everyday strategy reads this file to get latest accounts to trade that day, 3 minutes before the US Market starts, and start trading once the Market opens. *30 minutes And closes all orders 30 minutes

Informations sur le projet

Budget
30+ USD
Délais
de 1 à 5 jour(s)