//facebook fanpage: www.facebook.com/Ai.Algo
using cAlgo.API;
namespace cAlgo
{
[Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class ShowEquity : Indicator
{
public string note1 { get; set; }
[Parameter("Note 2")]
public string note2 { get; set; }
string Tradeposition;
public override void Calculate(int index)
{
var positin = Positions.FindAll("");
double ripatamiter = 0;
double order = 0;
if (Symbol.Code == "USDJPY" || Symbol.Code == "EURJPY" || Symbol.Code == "GBPJPY" || Symbol.Code == "AUDJPY" || Symbol.Code == "CHFJPY" || Symbol.Code == "CADJPY" || Symbol.Code == "NZDJPY" || Symbol.Code == "SGDJPY" || Symbol.Code == "NOKJPY" || Symbol.Code == "SEKJPY" || Symbol.Code == "ZARJPY")
{
ripatamiter = Symbol.Bid * 10;
}
else if (Symbol.Code == "XAUUSD" || Symbol.Code == "XAUEUR" || Symbol.Code == "XTIUSD" || Symbol.Code == "XAGUSD" || Symbol.Code == "XAGEUR" || Symbol.Code == "XPTUSD" || Symbol.Code == "XNGUSD" || Symbol.Code == "XBRUSD" || Symbol.Code == "USDX")
{
ripatamiter = Symbol.Bid;
}
else...