need help for a simple indicator
need help for a simple indicator
19 Sep 2020, 02:34
Hi everyone
i searched too much but i couldnt find and i cant make any algo
i need very simple thing
need an indicator that i give it a base line (zero line , like 1995.14) and give that a pip value (like [Parameter(DefaultValue = 780]) so it will make 10 horizonal line to up and 10 to bottom
so u will 20 level that the distance between every level will be 780 pips
can anyone help me to make it?
i will be so thankful
its my program
using System;
using cAlgo.API;
namespace calgo
{
[Indicator(IsOverlay = true)]
public class keylevels : Indicator
{
[Parameter(DefaultValue = 780)]
public int StepPips { get; set; }
protected override void Initialize()
{
double max = MarketSeries.High.Maximum(MarketSeries.High.Count);
double min = MarketSeries.Low.Minimum(MarketSeries.Low.Count);
double step = Symbol.PipSize * StepPips;
double start = Math.Floor(min / step) * step;
for (double level = 1900.49; level <= max + step; level += step)
{
ChartObjects.DrawHorizontalLine("line_" + level, level, Colors.Purple);
}
}
public override void Calculate(int index)
{
}
}
but its useless.....
PanagiotisCharalampous
21 Sep 2020, 08:38
Hi there,
You can consider posting a Job or contacting a Consultant.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous