sterpz
sterpz's avatar

Info

Username:sterpz
Name:sterpz
Member since: 18 Aug 2022

About

None

Signature

None

Last Forum Posts

@Is there a way to use Symbol.VolumeInUnitsMin in MinValue Parameter?:  13 Sep 2022, 11:27


Hi, is there a way to use Symbol.VolumeInUnitsMin in MinValue Parameter? It comes up with: Error CS0120: An object reference is required for the non-static field, method or property 'Algo Symbol'.

Does this mean I have to give Symbol.VolumeInUnitsMin an object reference or turn it to string?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;

namespace cAlgo.Robots
{
    [Robot(AccessRights = AccessRights.None)]
    public class NewcBot3 : Robot

    {     
        [Parameter("Volume", DefaultValue = 1, MinValue = Symbol.VolumeInUnitsMin)]
        public double Volume { get; set; } 

        protected override void OnStart()
        {
        Print(Volume);
        }
    }
}

@Please add Est. Margin to Symbol. ie. double estimatedMargin = Symbol.EstimatedMargin;:  22 Aug 2022, 12:29


In the trade window where quantity is selected, just bellow Quantity is Est. Margin. CTrader works out the margin needed for the lot size selected.

Please make Est. Margin available in ther public interface "Symbol" in a future update.

double estimatedMargin = Symbol.EstimatedMargin;

@pip Margin Value?:  18 Aug 2022, 11:00


Hi, is there a way that I can get the - pip Margin Value?

I'm able to get the value of a pip with: Symbol.PipValue, but not Margin value of a pip.

In Trade mode of CTrader in the New Order window I can see: Est.Buy margin: AUD 30.77      Pip Value: AUD 0.14

How do I get that: Est.Buy margin: AUD 30.77? 

Any help would be appreciated.

Thank you.



        

Notification Publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section you may use the Copyright Infringement Notification form to submit a claim.

No uploaded.

Warning! Executing cBots downloaded from this section may result in loss of funds. Use them at your own risk.

No uploaded.