Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Text;
- using System.Drawing;
- using PTLRuntime.NETScript;
- namespace OuterClass
- {
- /// <summary>
- /// OuterClasss
- ///
- /// </summary>
- public class OuterClass : NETStrategy
- {
- private NestedClass n;
- public OuterClass()
- : base()
- {
- #region Initialization
- base.Author = "";
- base.Comments = "";
- base.Company = "";
- base.Copyrights = "";
- base.DateOfCreation = "27.07.2016";
- base.ExpirationDate = 0;
- base.Version = "";
- base.Password = "66b4a6416f59370e942d353f08a9ae36";
- base.ProjectName = "OuterClasss";
- #endregion
- n = new NestedClass(this);
- }
- /// <summary>
- /// This function will be called after creating
- /// </summary>
- public override void Init()
- {
- }
- /// <summary>
- /// Entry point. This function is called when new quote comes
- /// </summary>
- public override void OnQuote()
- {
- mql4.Comment("Ask: ",n.getAsk());
- }
- /// <summary>
- /// This function will be called before removing
- /// </summary>
- public override void Complete()
- {
- }
- public class NestedClass
- {
- private OuterClass parent;
- public NestedClass(OuterClass p)
- {
- parent = p;
- }
- public double getAsk()
- {
- return parent.mql4.Ask;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement