Termos de Referência

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


Arquivos anexados:

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

Respondido

1
Desenvolvedor 1
Classificação
(3)
Projetos
1
0%
Arbitragem
5
0% / 100%
Expirado
0
Livre
2
Desenvolvedor 2
Classificação
(11)
Projetos
15
20%
Arbitragem
6
0% / 100%
Expirado
3
20%
Livre
3
Desenvolvedor 3
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
Pedidos semelhantes
// 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
EA grid hunter 30 - 200 USD
1. Platform & Environment Platform: MetaTrader 5 (MT5 ONLY) Language: MQL5 Account type: ECN / Netting or Hedging Designed for broker rebate/commission return programs No DLLs, no external dependencies 2. Strategy Overview The EA is a high-frequency scalping Expert Advisor focused on maximizing the number of trades with minimal price movement, where the main source of profitability is broker rebate rather than market
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

Informações sobre o projeto

Orçamento
30+ USD
Prazo
de 1 para 5 dias