Description
Follow my cTrader Telegram group at https://t.me/cTraderCommunity; it's a new community but it will grow fast, plus everyone can talk about cTrader indicators and algorithm without restrictions, though it is not allowed to spam commercial indicators to sell them. There's also a Discord Server now @ https://discord.gg/5GAPMtp
An alternative representation for Bid/Ask prices.
This was requested to me since the old indicator that provided this type of representation is no more avaible on the forum.
For any bug report or suggestion, follow my telegram group or comment below
using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
namespace cAlgo
{
[Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class BidAsk : Indicator
{
[Parameter("Bid Color", DefaultValue = "Red")]
public string bidcolor { get; set; }
[Parameter("Ask Color", DefaultValue = "RoyalBlue")]
public string askcolor { get; set; }
protected override void Initialize()
{
}
public override void Calculate(int index)
{
Chart.DrawTrendLine("ask", index, Ask, index + 1000, Ask, Color.FromName(askcolor));
Chart.DrawTrendLine("bid", index, Bid, index + 1000, Bid, Color.FromName(bidcolor));
}
}
}
CY
cysecsbin.01
Joined on 10.11.2018 Blocked
- Distribution: Free
- Language: C#
- Trading platform: cTrader Automate
- File name: BidAsk.algo
- Rating: 0
- Installs: 1184
- 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.