Skip to content

RelativeTakeProfitProtection

Summary

Represents a partial take profit closing a portion of the order volume at a distance (in pips) from the entry price.

Signature

1
public class RelativeTakeProfitProtection

Namespace

cAlgo.API

Methods

ToString

Signature

1
public string ToString()

Return Value

string

PrintMembers

Signature

1
protected bool PrintMembers(StringBuilder builder)

Parameters

Name Type Description
builder StringBuilder

Return Value

bool

GetHashCode

Signature

1
public int GetHashCode()

Return Value

int

Equals (2)

Equals (1 of 2)

Signature

1
public bool Equals(object obj)

Parameters

Name Type Description
obj object

Return Value

bool

Equals (2 of 2)

Signature

1
public bool Equals(RelativeTakeProfitProtection other)

Parameters

Name Type Description
other RelativeTakeProfitProtection

Return Value

bool

$

Signature

1
public RelativeTakeProfitProtection <Clone>$()

Return Value

RelativeTakeProfitProtection

Deconstruct

Signature

1
public void Deconstruct(Double& Volume, Double& Distance)

Parameters

Name Type Description
Volume Double&
Distance Double&

Return Value

void

Properties

Volume

Summary

The portion of the order volume to close when the take profit is triggered.

Signature

1
public double Volume {get; set;}

Return Value

double

Distance

Summary

The take profit distance, in pips, from the order's entry price.

Signature

1
public double Distance {get; set;}

Return Value

double