Returns initial margin value.


SYNTAX


public double GetInitMargin (Instrument instrument,double amount,Operation operation)


PARAMETERS


instrument — Instrument

Instrument


amount — double

Amount


operation — Operation

Operation


RETURN


double


EXAMPLE


using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using PTLRuntime.NETScript;

namespace GetInitMarginExamples
{
     public class GetInitMarginExamples : NETStrategy
     {
         public override void OnQuote()
         {
             Account acc = Accounts.Current;
             Print(acc.GetInitMargin(Instruments.Current,1,Operation.Buy));
         }
     }
}