Description
using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
namespace cAlgo {
[Indicator (IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class Difference : Indicator {
[Parameter ()]
public DataSeries Source1 { get; set; }
[Parameter ()]
public DataSeries Source2 { get; set; }
[Output ("Result")]
public IndicatorDataSeries Result { get; set; }
protected override void Initialize () {
}
public override void Calculate (int index) {
Result[index] = Source1[index] - Source2[index];
}
}
}
IG
igorkroitor
Joined on 03.01.2015
- Distribution: Free
- Language: C#
- Trading platform: cTrader Automate
- File name: Difference.algo
- Rating: 0
- Installs: 2690
- Modified: 13/10/2021 09:54
Note that publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section, please use the Copyright Infringement Notification form to submit a claim.
Comments
Log in to add a comment.
No comments found.